]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - python-setuptools/python-setuptools.nm
ad076790ec39ad89d2694a64dbc8446a152d2951
[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.6c9
8 release = 1
9 arch = noarch
10 thisapp = setuptools-%{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 =
25
26 build
27 requires
28 python-devel
29 end
30
31 prepare_cmds
32 # Scripts seem to have a wrong hashbang
33 find . -name "*.py" | xargs sed -i "1s@^#!python@#!/usr/bin/python@"
34 end
35
36 build
37 CFLAGS="%{CFLAGS}" python setup.py build
38 end
39
40 install
41 python setup.py install --skip-build --root=%{BUILDROOT}
42
43 # XXX %{PYTHON_EXTRACT_EGG} /usr/lib/python*/site-packages/%{name}*.egg
44 rm -vf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/*.exe
45 end
46 end
47
48 packages
49 package %{name}
50 end