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