2 |
|
## INITENV +PATH PATH %i/bin |
3 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib |
4 |
|
# OS X patches and build fudging stolen from fink |
5 |
< |
Requires: zlib expat openssl |
5 |
> |
Requires: zlib expat openssl bz2lib |
6 |
|
# FIXME: readline, ncurses, crypt, various [ng]dbm, db-*, db[1-3], |
7 |
|
# FIXME: gmp, panel, tk/tcl, x11 |
8 |
|
|
11 |
|
|
12 |
|
%prep |
13 |
|
%setup -n Python-%v |
14 |
+ |
perl -p -i -e "s|#!.*/usr/local/bin/python|#!/usr/bin/env python|" Lib/cgi.py |
15 |
+ |
|
16 |
|
%ifos darwin |
17 |
|
sed 's|@PREFIX@|%i|g' < %_sourcedir/python-osx | patch -p1 |
18 |
|
%endif |
30 |
|
# linked specifically, or could be built by ourselves, depending on |
31 |
|
# whether we like to pick up system libraries or want total control. |
32 |
|
mkdir -p %i/include %i/lib |
33 |
< |
dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT" |
33 |
> |
dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT" |
34 |
|
for d in $dirs; do |
35 |
|
for f in $d/include/*; do |
36 |
|
[ -f $f ] || continue |
44 |
|
done |
45 |
|
done |
46 |
|
|
47 |
< |
./configure --prefix=%i --enable-shared |
47 |
> |
./configure --prefix=%i --enable-shared --without-tk --disable-tk --without-readline |
48 |
|
make %makeprocesses |
49 |
|
|
50 |
|
%install |