]> git.pld-linux.org Git - packages/python-distribute.git/blame - python-distribute.spec
- unneeded for python 3 - disable build, rel 14
[packages/python-distribute.git] / python-distribute.spec
CommitLineData
cddd9c13
ER
1#
2# Conditional build:
461999a4 3%bcond_without python2 # CPython 2.x module
8a4fddf1 4%bcond_with python3 # CPython 3.x module
e907b4e4 5
5123427a 6%define pname distribute
47944c7c
JK
7Summary: distribute compatibility wrapper for setuptools
8Summary(pl.UTF-8): Nakładka na python-setuptools zastępujące distribute
fc139994 9Name: python-distribute
47944c7c 10Version: 0.7.3
8a4fddf1 11Release: 14
5123427a
AF
12License: PSF or ZPL
13Group: Development/Languages/Python
47944c7c
JK
14Source0: https://pypi.python.org/packages/source/d/distribute/distribute-%{version}.zip
15# Source0-md5: c6c59594a7b180af57af8a0cc0cf5b4a
3f9a8940 16Patch0: python-distribute-build.patch
81389bbd 17URL: https://pypi.python.org/pypi/distribute
96d02474 18%if %{with python2}
83754b8b 19BuildRequires: python-setuptools > 1:7.0
47944c7c 20BuildConflicts: python-distribute < 0.7
96d02474
AF
21%endif
22%if %{with python3}
83754b8b 23BuildRequires: python3-setuptools > 1:7.0
47944c7c 24BuildConflicts: python3-distribute < 0.7
96d02474 25%endif
0154f75e 26BuildRequires: rpm-pythonprov
e839320d 27BuildRequires: rpmbuild(macros) >= 1.713
83754b8b 28Requires: python-setuptools > 1:7.0
47944c7c 29BuildArch: noarch
5123427a
AF
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
47944c7c
JK
33Distribute was a fork of the Setuptools project. This package replaces
34this fork with current Setuptools wrapper.
0154f75e 35
461999a4 36%description -l pl.UTF-8
47944c7c
JK
37Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz
38jest tylko nakładką na współczesne Setuptools.
461999a4 39
96d02474 40%package -n python3-%{pname}
461999a4
JB
41Summary: Easily download, build, install, upgrade, and uninstall Python 3.x packages
42Summary(pl.UTF-8): Łatwe ściąganie, budowanie, instalowanie, uaktualnianie i usuwanie pakietów Pythona 3.x
96d02474 43Group: Development/Languages/Python
83754b8b 44Requires: python3-setuptools > 1:7.0
96d02474
AF
45
46%description -n python3-%{pname}
47944c7c
JK
47Distribute was a fork of the Setuptools project. This package replaces
48this fork with current Setuptools wrapper.
96d02474 49
461999a4 50%description -n python3-%{pname} -l pl.UTF-8
47944c7c
JK
51Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz
52jest tylko nakładką na współczesne Setuptools.
461999a4 53
5123427a
AF
54%prep
55%setup -q -n %{pname}-%{version}
3f9a8940 56%patch0 -p1
5123427a
AF
57
58%build
96d02474 59%if %{with python2}
e839320d 60%py_build
96d02474
AF
61%endif
62
63%if %{with python3}
e839320d 64%py3_build
e907b4e4
JK
65%endif
66
5123427a
AF
67%install
68rm -rf $RPM_BUILD_ROOT
e907b4e4 69
96d02474 70%if %{with python2}
e839320d 71%py_install
96d02474
AF
72%endif
73
74%if %{with python3}
e839320d 75%py3_install
e907b4e4
JK
76%endif
77
5123427a
AF
78%clean
79rm -rf $RPM_BUILD_ROOT
80
96d02474 81%if %{with python2}
5123427a
AF
82%files
83%defattr(644,root,root,755)
c392e01d 84%{py_sitescriptdir}/distribute-%{version}-py*.egg-info
96d02474
AF
85%endif
86
87%if %{with python3}
88%files -n python3-%{pname}
89%defattr(644,root,root,755)
c392e01d 90%{py3_sitescriptdir}/distribute-%{version}-py*.egg-info
e907b4e4 91%endif
This page took 0.133352 seconds and 4 git commands to generate.