14
0

- Do not pull pytest-cov and pytest-runner nedlessly

- Fix the %fdupes call

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textile?expand=0&rev=27
This commit is contained in:
Tomáš Chvátal
2020-05-18 13:23:40 +00:00
committed by Git OBS Bridge
parent 2399767532
commit fc746ff1d1
2 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 18 13:23:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do not pull pytest-cov and pytest-runner nedlessly
- Fix the %fdupes call
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 18 09:12:28 UTC 2020 - Petr Gajdos <pgajdos@suse.com> Mon May 18 09:12:28 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -18,7 +18,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
%bcond_without test
Name: python-textile Name: python-textile
Version: 4.0.1 Version: 4.0.1
Release: 0 Release: 0
@@ -36,12 +35,9 @@ Requires: python-six
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
Recommends: python-regex Recommends: python-regex
%if %{with test}
BuildRequires: %{python_module html5lib >= 1.0.1} BuildRequires: %{python_module html5lib >= 1.0.1}
BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module regex >= 1.0} BuildRequires: %{python_module regex >= 1.0}
%endif
%python_subpackages %python_subpackages
%description %description
@@ -54,19 +50,19 @@ MathML translation, Python code coloring and much more.
%prep %prep
%setup -q -n textile-%{version} %setup -q -n textile-%{version}
sed -i -e '/pytest-runner/d' setup.py
%build %build
%python_build %python_build
%if %{with test}
%check %check
%python_exec setup.py test rm pytest.ini
%endif %pytest
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/pytextile %python_clone -a %{buildroot}%{_bindir}/pytextile
%fdupes %{buildroot} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%post %post
%python_install_alternative pytextile %python_install_alternative pytextile