]> git.ipfire.org Git - ipfire-3.x.git/blame_incremental - python-setuptools/python-setuptools.nm
kernel: udpate to 5.2
[ipfire-3.x.git] / python-setuptools / python-setuptools.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = python-setuptools
7version = 40.4.3
8release = 1
9arch = noarch
10thisapp = setuptools-%{version}
11
12maintainer = Michael Tremer <michael.tremer@ipfire.org>
13groups = Development/Libraries
14url = http://pypi.python.org/pypi/setuptools
15license = Python or ZPLv2.0
16summary = Easily build and distribute Python packages.
17
18description
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.
22end
23
24source_dl = https://github.com/pypa/setuptools/archive/v%{version}.tar.gz#/
25
26build
27 requires
28 pakfire-builder >= 0.9.23-2
29 python-devel
30 python3-devel
31 end
32
33 DIR_APP3 = %{DIR_APP}-python3
34
35 prepare_cmds
36 cp -av %{DIR_APP} %{DIR_APP3}
37 end
38
39 build
40 pushd %{DIR_APP3}
41 %{python3} bootstrap.py
42 CFLAGS="%{CFLAGS}" %{python3} setup.py build
43 popd
44
45 %{python} bootstrap.py
46 CFLAGS="%{CFLAGS}" %{python} setup.py build
47 end
48
49 install
50 pushd %{DIR_APP3}
51 %{python3} setup.py install --skip-build --root=%{BUILDROOT}
52
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
63 end
64end
65
66packages
67 package %{name}
68
69 package python3-setuptools
70 template PYTHON3
71
72 files += %{bindir}/easy_install-3*
73 end
74end