From e78b3bb36251e097ec353701bab4359fb4a4a3e61a876a2c1a205d0989b9d8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Mar 2020 08:33:47 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsgi_intercept?expand=0&rev=50 --- python-wsgi_intercept.changes | 5 +++++ python-wsgi_intercept.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-wsgi_intercept.changes b/python-wsgi_intercept.changes index b1471e8..ac58393 100644 --- a/python-wsgi_intercept.changes +++ b/python-wsgi_intercept.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 14 08:33:34 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Feb 6 12:42:53 UTC 2020 - Marketa Calabkova diff --git a/python-wsgi_intercept.spec b/python-wsgi_intercept.spec index ba4e32f..5769d98 100644 --- a/python-wsgi_intercept.spec +++ b/python-wsgi_intercept.spec @@ -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