17 |
|
# FIXME: gmp, panel, tk/tcl, x11 |
18 |
|
|
19 |
|
Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz |
20 |
– |
Patch0: python-2.7.3-dont-detect-dbm |
20 |
|
Patch1: python-fix-macosx-relocation |
21 |
|
|
22 |
|
%prep |
26 |
|
perl -p -i -e "s|#!.*/usr/local/bin/python|#!/usr/bin/env python|" $f |
27 |
|
else :; fi |
28 |
|
done |
30 |
– |
%patch0 -p1 |
29 |
|
%patch1 -p0 |
30 |
|
|
31 |
|
%build |
73 |
|
;; |
74 |
|
esac |
75 |
|
|
76 |
< |
./configure --prefix=%i $additionalConfigureOptions --enable-shared \ |
77 |
< |
--without-tkinter --disable-tkinter |
76 |
> |
# Bugfix for dbm package. Use ndbm.h header and gdbm compatibility layer. |
77 |
> |
sed -ibak "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py |
78 |
> |
|
79 |
> |
./configure --prefix=%i $additionalConfigureOptions --enable-shared |
80 |
|
|
81 |
|
# Modify pyconfig.h to match macros from GLIBC features.h on Linux machines. |
82 |
|
# _POSIX_C_SOURCE and _XOPEN_SOURCE macros are not identical anymore |
192 |
|
done |
193 |
|
|
194 |
|
%post |
195 |
< |
%{relocateConfig}lib/python2.6/config/Makefile |
195 |
> |
%{relocateConfig}lib/python2.7/config/Makefile |
196 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.*sh |