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:
Dominique Leuenberger 2017-07-12 17:33:18 +00:00 committed by Git OBS Bridge
commit 72a34c4cc4
2 changed files with 21 additions and 5 deletions

View File

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

View File

@ -55,16 +55,26 @@ derived from Mozilla Firefox's canonical set.
%install
%python_install
%{python_expand chmod +x %{buildroot}/%{$python_sitelib}/certifi/core.py
rm %{buildroot}/%{$python_sitelib}/certifi/cacert.pem
%fdupes -s %{buildroot}%{$python_sitelib}
%{python_expand chmod +x %{buildroot}%{$python_sitelib}/certifi/core.py
sed -i "s|#!/usr/bin/env python|#!%__$python|" %{buildroot}/%{$python_sitelib}/certifi/core.py
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}
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{python_sitelib}/certifi/
%pycache_only %{python_sitelib}/certifi/__pycache__
%{python_sitelib}/certifi-%{version}-py%{python_version}.egg-info
%{python_sitelib}/certifi-%{version}-py*.egg-info
%changelog