Accepting request 509271 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/509271 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-certifi?expand=0&rev=8
This commit is contained in:
commit
72a34c4cc4
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix wrong-script-interpreter rpmlint error.
|
||||||
|
- Fix script-without-shebang rpmlint warning.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 11 20:37:21 UTC 2017 - dmueller@suse.com
|
Sun Jun 11 20:37:21 UTC 2017 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -55,16 +55,26 @@ derived from Mozilla Firefox's canonical set.
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
|
||||||
%{python_expand chmod +x %{buildroot}/%{$python_sitelib}/certifi/core.py
|
%{python_expand chmod +x %{buildroot}%{$python_sitelib}/certifi/core.py
|
||||||
rm %{buildroot}/%{$python_sitelib}/certifi/cacert.pem
|
sed -i "s|#!/usr/bin/env python|#!%__$python|" %{buildroot}/%{$python_sitelib}/certifi/core.py
|
||||||
%fdupes -s %{buildroot}%{$python_sitelib}
|
rm %{buildroot}%{$python_sitelib}/certifi/cacert.pem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%if %have_python2
|
||||||
|
%py_compile %{buildroot}%{python2_sitelib}/certifi/
|
||||||
|
%py_compile -O %{buildroot}%{python2_sitelib}/certifi/
|
||||||
|
%endif
|
||||||
|
%if %have_python3
|
||||||
|
%py3_compile %{buildroot}%{python3_sitelib}/certifi/
|
||||||
|
%py3_compile -O %{buildroot}%{python3_sitelib}/certifi/
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python_sitelib}/certifi/
|
%{python_sitelib}/certifi/
|
||||||
%pycache_only %{python_sitelib}/certifi/__pycache__
|
%{python_sitelib}/certifi-%{version}-py*.egg-info
|
||||||
%{python_sitelib}/certifi-%{version}-py%{python_version}.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user