]>
Commit | Line | Data |
---|---|---|
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 MT |
6 | name = python |
7 | version = 2.7.1 | |
df7a686f | 8 | release = 4 |
802ea3af MT |
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 | |
53c273e0 | 21 | libraries, as well as to various windowing systems. |
802ea3af MT |
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 | |
802ea3af MT |
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 | |
df7a686f MT |
61 | export CPPFLAGS=$(pkg-config --cflags-only-I libffi) |
62 | ||
802ea3af MT |
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} | |
df7a686f | 82 | |
802ea3af MT |
83 | package %{name}-devel |
84 | template DEVEL | |
85 | ||
df7a686f | 86 | files += \ |
802ea3af MT |
87 | !/usr/lib/python*/config/Makefile \ |
88 | !/usr/include/python*/pyconfig.h | |
89 | end | |
90 | end |