]> git.ipfire.org Git - ipfire-3.x.git/blob - python/python.nm
Merge remote-tracking branch 'stevee/unzip'
[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 = 4
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
48 prepare_cmds
49 sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
50
51 # Remove embedded copies of expat, zlib and libffi
52 rm -rf Modules/{expat,zlib}
53 rm -rf Modules/_ctypes/{darwin,libffi,libffi_arm_wince,libffi_msvc,libffi_osx}
54
55 # Remove autoconf version check and reconfigure
56 sed -e "s/^version_required.*//" -i configure.in
57 autoreconf --force
58 end
59
60 build
61 export CPPFLAGS=$(pkg-config --cflags-only-I libffi)
62
63 OPT="%{CFLAGS}" \
64 ./configure \
65 --prefix=/usr \
66 --enable-ipv6 \
67 --with-system-expat \
68 --with-system-ffi \
69 --enable-shared
70
71 make %{PARALLELISMFLAGS}
72 end
73
74 install_cmds
75 # All *.py files don't need to be executeable...
76 find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
77 end
78 end
79
80 packages
81 package %{name}
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