Hello community,

here is the log from the commit of package python-networkx for openSUSE:Factory 
checked in at 2017-08-12 20:26:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-networkx (Old)
 and      /work/SRC/openSUSE:Factory/.python-networkx.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-networkx"

Sat Aug 12 20:26:36 2017 rev:12 rq:514815 version:1.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-networkx/python-networkx.changes  
2017-05-16 14:44:45.910417533 +0200
+++ /work/SRC/openSUSE:Factory/.python-networkx.new/python-networkx.changes     
2017-08-12 20:26:37.784844390 +0200
@@ -1,0 +2,5 @@
+Sun Aug  6 04:46:44 UTC 2017 - toddrme2...@gmail.com
+
+- Fix shebangs
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-networkx.spec ++++++
--- /var/tmp/diff_new_pack.o9KA7u/_old  2017-08-12 20:26:40.096520438 +0200
+++ /var/tmp/diff_new_pack.o9KA7u/_new  2017-08-12 20:26:40.120517075 +0200
@@ -72,13 +72,13 @@
 
 %prep
 %setup -q -n networkx-%{version}
+sed -i "s|#!/usr/bin/env python|#!%__python3|" examples/drawing/unix_email.py
 
 %build
 %python_build
 
 %install
 %python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 # Move docs into correct directory if necessary
 if [ "%{_docdir}" != "%{_datadir}/doc" ] ; then
@@ -86,9 +86,24 @@
     mv %{buildroot}%{_datadir}/doc/networkx-%{version} %{buildroot}%{_docdir}/
 fi
 
+%fdupes %{buildroot}%{_docdir}
+
 # Installation instructions shouldn't be packaged
 rm %{buildroot}%{_docdir}/networkx-%{version}/INSTALL.txt
 
+%{python_expand pushd %{buildroot}%{$python_sitelib}
+# Fix wrong-script-interpreter
+find networkx -name '*test*.py' -exec sed -i "s|#!/usr/bin/env 
python|#!%__$python|" {} \;
+find networkx -name '*test*.py' -exec grep -q '#!%__$python' {} \; -exec chmod 
a+x {} \;
+# Deduplicating files can generate a RPMLINT warning for pyc mtime
+find networkx -name '*test*.py' -exec $python -m compileall -d 
%{$python_sitelib} {} \;
+find networkx -name '*test*.py' -exec $python -O -m compileall -d 
%{$python_sitelib} {} \;
+rm -f _current_flavor
+%fdupes .
+popd
+}
+
+
 %files %{python_files}
 %defattr(-,root,root)
 %doc README.rst LICENSE.txt


Reply via email to