From ffeda66855363896ce8d94997a6997b66a871cef Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 10 Aug 2012 11:47:51 -0600 Subject: [PATCH] New upstream version. --- .gitignore | 2 +- python-networkx.spec | 32 +++++++++++++++++++++++--------- sources | 8 ++++---- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 5bdb9e3..4ff8244 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/networkx-1.6.tar.gz /networkx_reference.pdf /networkx_tutorial.pdf /networkx-documentation.zip +/networkx-1.7.tar.gz diff --git a/python-networkx.spec b/python-networkx.spec index b2b5e47..75b0452 100644 --- a/python-networkx.spec +++ b/python-networkx.spec @@ -1,6 +1,6 @@ Name: python-networkx -Version: 1.6 -Release: 3%{?dist} +Version: 1.7 +Release: 1%{?dist} Summary: Creates and Manipulates Graphs and Networks Group: Development/Languages License: BSD @@ -87,7 +87,7 @@ done cd .. %build -python setup.py build +python2 setup.py build PYTHONPATH=`pwd`/build/lib make -C doc html # Setup for python3 @@ -108,16 +108,27 @@ mv build2 build mv -f build/*.pyc networkx # Install the python2 version -python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +python2 setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT mv $RPM_BUILD_ROOT%{_docdir}/networkx-%{version} ./installed-docs rm -f installed-docs/INSTALL.txt -# Fix permissions -grep -FRl /usr/bin/env $RPM_BUILD_ROOT%{python_sitelib} | xargs chmod a+x -grep -FRl /usr/bin/env $RPM_BUILD_ROOT%{python3_sitelib} | xargs chmod a+x +# Fix permissions and binary paths +for f in `grep -FRl /usr/bin/env $RPM_BUILD_ROOT%{python2_sitelib}`; do + sed 's|/usr/bin/env python|%{_bindir}/python2|' $f > $f.new + touch -r $f $f.new + chmod a+x $f.new + mv -f $f.new $f +done + +for f in `grep -FRl /usr/bin/env $RPM_BUILD_ROOT%{python3_sitelib}`; do + sed 's|/usr/bin/env python|%{_bindir}/python3|' $f > $f.new + touch -r $f $f.new + chmod a+x $f.new + mv -f $f.new $f +done # Except unfix the one where the shebang was muffed -chmod a-x $RPM_BUILD_ROOT%{python_sitelib}/networkx/algorithms/link_analysis/hits_alg.py +chmod a-x $RPM_BUILD_ROOT%{python2_sitelib}/networkx/algorithms/link_analysis/hits_alg.py chmod a-x $RPM_BUILD_ROOT%{python3_sitelib}/networkx/algorithms/link_analysis/hits_alg.py @@ -133,7 +144,7 @@ PYTHONPATH=`pwd`/site-packages python -c "import networkx; networkx.test()" %files %doc installed-docs/* -%{python_sitelib}/* +%{python2_sitelib}/* %files -n python3-networkx @@ -146,6 +157,9 @@ PYTHONPATH=`pwd`/site-packages python -c "import networkx; networkx.test()" %changelog +* Mon Aug 6 2012 Jerry James - 1.7-1 +- New upstream version + * Sat Jul 21 2012 Fedora Release Engineering - 1.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index 6c04b07..d24c6d5 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -a5e62b841b30118574b57d0eaf1917ca networkx-1.6.tar.gz -b1e3d5d4825c22f542cb427653b185c5 networkx_reference.pdf -39f248167e2c800bd1d4d9004cb637b5 networkx_tutorial.pdf -c9a42bda38401a8d59cd1bc8c4ea8d41 networkx-documentation.zip +1a73da9d571a206aa40f6ef69254f7b4 networkx-1.7.tar.gz +5c74458f88c8290616f1b0ce4d1d1db3 networkx_reference.pdf +91cf17ce3c5ec23dfa7e1a00eaf8c564 networkx_tutorial.pdf +0b374fb1b50ba62ec37f2f9baf0a4691 networkx-documentation.zip