]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - python-setuptools/python-setuptools.nm
python-setuptools: Update to 0.6.28.
[people/ms/ipfire-3.x.git] / python-setuptools / python-setuptools.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python-setuptools
7 version = 0.6.28
8 release = 1
9 arch = noarch
10 thisapp = distribute-%{version}
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
23
24 source_dl = http://pypi.python.org/packages/source/d/distribute/
25
26 build
27 requires
28 python-devel
29 end
30
31 prepare_cmds
32 # Scripts seem to have a wrong hashbang
33 for file in setuptools/command/easy_install.py distribute_setup.py ; do
34 sed -i '1s|^#!python|#!/usr/bin/python|' $file
35 done
36
37 # Fix file permissions.
38 chmod -R 644 %{DIR_APP}/distribute.egg-info
39 end
40
41 build
42 CFLAGS="%{CFLAGS}" python setup.py build
43 end
44
45 install
46 python setup.py install --skip-build --root=%{BUILDROOT}
47
48 # XXX %{PYTHON_EXTRACT_EGG} /usr/lib/python*/site-packages/%{name}*.egg
49 rm -vf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/*.exe
50 rm -rvf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/tests
51 end
52 end
53
54 packages
55 package %{name}
56 end