]>
Commit | Line | Data |
---|---|---|
cb552c1a | 1 | %define module setuptools |
4ee766c4 | 2 | %define subver c11 |
0af3d87b | 3 | %define rel 3 |
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 |
026e3ba9 | 8 | Release: 2.%{subver}.%{rel} |
67093d8e | 9 | Epoch: 1 |
b79e62bc AM |
10 | License: GPL |
11 | Group: Development/Languages/Python | |
f4841952 | 12 | Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}%{subver}.tar.gz |
4ee766c4 | 13 | # Source0-md5: 7df2a529a074f613b509fb44feefe74e |
b79e62bc | 14 | URL: http://peak.telecommunity.com/DevCenter/setuptools |
b79e62bc | 15 | BuildRequires: python-devel |
45c0486f | 16 | BuildRequires: python-modules |
17 | BuildRequires: rpm-pythonprov | |
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 | |
f4841952 ER |
23 | that allow you to more easily build and distribute Python packages, |
24 | especially ones that have dependencies on other packages. | |
25 | ||
26 | This package contains the runtime components of setuptools, necessary | |
27 | to execute the software that requires pkg_resources.py. | |
b79e62bc | 28 | |
1c17442b | 29 | %description -l pl.UTF-8 |
d539774b JB |
30 | setuptools to zestaw rozszerzeń do pythonowych distutils umożliwiający |
31 | łatwiejsze budowanie i rozprowadzanie pakietów Pythona, szczególnie | |
32 | tych mających zależności od innych pakietów. | |
33 | ||
34 | Ten pakiet zawiera składniki uruchomieniowe setuptools, potrzebne do | |
35 | uruchamiania kodu wymagającego pkg_resources.py. | |
eadb908c | 36 | |
f4841952 ER |
37 | %package devel |
38 | Summary: Download, install, upgrade, and uninstall Python packages | |
d539774b | 39 | Summary(pl.UTF-8): Ściąganie, instalacja, uaktualnianie i usuwanie pakietów Pythona |
f4841952 | 40 | Group: Development/Languages |
469ff65d | 41 | Requires: %{name} = %{epoch}:%{version}-%{release} |
f4841952 ER |
42 | Requires: python-devel |
43 | ||
44 | %description devel | |
45 | setuptools is a collection of enhancements to the Python distutils | |
46 | that allow you to more easily build and distribute Python packages, | |
47 | especially ones that have dependencies on other packages. | |
48 | ||
49 | This package contains the components necessary to build and install | |
50 | software requiring setuptools. | |
51 | ||
d539774b JB |
52 | %description devel -l pl.UTF-8 |
53 | setuptools to zestaw rozszerzeń do pythonowych distutils umożliwiający | |
54 | łatwiejsze budowanie i rozprowadzanie pakietów Pythona, szczególnie | |
55 | tych mających zależności od innych pakietów. | |
56 | ||
57 | Ten pakiet zawiera składniki potrzebne do budowania i instalacji | |
58 | oprogramowania wymagającego setuptools. | |
59 | ||
b79e62bc | 60 | %prep |
f4841952 | 61 | %setup -q -n %{module}-%{version}%{subver} |
b79e62bc AM |
62 | |
63 | %build | |
f4841952 | 64 | %{__python} ./setup.py build |
b79e62bc AM |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
d539774b | 69 | %{__python} ./setup.py install \ |
191919b9 | 70 | --single-version-externally-managed \ |
b79e62bc AM |
71 | --optimize 2 \ |
72 | --root=$RPM_BUILD_ROOT | |
991fba2b | 73 | |
191919b9 | 74 | rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe |
991fba2b AM |
75 | |
76 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
77 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
b79e62bc | 78 | %py_postclean |
c2e9082a | 79 | install site.py $RPM_BUILD_ROOT%{py_sitescriptdir} |
b79e62bc AM |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
f4841952 | 86 | %doc pkg_resources.txt setuptools.txt |
b79e62bc | 87 | %{py_sitescriptdir}/%{module}* |
f4841952 ER |
88 | %{py_sitescriptdir}/pkg_resources.py[co] |
89 | %{py_sitescriptdir}/site.py[co] | |
c2e9082a | 90 | %{py_sitescriptdir}/site.py |
f4841952 ER |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %doc EasyInstall.txt README.txt api_tests.txt | |
95 | %attr(755,root,root) %{_bindir}/easy_install* | |
96 | %{py_sitescriptdir}/easy_install.py[co] |