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