diff --git a/python-certifi-fix-version-string.patch b/python-certifi-fix-version-string.patch new file mode 100644 index 0000000..ad0e98d --- /dev/null +++ b/python-certifi-fix-version-string.patch @@ -0,0 +1,8 @@ +diff -Nru certifi-2017.7.27.1.orig/certifi/__init__.py certifi-2017.7.27.1/certifi/__init__.py +--- certifi-2017.7.27.1.orig/certifi/__init__.py 2017-07-27 17:45:44.000000000 +0200 ++++ certifi-2017.7.27.1/certifi/__init__.py 2017-10-12 10:50:57.829829040 +0200 +@@ -1,3 +1,3 @@ + from .core import where, old_where + +-__version__ = "2017.07.27.1" ++__version__ = "2017.7.27.1" diff --git a/python-certifi.changes b/python-certifi.changes index 7df228c..c2eb9a9 100644 --- a/python-certifi.changes +++ b/python-certifi.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Oct 12 08:52:57 UTC 2017 - adrian.glaubitz@suse.com + +- add patch to fix version string from 2017.07.27.1 to + 2017.7.27.1 to fix the build on SLE12_SP3 and earlier + + python-certifi-fix-version-string.patch + ------------------------------------------------------------------- Tue Oct 3 05:42:11 UTC 2017 - arun@gmx.de diff --git a/python-certifi.spec b/python-certifi.spec index ccc1ece..c57d7ef 100644 --- a/python-certifi.spec +++ b/python-certifi.spec @@ -27,6 +27,7 @@ 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 Patch0: python-certifi-shipped-requests-cabundle.patch +Patch1: python-certifi-fix-version-string.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: ca-certificates @@ -48,6 +49,7 @@ derived from Mozilla Firefox's canonical set. %prep %setup -q -n certifi-%{version} %patch0 -p1 +%patch1 -p1 %build %python_build