3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define pname distribute
7 Summary: distribute compatibility wrapper for setuptools
8 Summary(pl.UTF-8): Nakładka na python-setuptools zastępujące distribute
9 Name: python-distribute
13 Group: Development/Languages/Python
14 Source0: https://pypi.python.org/packages/source/d/distribute/distribute-%{version}.zip
15 # Source0-md5: c6c59594a7b180af57af8a0cc0cf5b4a
16 URL: https://pypi.python.org/pypi/distribute
18 BuildRequires: python-setuptools > 1:7.0
19 BuildConflicts: python-distribute < 0.7
22 BuildRequires: python3-setuptools > 1:7.0
23 BuildConflicts: python3-distribute < 0.7
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.523
27 Requires: python-setuptools > 1:7.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Distribute was a fork of the Setuptools project. This package replaces
33 this fork with current Setuptools wrapper.
35 %description -l pl.UTF-8
36 Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz
37 jest tylko nakładką na współczesne Setuptools.
39 %package -n python3-%{pname}
40 Summary: Easily download, build, install, upgrade, and uninstall Python 3.x packages
41 Summary(pl.UTF-8): Łatwe ściąganie, budowanie, instalowanie, uaktualnianie i usuwanie pakietów Pythona 3.x
42 Group: Development/Languages/Python
43 Requires: python3-setuptools > 1:7.0
45 %description -n python3-%{pname}
46 Distribute was a fork of the Setuptools project. This package replaces
47 this fork with current Setuptools wrapper.
49 %description -n python3-%{pname} -l pl.UTF-8
50 Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz
51 jest tylko nakładką na współczesne Setuptools.
54 %setup -q -n %{pname}-%{version}
58 %{__python} setup.py \
63 %{__python3} setup.py \
68 rm -rf $RPM_BUILD_ROOT
71 %{__python} -- setup.py \
74 --root=$RPM_BUILD_ROOT \
80 %{__python3} -- setup.py \
83 --root=$RPM_BUILD_ROOT \
88 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %{py_sitescriptdir}/distribute-%{version}-py*.egg-info
97 %files -n python3-%{pname}
98 %defattr(644,root,root,755)
99 %{py3_sitescriptdir}/distribute-%{version}-py*.egg-info