Hello community,

here is the log from the commit of package python-pbr for openSUSE:Factory 
checked in at 2017-10-31 15:42:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pbr (Old)
 and      /work/SRC/openSUSE:Factory/.python-pbr.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pbr"

Tue Oct 31 15:42:54 2017 rev:32 rq:537608 version:3.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pbr/python-pbr.changes    2017-08-14 
12:36:32.317333730 +0200
+++ /work/SRC/openSUSE:Factory/.python-pbr.new/python-pbr.changes       
2017-10-31 15:42:55.764102714 +0100
@@ -1,0 +2,7 @@
+Mon Oct 30 16:09:24 UTC 2017 - [email protected]
+
+- use %python_clone instead of manual copying
+- drop shebang and executable from the included test setup.py
+  instead of complicated post-install fixing
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pbr.spec ++++++
--- /var/tmp/diff_new_pack.b97rh1/_old  2017-10-31 15:42:56.320082559 +0100
+++ /var/tmp/diff_new_pack.b97rh1/_new  2017-10-31 15:42:56.324082414 +0100
@@ -67,29 +67,16 @@
 # 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
+# drop interpreter from test setup.py
+sed -i "1s|^#!/.*||" pbr/tests/testpackage/setup.py
+chmod -x pbr/tests/testpackage/setup.py
 
 %build
 %python_build
 
 %install
-%{python_expand %$python_install
-mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-%{$python_bin_suffix}
-}
-%prepare_alternative pbr
-
-# 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_install
+%python_clone -a %{buildroot}%{_bindir}/pbr
 
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 


Reply via email to