15
0

- fix macros to support not having python2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certifi?expand=0&rev=21
This commit is contained in:
Jan Matejek
2017-10-18 17:24:01 +00:00
committed by Git OBS Bridge
parent 98c71b1c9d
commit c6d24616d3
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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