2 %define module setuptools
5 Summary: A collection of enhancements to the Python distutils
6 Summary(pl): 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
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}%{sub}
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