Hello community, here is the log from the commit of package python-pbr for openSUSE:Factory checked in at 2017-07-12 19:33:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pbr (Old) and /work/SRC/openSUSE:Factory/.python-pbr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pbr" Wed Jul 12 19:33:22 2017 rev:30 rq:509275 version:3.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pbr/python-pbr.changes 2017-07-04 11:56:35.752554524 +0200 +++ /work/SRC/openSUSE:Factory/.python-pbr.new/python-pbr.changes 2017-07-12 19:33:23.370515231 +0200 @@ -1,0 +2,5 @@ +Mon Jul 10 18:42:12 UTC 2017 - toddrme2...@gmail.com + +- Fix wrong-script-interpreter rpmlint error. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pbr.spec ++++++ --- /var/tmp/diff_new_pack.3tTfAv/_old 2017-07-12 19:33:23.930436231 +0200 +++ /var/tmp/diff_new_pack.3tTfAv/_new 2017-07-12 19:33:23.934435667 +0200 @@ -67,6 +67,9 @@ # Get rid of ugly build-time deps that require network: sed -i "s/, 'sphinx\.ext\.intersphinx'//" doc/source/conf.py +# Fix wrong-script-interpreter +sed -i "s|#!/usr/bin/env python|#!/usr/bin/python|" pbr/tests/testpackage/setup.py + %build %python_build @@ -75,7 +78,20 @@ mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-%{$python_bin_suffix} } %prepare_alternative pbr -%fdupes %{buildroot}%{_prefix} + +# Fix wrong-script-interpreter +%python_expand sed -i "s|#!/usr/bin/python|#!%__$python|" %{buildroot}%{$python_sitelib}/pbr/tests/testpackage/setup.py + +%if %have_python2 +%py_compile %{buildroot}%{python2_sitelib}/pbr/tests/testpackage/ +%py_compile -O %{buildroot}%{python2_sitelib}/pbr/tests/testpackage/ +%endif +%if %have_python3 +%py3_compile %{buildroot}%{python3_sitelib}/pbr/tests/testpackage/ +%py3_compile -O %{buildroot}%{python3_sitelib}/pbr/tests/testpackage/ +%endif + +%python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} %check