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
47 export CPPFLAGS = $(shell pkg-config --cflags-only-I libffi)
50 sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
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}
56 # Remove autoconf version check and reconfigure
57 sed -e "s/^version_required.*//" -i configure.in
70 make %{PARALLELISMFLAGS}
74 # All *.py files don't need to be executeable...
75 find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
87 !/usr/lib/python*/config/Makefile \
88 !/usr/include/python*/pyconfig.h