]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - python/python.nm
Change file layout of the makefiles.
[people/amarx/ipfire-3.x.git] / python / python.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python
7 version = 2.7.1
8 release = 3
9 thisapp = Python-%{version}
10
11 groups = Development/Languages
12 url = http://www.python.org
13 license = Python
14 summary = An interpreted, interactive, object-oriented programming language.
15
16 description
17 Python is an interpreted, interactive, object-oriented programming
18 language often compared to Tcl, Perl, Scheme or Java. Python includes
19 modules, classes, exceptions, very high level dynamic data types and
20 dynamic typing. Python supports interfaces to many system calls and
21 libraries, as well as to various windowing systems.
22 end
23
24 source_dl =
25 sources = %{thisapp}.tgz
26
27 build
28 requires
29 autoconf
30 automake
31 bzip2-devel
32 db4-devel
33 expat-devel
34 gdbm-devel
35 libffi-devel
36 libselinux-devel
37 ncurses-devel
38 openssl-devel
39 pkg-config
40 readline-devel
41 sqlite-devel
42 tar
43 zlib-devel
44 end
45
46 export CFLAGS += -D_GNU_SOURCE -fwrapv
47 export CPPFLAGS = $(shell pkg-config --cflags-only-I libffi)
48
49 prepare_cmds
50 sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
51
52 # Remove embedded copies of expat, zlib and libffi
53 rm -rf Modules/{expat,zlib}
54 rm -rf Modules/_ctypes/{darwin,libffi,libffi_arm_wince,libffi_msvc,libffi_osx}
55
56 # Remove autoconf version check and reconfigure
57 sed -e "s/^version_required.*//" -i configure.in
58 autoreconf --force
59 end
60
61 build
62 OPT="%{CFLAGS}" \
63 ./configure \
64 --prefix=/usr \
65 --enable-ipv6 \
66 --with-system-expat \
67 --with-system-ffi \
68 --enable-shared
69
70 make %{PARALLELISMFLAGS}
71 end
72
73 install_cmds
74 # All *.py files don't need to be executeable...
75 find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
76 end
77 end
78
79 packages
80 package %{name}
81 end
82
83 package %{name}-devel
84 template DEVEL
85
86 files =+ \
87 !/usr/lib/python*/config/Makefile \
88 !/usr/include/python*/pyconfig.h
89 end
90 end