2 %define module setuptools
4 Summary: A collection of enhancements to the Python distutils
5 Name: python-setuptools
9 Group: Development/Languages/Python
10 Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
11 # Source0-md5: 3eecdf66c1a2cf8a6556bc00b69d572a
12 URL: http://peak.telecommunity.com/DevCenter/setuptools
14 BuildRequires: python-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 setuptools is a collection of enhancements to the Python distutils
21 (for Python 2.3.5 and up on most platforms; 64-bit platforms require a
22 minimum of Python 2.4) that allow you to more easily build and
23 distribute Python packages, especially ones that have dependencies on
27 %setup -q -n %{module}-%{version}
30 python ./setup.py build
33 rm -rf $RPM_BUILD_ROOT
35 python ./setup.py install \
37 --root=$RPM_BUILD_ROOT
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/*
48 %{py_sitescriptdir}/%{module}*