Hello community,

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

Package is "python-urllib3"

Mon Sep 23 12:18:36 2019 rev:33 rq:731439 version:1.25.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes    
2019-08-22 10:53:09.653693537 +0200
+++ /work/SRC/openSUSE:Factory/.python-urllib3.new.7948/python-urllib3.changes  
2019-09-23 12:18:39.521794504 +0200
@@ -1,0 +2,5 @@
+Sat Sep 14 02:58:42 UTC 2019 - John Vandenberg <[email protected]>
+
+- Use have/skip_python2/3 macros to allow building only one flavour
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-urllib3.spec ++++++
--- /var/tmp/diff_new_pack.VYgHYm/_old  2019-09-23 12:18:40.133794404 +0200
+++ /var/tmp/diff_new_pack.VYgHYm/_new  2019-09-23 12:18:40.133794404 +0200
@@ -26,13 +26,14 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
+%bcond_without python2
 Name:           python-urllib3%{psuffix}
 Version:        1.25.3
 Release:        0
 Summary:        HTTP library with thread-safe connection pooling, file post, 
and more
 License:        MIT
 Group:          Development/Languages/Python
-URL:            http://urllib3.readthedocs.org/
+URL:            https://urllib3.readthedocs.org/
 Source:         
https://files.pythonhosted.org/packages/source/u/urllib3/urllib3-%{version}.tar.gz
 # Wrapper for ssl to unbundle ssl_match_hostname
 Source1:        ssl_match_hostname_py3.py
@@ -41,17 +42,13 @@
 Patch0:         urllib3-ssl-default-context.patch
 # PATCH-FIX-UPSTREAM python-urllib3-recent-date.patch gh#shazow/urllib3#1303, 
boo#1074247 [email protected] -- Fix test suite, use correct date
 Patch1:         python-urllib3-recent-date.patch
-# for SSL module on older distros
-BuildRequires:  %{oldpython}
 BuildRequires:  %{python_module PySocks}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module rfc3986}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
-BuildRequires:  python-backports.ssl_match_hostname
 BuildRequires:  python-rpm-macros
-BuildRequires:  python2-ipaddress
 #!BuildIgnore:  python-requests
 Requires:       ca-certificates-mozilla
 Requires:       python-cryptography
@@ -60,6 +57,14 @@
 Requires:       python-rfc3986
 Requires:       python-six
 BuildArch:      noarch
+# for SSL module on older distros
+%if 0%{?suse_version} < 1500
+BuildRequires:  %{oldpython}
+%endif
+%if %{with python2}
+BuildRequires:  python-backports.ssl_match_hostname
+BuildRequires:  python-ipaddress
+%endif
 %ifpython2
 Requires:       python-backports.ssl_match_hostname
 %endif
@@ -121,6 +126,7 @@
 $python -O -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/urllib3/
 }
 
+%if 0%{?have_python2} && ! 0%{?skip_python2}
 # Unbundle the Python 2 build
 rm -rf %{buildroot}/%{python2_sitelib}/urllib3/packages/six.py*
 rm -rf %{buildroot}/%{python2_sitelib}/urllib3/packages/ssl_match_hostname/
@@ -134,6 +140,9 @@
       %{buildroot}/%{python2_sitelib}/urllib3/packages/ssl_match_hostname
 ln -s %{python2_sitelib}/rfc3986/ \
       %{buildroot}/%{python2_sitelib}/urllib3/packages/rfc3986
+%endif
+
+%if 0%{?have_python3} && ! 0%{?skip_python3}
 # Unbundle the Python 3 build
 rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py*
 rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/six*
@@ -149,11 +158,12 @@
       %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/
 ln -s %{python3_sitelib}/rfc3986/ \
       %{buildroot}/%{python3_sitelib}/urllib3/packages/rfc3986
+%endif
 
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
-%if ! %{with test}
+%if ! %{with test} && "%{python_flavor}" == "python2"
 %pre -n python2-urllib3
   SITELIB=%{python2_sitelib}
   CONFLICTED="${SITELIB}/urllib3/packages/ssl_match_hostname"


Reply via email to