%define module setuptools %define name python2.4-%{module} %define version 0.6c11 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Python Distutils Enhancements License: Zope Public License (ZPL) Group: Development/Python Url: http://pypi.python.org/pypi/setuptools Source0: http://cheeseshop.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz BuildRequires: python2.4-devel BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description Extensions to the python-distutils for large or complex distributions. %prep %setup -q -n %{module}-%{version} %build python2.4 setup.py build perl -pi -e 's|^#!python|#!/usr/bin/python2.4|' \ easy_install.py \ setuptools/command/easy_install.py %install rm -rf %{buildroot} python2.4 setup.py install --root=%{buildroot} --record INSTALLED_FILES.tmp grep -v -E '^%{_bindir}/easy_install$' INSTALLED_FILES.tmp > INSTALLED_FILES rm -f %{buildroot}%{_bindir}/easy_install %clean rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) %doc setuptools.txt pkg_resources.txt api_tests.txt EasyInstall.txt %changelog * Sun Jun 6 2010 Kazuhiko Shiozaki 0.6c11-1nxd2010.0 - version 0.6c11 * Mon Jun 1 2009 Kazuhiko Shiozaki 0.6c9-1nxd2009.1 - version 0.6c9