Hello community,

here is the log from the commit of package python-PyWavelets for 
openSUSE:Factory checked in at 2017-10-13 14:14:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyWavelets (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyWavelets.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyWavelets"

Fri Oct 13 14:14:51 2017 rev:2 rq:533133 version:0.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyWavelets/python-PyWavelets.changes      
2017-08-24 18:30:44.628429974 +0200
+++ /work/SRC/openSUSE:Factory/.python-PyWavelets.new/python-PyWavelets.changes 
2017-10-13 14:14:57.323215744 +0200
@@ -1,0 +2,5 @@
+Sun Aug  6 04:34:02 UTC 2017 - [email protected]
+
+- Fix shebangs
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-PyWavelets.spec ++++++
--- /var/tmp/diff_new_pack.mKEqFe/_old  2017-10-13 14:14:59.115136952 +0200
+++ /var/tmp/diff_new_pack.mKEqFe/_new  2017-10-13 14:14:59.119136777 +0200
@@ -84,6 +84,9 @@
 chmod a-x *.txt
 chmod a-x PyWavelets.egg-info/*
 
+# Fix wrong-script-interpreter
+find demo -name '*.py' -exec sed -i "s|#!/usr/bin/env python|#!%__python3|"  
{} \;
+
 # Remove unneeded shebangs
 sed -i '1{\@^#!/usr/bin/env python@d}' pywt/data/create_dat.py
 
@@ -98,7 +101,16 @@
 
 %install
 %python_install
-%python_expand %fdupes %{buildroot}%{$python_sitearch}
+
+%{python_expand pushd %{buildroot}%{$python_sitearch}
+# Fix wrong-script-interpreter
+sed -i "s|#!/usr/bin/env python|#!%__$python|" pywt/tests/*.py
+# Deduplicating files can generate a RPMLINT warning for pyc mtime
+$python -m compileall -d %{$python_sitearch} pywt/tests/
+$python -O -m compileall -d %{$python_sitearch} pywt/tests/
+%fdupes .
+popd
+}
 
 # Create docs.  These need the package to already be built and installed
 PYTHONPATH="$PYTHONPATH:%{buildroot}%{python3_sitearch}" make -C doc 
PAPER=letter html


Reply via email to