2 %define module setuptools
4 Summary: A collection of enhancements to the Python distutils
5 Summary(pl): Zestaw rozszerzeñ dla pythonowych distutils
6 Name: python-setuptools
11 Group: Development/Languages/Python
12 Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}a10.zip
13 # Source0-md5: 8bcf7524d484aa3134a1b5aa64d2c275
14 URL: http://peak.telecommunity.com/DevCenter/setuptools
15 BuildRequires: findutils
17 BuildRequires: python-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 setuptools is a collection of enhancements to the Python distutils
24 (for Python 2.3.5 and up on most platforms; 64-bit platforms require a
25 minimum of Python 2.4) that allow you to more easily build and
26 distribute Python packages, especially ones that have dependencies on
30 setuptools to zestaw rozszerzeñ do pythonowych distutils (dla Pythona
31 2.3.5 i nowszego na wiêkszo¶ci platform; platformy 64-bitowe wymagaj±
32 co najmniej Pythona 2.4) umo¿liwiaj±cy ³atwiejsze budowanie i
33 rozprowadzanie pakietów Pythona, szczególnie tych maj±cych zale¿no¶ci
37 %setup -q -n %{module}-%{version}
40 python ./setup.py build
43 rm -rf $RPM_BUILD_ROOT
45 python ./setup.py install \
46 --single-version-externally-managed \
48 --root=$RPM_BUILD_ROOT
50 rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe
52 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
53 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
55 install site.py $RPM_BUILD_ROOT%{py_sitescriptdir}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/*
64 %{py_sitescriptdir}/%{module}*
65 %{py_sitescriptdir}/*.py[co]
66 %{py_sitescriptdir}/site.py