Hello community,

here is the log from the commit of package python-certifi for openSUSE:Factory 
checked in at 2019-01-28 20:45:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-certifi (Old)
 and      /work/SRC/openSUSE:Factory/.python-certifi.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-certifi"

Mon Jan 28 20:45:57 2019 rev:16 rq:665655 version:2018.4.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-certifi/python-certifi.changes    
2018-12-06 12:14:10.837722016 +0100
+++ /work/SRC/openSUSE:Factory/.python-certifi.new.28833/python-certifi.changes 
2019-01-28 20:45:59.030060557 +0100
@@ -1,0 +2,9 @@
+Tue Jan  8 23:55:51 UTC 2019 - Jonathan Brownell <[email protected]>
+
+- Limit SUSE certificate patch to exclude Red Hat platforms since
+  the relevant /etc/ssl/ca-bundle.pem does not exist there
+  
+- %py_compile and %py3_compile macros do not exist on Red Hat;
+  substitute them with equivalent %python_exec invocations
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-certifi.spec ++++++
--- /var/tmp/diff_new_pack.grIOyU/_old  2019-01-28 20:45:59.574059985 +0100
+++ /var/tmp/diff_new_pack.grIOyU/_new  2019-01-28 20:45:59.578059981 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-certifi
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -23,9 +23,9 @@
 Summary:        Python package for providing Mozilla's CA Bundle
 License:        MPL-2.0
 Group:          Development/Languages/Python
-URL:            https://pypi.python.org/pypi/certifi
+Url:            https://pypi.python.org/pypi/certifi
 Source:         
https://files.pythonhosted.org/packages/source/c/certifi/certifi-%{version}.tar.gz
-# PATCH-FIX-SUSE -- prefer SUSE certificates
+# PATCH-FIX-SUSE -- prefer SUSE certificates (only for use on SUSE platforms)
 Patch0:         python-certifi-shipped-requests-cabundle.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  ca-certificates
@@ -45,7 +45,9 @@
 
 %prep
 %setup -q -n certifi-%{version}
+%if 0%{?suse_version}
 %patch0 -p1
+%endif
 
 %build
 %python_build
@@ -55,9 +57,21 @@
 
 %{python_expand chmod +x %{buildroot}%{$python_sitelib}/certifi/core.py
  sed -i "s|#!%{_bindir}/env python|#!%__$python|" 
%{buildroot}/%{$python_sitelib}/certifi/core.py
+ %if 0%{?suse_version}
  rm %{buildroot}%{$python_sitelib}/certifi/cacert.pem
+ %endif
 }
 
+%if 0%{?rhel} || 0%{?fedora}
+%if 0%{?have_python2}
+%python_exec -m compileall %{buildroot}%{python2_sitelib}/certifi/
+%python_exec -O -m compileall %{buildroot}%{python2_sitelib}/certifi/
+%endif
+%if 0%{?have_python3}
+%python_exec -m compileall %{buildroot}%{python3_sitelib}/certifi/
+%python_exec -O -m compileall %{buildroot}%{python3_sitelib}/certifi/
+%endif
+%else
 %if 0%{?have_python2}
 %py_compile %{buildroot}%{python2_sitelib}/certifi/
 %py_compile -O %{buildroot}%{python2_sitelib}/certifi/
@@ -66,6 +80,7 @@
 %py3_compile %{buildroot}%{python3_sitelib}/certifi/
 %py3_compile -O %{buildroot}%{python3_sitelib}/certifi/
 %endif
+%endif
 
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 


Reply via email to