18 |
|
Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz |
19 |
|
Patch0: python-2.6.4-dont-detect-dbm |
20 |
|
Patch1: python-2.6.4-fix-macosx-relocation |
21 |
+ |
Patch2: python-2.6.4-macosx-64bit |
22 |
|
|
23 |
|
%prep |
24 |
|
%setup -n Python-%realversion |
35 |
|
esac |
36 |
|
%patch0 -p1 |
37 |
|
%patch1 -p1 |
38 |
+ |
%patch2 -p1 |
39 |
|
|
40 |
|
%build |
41 |
|
# Python is awkward about passing other include or library directories |
64 |
|
# location of DB4, this was needed to avoid having it picked up from the system. |
65 |
|
export DB4_ROOT |
66 |
|
|
67 |
+ |
# Python's configure parses LDFLAGS and CPPFLAGS to look for aditional library and include directories |
68 |
|
echo $dirs |
69 |
+ |
LDFLAGS="" |
70 |
+ |
CPPFLAGS="" |
71 |
|
for d in $dirs; do |
72 |
< |
for f in $d/include/*; do |
73 |
< |
[ -e $f ] || continue |
69 |
< |
rm -f %i/include/$(basename $f) |
70 |
< |
ln -s $f %i/include |
71 |
< |
done |
72 |
< |
for f in $d/lib/*; do |
73 |
< |
[ -e $f ] || continue |
74 |
< |
rm -f %i/lib/$(basename $f) |
75 |
< |
ln -s $f %i/lib |
76 |
< |
done |
72 |
> |
LDFLAGS="$LDFLAGS -L $d/lib" |
73 |
> |
CPPFLAGS="$CPPFLAGS -I $d/include" |
74 |
|
done |
75 |
+ |
export LDFLAGS |
76 |
+ |
export CPPFLAGS |
77 |
|
|
78 |
|
additionalConfigureOptions="" |
79 |
|
case %cmsplatf in |