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
10 Group: Development/Languages/Python
11 Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
12 # Source0-md5: 10bd22507d6115df6ba053228b648a0c
13 URL: http://peak.telecommunity.com/DevCenter/setuptools
14 BuildRequires: findutils
16 BuildRequires: python-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 setuptools is a collection of enhancements to the Python distutils
23 (for Python 2.3.5 and up on most platforms; 64-bit platforms require a
24 minimum of Python 2.4) that allow you to more easily build and
25 distribute Python packages, especially ones that have dependencies on
29 setuptools to zestaw rozszerzeñ do pythonowych distutils (dla Pythona
30 2.3.5 i nowszego na wiêkszo¶ci platform; platformy 64-bitowe wymagaj±
31 co najmniej Pythona 2.4) umo¿liwiaj±cy ³atwiejsze budowanie i
32 rozprowadzanie pakietów Pythona, szczególnie tych maj±cych zale¿no¶ci
36 %setup -q -n %{module}-%{version}
39 python ./setup.py build
42 rm -rf $RPM_BUILD_ROOT
44 python ./setup.py install \
45 --single-version-externally-managed \
47 --root=$RPM_BUILD_ROOT
49 rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe
51 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
52 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/*
62 %{py_sitescriptdir}/%{module}*
63 %{py_sitescriptdir}/*.py[co]