]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python/python.nm
gcc: Update to 4.8.1.
[people/ms/ipfire-3.x.git] / python / python.nm
CommitLineData
53c273e0 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
53c273e0
MT
4###############################################################################
5
802ea3af 6name = python
127d581f 7major_ver = 2.7
9873a6be 8version = %{major_ver}.3
1802011e 9release = 2
802ea3af
MT
10thisapp = Python-%{version}
11
12groups = Development/Languages
13url = http://www.python.org
14license = Python
15summary = An interpreted, interactive, object-oriented programming language.
16
17description
18 Python is an interpreted, interactive, object-oriented programming
19 language often compared to Tcl, Perl, Scheme or Java. Python includes
20 modules, classes, exceptions, very high level dynamic data types and
21 dynamic typing. Python supports interfaces to many system calls and
53c273e0 22 libraries, as well as to various windowing systems.
802ea3af
MT
23end
24
d3be0b53
MT
25source_dl = http://python.org/ftp/python/%{version}/
26sources = %{thisapp}.tar.xz
802ea3af
MT
27
28build
29 requires
30 autoconf
31 automake
32 bzip2-devel
be87bcf6 33 db4-devel >= 1:4.8
802ea3af 34 expat-devel
1802011e 35 glibc-headers >= 2.16-4
802ea3af
MT
36 libffi-devel
37 libselinux-devel
38 ncurses-devel
39 openssl-devel
1802011e 40 pakfire-builder >= 0.9.23-4
802ea3af
MT
41 readline-devel
42 sqlite-devel
43 tar
44 zlib-devel
45 end
46
47 export CFLAGS += -D_GNU_SOURCE -fwrapv
802ea3af
MT
48
49 prepare_cmds
802ea3af
MT
50 # Remove embedded copies of expat, zlib and libffi
51 rm -rf Modules/{expat,zlib}
52 rm -rf Modules/_ctypes/{darwin,libffi,libffi_arm_wince,libffi_msvc,libffi_osx}
53
54 # Remove autoconf version check and reconfigure
55 sed -e "s/^version_required.*//" -i configure.in
56 autoreconf --force
57 end
58
536d577c
MT
59 configure_options += \
60 --enable-ipv6 \
61 --enable-unicode=ucs4 \
62 --with-system-expat \
63 --with-system-ffi \
64 --enable-shared
65
802ea3af 66 build
df7a686f
MT
67 export CPPFLAGS=$(pkg-config --cflags-only-I libffi)
68
802ea3af
MT
69 OPT="%{CFLAGS}" \
70 ./configure \
536d577c 71 %{configure_options}
802ea3af
MT
72
73 make %{PARALLELISMFLAGS}
74 end
75
76 install_cmds
77 # All *.py files don't need to be executeable...
99e69167 78 find %{BUILDROOT}%{libdir}/python*/ -name "*.py" | xargs -r chmod a-x -v
127d581f
MT
79
80 # Create symlink for shared lib.
536d577c 81 ln -svf ../../libpython%{major_ver}.so %{BUILDROOT}%{libdir}/python%{major_ver}/config/
802ea3af
MT
82 end
83end
84
85packages
86 package %{name}
536d577c
MT
87 # Define python-abi manually.
88 provides
89 python-abi = %{major_ver}
90 end
91 end
df7a686f 92
802ea3af
MT
93 package %{name}-devel
94 template DEVEL
1f9bc2f0 95
df7a686f 96 files += \
536d577c
MT
97 !%{libdir}/python*/config/Makefile \
98 !%{includedir}/python*/pyconfig.h
802ea3af 99 end
1f9bc2f0
MT
100
101 package %{name}-debuginfo
102 template DEBUGINFO
103 end
802ea3af 104end