]>
Commit | Line | Data |
---|---|---|
cb552c1a ER |
1 | %define module setuptools |
2 | %define subver r60636 | |
3 | %define rel 1 | |
b79e62bc | 4 | Summary: A collection of enhancements to the Python distutils |
e4a6c4e2 | 5 | Summary(pl.UTF-8): Zestaw rozszerzeń dla pythonowych distutils |
b79e62bc | 6 | Name: python-setuptools |
67093d8e | 7 | Version: 0.6 |
cb552c1a | 8 | Release: 0.%{subver}.%{rel} |
67093d8e | 9 | Epoch: 1 |
b79e62bc AM |
10 | License: GPL |
11 | Group: Development/Languages/Python | |
cb552c1a ER |
12 | #Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}%{sub}.tar.gz |
13 | Source0: setuptools-0.6r60636.tar.bz2 | |
0c58bff5 | 14 | # Source0-md5: dedbf6a4f71cd6deaf13ee885054f16b |
b79e62bc | 15 | URL: http://peak.telecommunity.com/DevCenter/setuptools |
991fba2b | 16 | BuildRequires: findutils |
b79e62bc AM |
17 | %pyrequires_eq python |
18 | BuildRequires: python-devel | |
8fd6c362 | 19 | Requires: python-devel |
b79e62bc AM |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
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 | |
28 | other packages. | |
29 | ||
1c17442b JR |
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 | |
35 | od innych pakietów. | |
eadb908c | 36 | |
b79e62bc | 37 | %prep |
cb552c1a | 38 | %setup -q -n %{module}-%{version} |
b79e62bc AM |
39 | |
40 | %build | |
41 | python ./setup.py build | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | python ./setup.py install \ | |
191919b9 | 47 | --single-version-externally-managed \ |
b79e62bc AM |
48 | --optimize 2 \ |
49 | --root=$RPM_BUILD_ROOT | |
991fba2b | 50 | |
191919b9 | 51 | rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe |
991fba2b AM |
52 | |
53 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
54 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
b79e62bc | 55 | %py_postclean |
c2e9082a | 56 | install site.py $RPM_BUILD_ROOT%{py_sitescriptdir} |
b79e62bc AM |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc *.txt | |
64 | %attr(755,root,root) %{_bindir}/* | |
65 | %{py_sitescriptdir}/%{module}* | |
191919b9 | 66 | %{py_sitescriptdir}/*.py[co] |
c2e9082a | 67 | %{py_sitescriptdir}/site.py |