From c6d24616d3b84fd5baa2866eaf13fdbce91f129943bedf85e3e75d344d8a1a5d Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 18 Oct 2017 17:24:01 +0000 Subject: [PATCH] - fix macros to support not having python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certifi?expand=0&rev=21 --- python-certifi.changes | 5 +++++ python-certifi.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-certifi.changes b/python-certifi.changes index c2eb9a9..84ef52b 100644 --- a/python-certifi.changes +++ b/python-certifi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 18 17:23:39 UTC 2017 - jmatejek@suse.com + +- fix macros to support not having python2 + ------------------------------------------------------------------- Thu Oct 12 08:52:57 UTC 2017 - adrian.glaubitz@suse.com diff --git a/python-certifi.spec b/python-certifi.spec index c57d7ef..cb5e3f5 100644 --- a/python-certifi.spec +++ b/python-certifi.spec @@ -62,11 +62,11 @@ derived from Mozilla Firefox's canonical set. rm %{buildroot}%{$python_sitelib}/certifi/cacert.pem } -%if %have_python2 +%if 0%{?have_python2} %py_compile %{buildroot}%{python2_sitelib}/certifi/ %py_compile -O %{buildroot}%{python2_sitelib}/certifi/ %endif -%if %have_python3 +%if 0%{?have_python3} %py3_compile %{buildroot}%{python3_sitelib}/certifi/ %py3_compile -O %{buildroot}%{python3_sitelib}/certifi/ %endif