14
0

Accepting request 784840 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/784840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wsgi_intercept?expand=0&rev=25
This commit is contained in:
2020-03-16 09:17:50 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 14 08:33:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Thu Feb 6 12:42:53 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -34,12 +34,8 @@ BuildRequires: %{python_module urllib3 >= 1.11.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
%if 0%{?_no_weakdeps}
Requires: python-requests >= 2.0.1
%else
Recommends: python-requests >= 2.0.1
%endif
BuildArch: noarch
%python_subpackages
%description
@@ -57,7 +53,7 @@ can avoid spawning multiple processes or threads to test your Web app.
%install
%python_install
rm -r %{buildroot}%{python_sitelib}/wsgi_intercept/tests
%python_expand rm -r %{buildroot}%{$python_sitelib}/wsgi_intercept/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -65,7 +61,9 @@ export WSGI_INTERCEPT_SKIP_NETWORK=true
%pytest
%files %{python_files}
%{python_sitelib}/wsgi_intercept-%{version}-py%{py_ver}.egg-info
%doc README
%license LICENSE
%{python_sitelib}/wsgi_intercept-%{version}-*.egg-info
%{python_sitelib}/wsgi_intercept
%changelog