1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
8 version = %{major_ver}.2
10 thisapp = Python-%{version}
12 groups = Development/Languages
13 url = http://www.python.org
15 summary = An interpreted, interactive, object-oriented programming language.
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
22 libraries, as well as to various windowing systems.
25 source_dl = http://python.org/ftp/python/%{version}/
26 sources = %{thisapp}.tar.xz
47 export CFLAGS += -D_GNU_SOURCE -fwrapv
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
62 export CPPFLAGS=$(pkg-config --cflags-only-I libffi)
68 --enable-unicode=ucs4 \
73 make %{PARALLELISMFLAGS}
77 # All *.py files don't need to be executeable...
78 find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
80 # Create symlink for shared lib.
81 ln -svf ../../libpython%{major_ver}.so %{BUILDROOT}/usr/lib/python%{major_ver}/config/
92 !/usr/lib/python*/config/Makefile \
93 !/usr/include/python*/pyconfig.h