diff --git a/python-textile.changes b/python-textile.changes index bde0dc3..a281501 100644 --- a/python-textile.changes +++ b/python-textile.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 18 13:23:16 UTC 2020 - Tomáš Chvátal + +- Do not pull pytest-cov and pytest-runner nedlessly +- Fix the %fdupes call + ------------------------------------------------------------------- Mon May 18 09:12:28 UTC 2020 - Petr Gajdos diff --git a/python-textile.spec b/python-textile.spec index a0fd2a5..8405421 100644 --- a/python-textile.spec +++ b/python-textile.spec @@ -18,7 +18,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 -%bcond_without test Name: python-textile Version: 4.0.1 Release: 0 @@ -36,12 +35,9 @@ Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives Recommends: python-regex -%if %{with test} BuildRequires: %{python_module html5lib >= 1.0.1} -BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module regex >= 1.0} -%endif %python_subpackages %description @@ -54,19 +50,19 @@ MathML translation, Python code coloring and much more. %prep %setup -q -n textile-%{version} +sed -i -e '/pytest-runner/d' setup.py %build %python_build -%if %{with test} %check -%python_exec setup.py test -%endif +rm pytest.ini +%pytest %install %python_install %python_clone -a %{buildroot}%{_bindir}/pytextile -%fdupes %{buildroot} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative pytextile