]>
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 MT |
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 | |
30780b8a | 23 | |
802ea3af | 24 | source_dl = |
30780b8a | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
28 | python-devel | |
29 | end | |
30780b8a | 30 | |
802ea3af MT |
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 | |
30780b8a | 35 | |
802ea3af MT |
36 | build |
37 | CFLAGS="%{CFLAGS}" python setup.py build | |
38 | end | |
30780b8a | 39 | |
802ea3af MT |
40 | install |
41 | python setup.py install --skip-build --root=%{BUILDROOT} | |
30780b8a | 42 | |
802ea3af MT |
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 | |
30780b8a | 47 | |
802ea3af MT |
48 | packages |
49 | package %{name} | |
50 | end |