]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - python-setuptools/python-setuptools.nm
Merge remote-tracking branch 'arne_f/automake'
[people/amarx/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
MT
6name = python-setuptools
7version = 0.6c9
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
30780b8a 23
802ea3af 24source_dl =
30780b8a 25
802ea3af
MT
26build
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
46end
30780b8a 47
802ea3af
MT
48packages
49 package %{name}
50end