1 |
< |
### RPM external python 2.4.2-CMS8 |
1 |
> |
### RPM external python 2.4.2-CMS9 |
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 bz2lib db4 gdbm |
5 |
> |
|
6 |
> |
Requires: expat bz2lib db4 gdbm |
7 |
> |
|
8 |
> |
%if "%{?online_release:set}" != "set" |
9 |
> |
Requires: zlib openssl |
10 |
> |
%endif |
11 |
> |
|
12 |
|
# FIXME: readline, crypt |
13 |
|
# FIXME: gmp, panel, tk/tcl, x11 |
14 |
|
|
50 |
|
# linked specifically, or could be built by ourselves, depending on |
51 |
|
# whether we like to pick up system libraries or want total control. |
52 |
|
mkdir -p %i/include %i/lib |
53 |
< |
dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT" |
53 |
> |
|
54 |
> |
%if "%{?online_release:set}" != "set" |
55 |
> |
%define extradirs $ZLIB_ROOT $OPENSSL_ROOT |
56 |
> |
%else |
57 |
> |
%define extradirs %{nil} |
58 |
> |
%endif |
59 |
> |
|
60 |
> |
dirs="$EXPAT_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT %{extradirs}" |
61 |
> |
|
62 |
|
echo $dirs |
63 |
|
for d in $dirs; do |
64 |
|
for f in $d/include/*; do |
65 |
< |
[ -f $f ] || continue |
65 |
> |
[ -e $f ] || continue |
66 |
|
rm -f %i/include/$(basename $f) |
67 |
|
ln -s $f %i/include |
68 |
|
done |
69 |
|
for f in $d/lib/*; do |
70 |
< |
[ -f $f ] || continue |
70 |
> |
[ -e $f ] || continue |
71 |
|
rm -f %i/lib/$(basename $f) |
72 |
|
ln -s $f %i/lib |
73 |
|
done |