15 |
|
# FIXME: gmp, panel, tk/tcl, x11 |
16 |
|
|
17 |
|
Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz |
18 |
+ |
Patch0: python-2.6.4-dont-detect-dbm |
19 |
|
|
20 |
|
%prep |
21 |
|
%setup -n Python-%realversion |
22 |
|
perl -p -i -e "s|#!.*/usr/local/bin/python|#!/usr/bin/env python|" Lib/cgi.py |
23 |
|
|
24 |
< |
%ifos darwin |
25 |
< |
sed 's|@PREFIX@|%i|g' < %_sourcedir/python-osx | patch -p1 |
26 |
< |
%endif |
24 |
> |
case %cmsplatf in |
25 |
> |
osx*) |
26 |
> |
sed 's|@PREFIX@|%i|g' < %_sourcedir/python-osx | patch -p1 |
27 |
> |
;; |
28 |
> |
esac |
29 |
> |
%patch0 -p1 |
30 |
|
|
31 |
|
%build |
32 |
|
# Python is awkward about passing other include or library directories |