]>
Commit | Line | Data |
---|---|---|
30780b8a | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
30780b8a SS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = python-setuptools |
9d4faef8 | 7 | version = 40.4.3 |
9c6312b6 | 8 | release = 1 |
802ea3af | 9 | arch = noarch |
9c6312b6 | 10 | thisapp = setuptools-%{version} |
802ea3af MT |
11 | |
12 | maintainer = Michael Tremer <michael.tremer@ipfire.org> | |
13 | groups = Development/Libraries | |
14 | url = http://pypi.python.org/pypi/setuptools | |
15 | license = Python or ZPLv2.0 | |
16 | summary = Easily build and distribute Python packages. | |
17 | ||
18 | description | |
19 | Setuptools is a collection of enhancements to the Python distutils | |
20 | that allow you to more easily build and distribute Python packages, | |
21 | especially ones that have dependencies on other packages. | |
22 | end | |
30780b8a | 23 | |
9d4faef8 SS |
24 | source_dl = https://github.com/pypa/setuptools/archive/v%{version}.tar.gz#/ |
25 | ||
802ea3af MT |
26 | build |
27 | requires | |
e035b2df | 28 | pakfire-builder >= 0.9.23-2 |
802ea3af | 29 | python-devel |
e035b2df | 30 | python3-devel |
802ea3af | 31 | end |
30780b8a | 32 | |
e035b2df MT |
33 | DIR_APP3 = %{DIR_APP}-python3 |
34 | ||
802ea3af | 35 | prepare_cmds |
e035b2df | 36 | cp -av %{DIR_APP} %{DIR_APP3} |
802ea3af | 37 | end |
30780b8a | 38 | |
802ea3af | 39 | build |
e035b2df | 40 | pushd %{DIR_APP3} |
9d4faef8 | 41 | %{python3} bootstrap.py |
e035b2df MT |
42 | CFLAGS="%{CFLAGS}" %{python3} setup.py build |
43 | popd | |
44 | ||
9d4faef8 | 45 | %{python} bootstrap.py |
e035b2df | 46 | CFLAGS="%{CFLAGS}" %{python} setup.py build |
802ea3af | 47 | end |
30780b8a | 48 | |
802ea3af | 49 | install |
e035b2df MT |
50 | pushd %{DIR_APP3} |
51 | %{python3} setup.py install --skip-build --root=%{BUILDROOT} | |
30780b8a | 52 | |
e035b2df MT |
53 | rm -rvf %{BUILDROOT}%{python3_sitelib}/setuptools/tests |
54 | chmod +x %{BUILDROOT}%{python3_sitelib}/setuptools/command/easy_install.py | |
55 | popd | |
56 | ||
57 | %{python} setup.py install --skip-build --root=%{BUILDROOT} | |
58 | ||
59 | rm -rvf %{BUILDROOT}%{python_sitelib}/setuptools/tests | |
60 | chmod +x %{BUILDROOT}%{python_sitelib}/setuptools/command/easy_install.py | |
61 | ||
62 | find %{BUILDROOT}{%{python_sitelib},%{python3_sitelib}} -name "*.exe" | xargs rm -vf | |
802ea3af MT |
63 | end |
64 | end | |
30780b8a | 65 | |
802ea3af MT |
66 | packages |
67 | package %{name} | |
e035b2df MT |
68 | |
69 | package python3-setuptools | |
70 | template PYTHON3 | |
71 | ||
72 | files += %{bindir}/easy_install-3* | |
73 | end | |
802ea3af | 74 | end |