2 %define module setuptools
5 Summary: A collection of enhancements to the Python distutils
6 Summary(pl.UTF-8): Zestaw rozszerzeń dla pythonowych distutils
7 Name: python-setuptools
12 Group: Development/Languages/Python
13 Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}%{sub}.tar.gz
14 # Source0-md5: 76cb98b779d356c64323125490f88d17
15 URL: http://peak.telecommunity.com/DevCenter/setuptools
16 BuildRequires: findutils
18 BuildRequires: python-devel
19 Requires: python-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 setuptools is a collection of enhancements to the Python distutils
25 (for Python 2.3.5 and up on most platforms; 64-bit platforms require a
26 minimum of Python 2.4) that allow you to more easily build and
27 distribute Python packages, especially ones that have dependencies on
30 %description -l pl.UTF-8
31 setuptools to zestaw rozszerzeń do pythonowych distutils (dla Pythona
32 2.3.5 i nowszego na większości platform; platformy 64-bitowe wymagają
33 co najmniej Pythona 2.4) umożliwiający łatwiejsze budowanie i
34 rozprowadzanie pakietów Pythona, szczególnie tych mających zależności
38 %setup -q -n %{module}-%{version}%{sub}
41 python ./setup.py build
44 rm -rf $RPM_BUILD_ROOT
46 python ./setup.py install \
47 --single-version-externally-managed \
49 --root=$RPM_BUILD_ROOT
51 rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe
53 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
54 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
56 install site.py $RPM_BUILD_ROOT%{py_sitescriptdir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/*
65 %{py_sitescriptdir}/%{module}*
66 %{py_sitescriptdir}/*.py[co]
67 %{py_sitescriptdir}/site.py