]>
Commit | Line | Data |
---|---|---|
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 |
7 | Summary: distribute compatibility wrapper for setuptools |
8 | Summary(pl.UTF-8): Nakładka na python-setuptools zastępujące distribute | |
fc139994 | 9 | Name: python-distribute |
47944c7c | 10 | Version: 0.7.3 |
8a4fddf1 | 11 | Release: 14 |
5123427a AF |
12 | License: PSF or ZPL |
13 | Group: Development/Languages/Python | |
47944c7c JK |
14 | Source0: https://pypi.python.org/packages/source/d/distribute/distribute-%{version}.zip |
15 | # Source0-md5: c6c59594a7b180af57af8a0cc0cf5b4a | |
3f9a8940 | 16 | Patch0: python-distribute-build.patch |
81389bbd | 17 | URL: https://pypi.python.org/pypi/distribute |
96d02474 | 18 | %if %{with python2} |
83754b8b | 19 | BuildRequires: python-setuptools > 1:7.0 |
47944c7c | 20 | BuildConflicts: python-distribute < 0.7 |
96d02474 AF |
21 | %endif |
22 | %if %{with python3} | |
83754b8b | 23 | BuildRequires: python3-setuptools > 1:7.0 |
47944c7c | 24 | BuildConflicts: python3-distribute < 0.7 |
96d02474 | 25 | %endif |
0154f75e | 26 | BuildRequires: rpm-pythonprov |
e839320d | 27 | BuildRequires: rpmbuild(macros) >= 1.713 |
83754b8b | 28 | Requires: python-setuptools > 1:7.0 |
47944c7c | 29 | BuildArch: noarch |
5123427a AF |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
47944c7c JK |
33 | Distribute was a fork of the Setuptools project. This package replaces |
34 | this fork with current Setuptools wrapper. | |
0154f75e | 35 | |
461999a4 | 36 | %description -l pl.UTF-8 |
47944c7c JK |
37 | Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz |
38 | jest tylko nakładką na współczesne Setuptools. | |
461999a4 | 39 | |
96d02474 | 40 | %package -n python3-%{pname} |
461999a4 JB |
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 | |
96d02474 | 43 | Group: Development/Languages/Python |
83754b8b | 44 | Requires: python3-setuptools > 1:7.0 |
96d02474 AF |
45 | |
46 | %description -n python3-%{pname} | |
47944c7c JK |
47 | Distribute was a fork of the Setuptools project. This package replaces |
48 | this fork with current Setuptools wrapper. | |
96d02474 | 49 | |
461999a4 | 50 | %description -n python3-%{pname} -l pl.UTF-8 |
47944c7c JK |
51 | Distribute było odgałęzieniem (forkiem) projektu Setuptools. Teraz |
52 | jest 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 |
68 | rm -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 |
79 | rm -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 |