]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - python-setuptools/python-setuptools.nm
kernel: update to 4.12.10
[people/arne_f/ipfire-3.x.git] / python-setuptools / python-setuptools.nm
CommitLineData
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 6name = python-setuptools
9c6312b6
MT
7version = 28.2.0
8release = 1
802ea3af 9arch = noarch
9c6312b6 10thisapp = setuptools-%{version}
802ea3af
MT
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
30780b8a 23
802ea3af
MT
24build
25 requires
e035b2df 26 pakfire-builder >= 0.9.23-2
802ea3af 27 python-devel
e035b2df 28 python3-devel
802ea3af 29 end
30780b8a 30
e035b2df
MT
31 DIR_APP3 = %{DIR_APP}-python3
32
802ea3af 33 prepare_cmds
e035b2df 34 cp -av %{DIR_APP} %{DIR_APP3}
802ea3af 35 end
30780b8a 36
802ea3af 37 build
e035b2df
MT
38 pushd %{DIR_APP3}
39 CFLAGS="%{CFLAGS}" %{python3} setup.py build
40 popd
41
42 CFLAGS="%{CFLAGS}" %{python} setup.py build
802ea3af 43 end
30780b8a 44
802ea3af 45 install
e035b2df
MT
46 pushd %{DIR_APP3}
47 %{python3} setup.py install --skip-build --root=%{BUILDROOT}
30780b8a 48
e035b2df
MT
49 rm -rvf %{BUILDROOT}%{python3_sitelib}/setuptools/tests
50 chmod +x %{BUILDROOT}%{python3_sitelib}/setuptools/command/easy_install.py
51 popd
52
53 %{python} setup.py install --skip-build --root=%{BUILDROOT}
54
55 rm -rvf %{BUILDROOT}%{python_sitelib}/setuptools/tests
56 chmod +x %{BUILDROOT}%{python_sitelib}/setuptools/command/easy_install.py
57
58 find %{BUILDROOT}{%{python_sitelib},%{python3_sitelib}} -name "*.exe" | xargs rm -vf
802ea3af
MT
59 end
60end
30780b8a 61
802ea3af
MT
62packages
63 package %{name}
e035b2df
MT
64
65 package python3-setuptools
66 template PYTHON3
67
68 files += %{bindir}/easy_install-3*
69 end
802ea3af 70end