From: Stefan Schantl Date: Thu, 26 Jul 2012 17:46:15 +0000 (+0200) Subject: python-setuptools: Update to 0.6.28. X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fipfire-3.x.git;a=commitdiff_plain;h=9f394aa3cad37ad8e62fcbed4f4dbd6a60b12a4e python-setuptools: Update to 0.6.28. Fixes #10189. --- diff --git a/python-setuptools/python-setuptools.nm b/python-setuptools/python-setuptools.nm index ad076790e..e4d8fe82c 100644 --- a/python-setuptools/python-setuptools.nm +++ b/python-setuptools/python-setuptools.nm @@ -4,10 +4,10 @@ ############################################################################### name = python-setuptools -version = 0.6c9 +version = 0.6.28 release = 1 arch = noarch -thisapp = setuptools-%{version} +thisapp = distribute-%{version} maintainer = Michael Tremer groups = Development/Libraries @@ -21,7 +21,7 @@ description especially ones that have dependencies on other packages. end -source_dl = +source_dl = http://pypi.python.org/packages/source/d/distribute/ build requires @@ -30,7 +30,12 @@ build prepare_cmds # Scripts seem to have a wrong hashbang - find . -name "*.py" | xargs sed -i "1s@^#!python@#!/usr/bin/python@" + for file in setuptools/command/easy_install.py distribute_setup.py ; do + sed -i '1s|^#!python|#!/usr/bin/python|' $file + done + + # Fix file permissions. + chmod -R 644 %{DIR_APP}/distribute.egg-info end build @@ -42,6 +47,7 @@ build # XXX %{PYTHON_EXTRACT_EGG} /usr/lib/python*/site-packages/%{name}*.egg rm -vf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/*.exe + rm -rvf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/tests end end