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 Patch0: python-distribute-build.patch
17 URL: https://pypi.python.org/pypi/distribute
19 BuildRequires: python-setuptools > 1:7.0
20 BuildConflicts: python-distribute < 0.7
23 BuildRequires: python3-setuptools > 1:7.0
24 BuildConflicts: python3-distribute < 0.7
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.713
28 Requires: python-setuptools > 1:7.0
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Distribute was a fork of the Setuptools project. This package replaces
34 this fork with current Setuptools wrapper.
36 %description -l pl.UTF-8
37 Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz
38 jest tylko nakładką na współczesne Setuptools.
40 %package -n python3-%{pname}
41 Summary: Easily download, build, install, upgrade, and uninstall Python 3.x packages
42 Summary(pl.UTF-8): Łatwe ściąganie, budowanie, instalowanie, uaktualnianie i usuwanie pakietów Pythona 3.x
43 Group: Development/Languages/Python
44 Requires: python3-setuptools > 1:7.0
46 %description -n python3-%{pname}
47 Distribute was a fork of the Setuptools project. This package replaces
48 this fork with current Setuptools wrapper.
50 %description -n python3-%{pname} -l pl.UTF-8
51 Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz
52 jest tylko nakładką na współczesne Setuptools.
55 %setup -q -n %{pname}-%{version}
68 rm -rf $RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %{py_sitescriptdir}/distribute-%{version}-py*.egg-info
88 %files -n python3-%{pname}
89 %defattr(644,root,root,755)
90 %{py3_sitescriptdir}/distribute-%{version}-py*.egg-info