Hello community,

here is the log from the commit of package python-urllib3 for openSUSE:Factory 
checked in at 2018-09-18 11:36:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-urllib3 (Old)
 and      /work/SRC/openSUSE:Factory/.python-urllib3.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-urllib3"

Tue Sep 18 11:36:50 2018 rev:23 rq:634983 version:1.23

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes    
2018-08-31 09:51:36.849557908 +0200
+++ /work/SRC/openSUSE:Factory/.python-urllib3.new/python-urllib3.changes       
2018-09-18 11:37:05.932310834 +0200
@@ -1,0 +2,6 @@
+Fri Sep  7 14:45:38 CEST 2018 - [email protected]
+
+- Switch to multibuild to minize requirements for providing
+  urllib3 module.
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-urllib3.spec ++++++
--- /var/tmp/diff_new_pack.OLo91N/_old  2018-09-18 11:37:08.908307675 +0200
+++ /var/tmp/diff_new_pack.OLo91N/_new  2018-09-18 11:37:08.908307675 +0200
@@ -18,7 +18,19 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
+
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define test 1
+%bcond_without test
+%else
+%bcond_with test
+%endif
+%if %{with test}
+Name:           python-urllib3-%{flavor}
+%else
 Name:           python-urllib3
+%endif
 Version:        1.23
 Release:        0
 Summary:        HTTP library with thread-safe connection pooling, file post, 
and more
@@ -36,12 +48,15 @@
 # PATCH-FIX-UPSTREAM python-urllib3-recent-date.patch gh#shazow/urllib3#1303, 
boo#1074247 [email protected] -- Fix test suite, use correct date
 Patch4:         python-urllib3-recent-date.patch
 BuildRequires:  %{python_module PySocks}
-BuildRequires:  %{python_module mock >= 1.3.0}
 BuildRequires:  %{python_module psutil}
-BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module tornado >= 4.2.1}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+%if %{with test}
+BuildRequires:  %{python_module mock >= 1.3.0}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module tornado >= 4.2.1}
+%endif
 #!BuildIgnore:  python-requests
 BuildArch:      noarch
 %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
@@ -90,10 +105,14 @@
 
 %install
 %python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%{python_expand \
+$python -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/urllib3/
+$python -O -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/urllib3/
+%fdupes %{buildroot}%{$python_sitelib}
+}
 
 %check
-
+%if %{with test}
 skiplist='not test_select_interrupt_exception and not test_selector_error and 
not timeout and not test_request_host_header_ignores_fqdn_dot and not 
test_dotted_fqdn'
 case $(uname -m) in
 ppc*)
@@ -109,11 +128,15 @@
                 --ignore=test/with_dummyserver/test_poolmanager.py \
                 -k "${skiplist}" \
                 urllib3 test}
+rm -rf %{buildroot}%{_libexecdir}/python*
+%endif
 
 %files %{python_files}
 %license LICENSE.txt
 %doc CHANGES.rst CONTRIBUTORS.txt README.rst
+%if ! %{with test}
 %{python_sitelib}/urllib3
 %{python_sitelib}/urllib3-%{version}-py*.egg-info
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to