1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = Python-%{version}
11 groups = Development/Languages
12 url = http://www.python.org
14 summary = An interpreted, interactive, object-oriented programming language.
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.
25 sources = %{thisapp}.tgz
46 export CFLAGS += -D_GNU_SOURCE -fwrapv
49 sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
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}
55 # Remove autoconf version check and reconfigure
56 sed -e "s/^version_required.*//" -i configure.in
61 export CPPFLAGS=$(pkg-config --cflags-only-I libffi)
71 make %{PARALLELISMFLAGS}
75 # All *.py files don't need to be executeable...
76 find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
87 !/usr/lib/python*/config/Makefile \
88 !/usr/include/python*/pyconfig.h