Hello community,
here is the log from the commit of package python-wsgi_intercept for
openSUSE:Factory checked in at 2017-07-11 08:25:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-wsgi_intercept (Old)
and /work/SRC/openSUSE:Factory/.python-wsgi_intercept.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wsgi_intercept"
Tue Jul 11 08:25:08 2017 rev:15 rq:508332 version:1.5.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-wsgi_intercept/python-wsgi_intercept.changes
2017-07-04 13:40:51.423395372 +0200
+++
/work/SRC/openSUSE:Factory/.python-wsgi_intercept.new/python-wsgi_intercept.changes
2017-07-11 08:25:09.961196807 +0200
@@ -1,0 +2,5 @@
+Wed Jul 5 08:34:43 UTC 2017 - [email protected]
+
+- convert to singlespec
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-wsgi_intercept.spec ++++++
--- /var/tmp/diff_new_pack.jZBH3A/_old 2017-07-11 08:25:10.833073834 +0200
+++ /var/tmp/diff_new_pack.jZBH3A/_new 2017-07-11 08:25:10.837073270 +0200
@@ -16,6 +16,7 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-wsgi_intercept
Version: 1.5.0
Release: 0
@@ -26,22 +27,21 @@
Source:
https://pypi.io/packages/source/w/wsgi_intercept/wsgi_intercept-%{version}.tar.gz
# PATCH-FIX-OPENSUSE [email protected] -- Patching fails
Patch0: wsgi_intercept-disable-testbogusdomain.patch
-BuildRequires: python-devel
-BuildRequires: python-setuptools
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
# Test requirements:
-BuildRequires: python-httplib2
-BuildRequires: python-pytest >= 2.4
-BuildRequires: python-requests >= 2.0.1
-BuildRequires: python-six
-BuildRequires: python-urllib3 >= 1.11.0
+BuildRequires: %{python_module httplib2}
+BuildRequires: %{python_module pytest >= 2.4}
+BuildRequires: %{python_module requests >= 2.0.1}
+BuildRequires: %{python_module six}
+BuildRequires: %{python_module urllib3 >= 1.11.0}
Requires: python-six
Recommends: python-requests >= 2.0.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
BuildArch: noarch
-%endif
+
+%python_subpackages
%description
Testing a WSGI application normally involves starting a server at a local host
@@ -57,17 +57,17 @@
%endif
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
rm -rf %{buildroot}%{python_sitelib}/test
%check
# skip tests trying to access google.com
py.test -k "not not_intercepted" build/
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%{python_sitelib}/wsgi_intercept-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/wsgi_intercept