]>
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 | 12 | #Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}%{sub}.tar.gz |
35111168 ER |
13 | Source0: setuptools-%{version}%{subver}.tar.bz2 |
14 | # Source0-md5: 6d431478bb7cf40d331184538cc795f0 | |
b79e62bc AM |
15 | URL: http://peak.telecommunity.com/DevCenter/setuptools |
16 | %pyrequires_eq python | |
17 | BuildRequires: python-devel | |
8fd6c362 | 18 | Requires: python-devel |
b79e62bc AM |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
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 | |
27 | other packages. | |
28 | ||
1c17442b JR |
29 | %description -l pl.UTF-8 |
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 | |
34 | od innych pakietów. | |
eadb908c | 35 | |
b79e62bc | 36 | %prep |
cb552c1a | 37 | %setup -q -n %{module}-%{version} |
b79e62bc AM |
38 | |
39 | %build | |
40 | python ./setup.py build | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | python ./setup.py install \ | |
191919b9 | 46 | --single-version-externally-managed \ |
b79e62bc AM |
47 | --optimize 2 \ |
48 | --root=$RPM_BUILD_ROOT | |
991fba2b | 49 | |
191919b9 | 50 | rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe |
991fba2b AM |
51 | |
52 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
53 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
b79e62bc | 54 | %py_postclean |
c2e9082a | 55 | install site.py $RPM_BUILD_ROOT%{py_sitescriptdir} |
b79e62bc AM |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc *.txt | |
63 | %attr(755,root,root) %{_bindir}/* | |
64 | %{py_sitescriptdir}/%{module}* | |
191919b9 | 65 | %{py_sitescriptdir}/*.py[co] |
c2e9082a | 66 | %{py_sitescriptdir}/site.py |