From 9f394aa3cad37ad8e62fcbed4f4dbd6a60b12a4e Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 26 Jul 2012 19:46:15 +0200 Subject: [PATCH] python-setuptools: Update to 0.6.28. Fixes #10189. --- python-setuptools/python-setuptools.nm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 -- 2.39.2