15
0

Accepting request 535011 from devel:languages:python

- fix macros to support not having python2

OBS-URL: https://build.opensuse.org/request/show/535011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-certifi?expand=0&rev=11
This commit is contained in:
2017-10-20 12:39:16 +00:00
committed by Git OBS Bridge
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