From 3b3dd5b597e7f338e548b3d7214bf8a98f2c10d188754fdbf0a03f2d8e69e9e4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 10 Jul 2017 19:27:11 +0000 Subject: [PATCH] Accepting request 509270 from home:TheBlackCat:branches:devel:languages:python - Fix wrong-script-interpreter rpmlint error. - Fix script-without-shebang rpmlint warning. OBS-URL: https://build.opensuse.org/request/show/509270 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certifi?expand=0&rev=15 --- python-certifi.changes | 6 ++++++ python-certifi.spec | 20 +++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/python-certifi.changes b/python-certifi.changes index c58714d..a79fc73 100644 --- a/python-certifi.changes +++ b/python-certifi.changes @@ -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 diff --git a/python-certifi.spec b/python-certifi.spec index d958cdf..0449af3 100644 --- a/python-certifi.spec +++ b/python-certifi.spec @@ -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