From c86e35a6b78672f52a14b3d2424fc0ecedebeccf8680c224f1ee87e439d970c9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 27 Feb 2023 10:13:34 +0000 Subject: [PATCH] - Enable tests - Don't use fdupes -s, it hurts. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mkdocs?expand=0&rev=9 --- python-mkdocs.changes | 6 ++++++ python-mkdocs.spec | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-mkdocs.changes b/python-mkdocs.changes index da52e37..83921b3 100644 --- a/python-mkdocs.changes +++ b/python-mkdocs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 27 10:13:10 UTC 2023 - Matej Cepl + +- Enable tests +- Don't use fdupes -s, it hurts. + ------------------------------------------------------------------- Sun Sep 4 15:03:14 UTC 2022 - Elisei Roca diff --git a/python-mkdocs.spec b/python-mkdocs.spec index 63dec47..59a279b 100644 --- a/python-mkdocs.spec +++ b/python-mkdocs.spec @@ -1,7 +1,7 @@ # # spec file for package python-mkdocs # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mkdocs Version: 1.3.1 Release: 0 @@ -25,6 +24,7 @@ Summary: Project documentation with Markdown License: BSD-2-Clause URL: https://www.mkdocs.org Source: https://github.com/mkdocs/mkdocs/archive/%{version}.tar.gz#/mkdocs-%{version}.tar.gz +BuildRequires: %{python_module Babel} BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module Markdown} BuildRequires: %{python_module MarkupSafe} @@ -96,14 +96,13 @@ for filetype in eot svg ttf woff woff2; do done # inconsistent permissions prohibited fdupes from being effective -find "%{buildroot}" -type f "(" -name "*.eot" -o -name "*.ttf" -o \ +find %{buildroot} -type f "(" -name "*.eot" -o -name "*.ttf" -o \ -name "*.woff" ")" -exec chmod a-x {} + -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# tries to download stuff at runtime -#tox +%pyunittest discover -p '*tests.py' -v mkdocs %post %python_install_alternative mkdocs @@ -115,6 +114,7 @@ find "%{buildroot}" -type f "(" -name "*.eot" -o -name "*.ttf" -o \ %doc README.md %license LICENSE %python_alternative %{_bindir}/mkdocs -%{python_sitelib}/* +%{python_sitelib}/mkdocs +%{python_sitelib}/mkdocs-%{version}*-info %changelog