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 |
+ |
%define closingbrace ) |
6 |
+ |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac) |
7 |
|
|
8 |
|
Requires: expat bz2lib db4 gdbm |
9 |
|
|
10 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
10 |
> |
%if "%online" != "true" |
11 |
|
Requires: zlib openssl |
12 |
|
%endif |
13 |
|
|
53 |
|
# whether we like to pick up system libraries or want total control. |
54 |
|
mkdir -p %i/include %i/lib |
55 |
|
|
56 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
56 |
> |
%if "%online" != "true" |
57 |
|
%define extradirs $ZLIB_ROOT $OPENSSL_ROOT |
58 |
|
%else |
59 |
|
%define extradirs %{nil} |
132 |
|
rm `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'` |
133 |
|
rm `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'` |
134 |
|
|
135 |
+ |
%if "%online" == "true" |
136 |
+ |
# remove tkinter that brings dependency on libtk: |
137 |
+ |
rm `find %{i}/lib -type f -name "_tkinter.so"` |
138 |
+ |
%endif |
139 |
+ |
|
140 |
|
# SCRAM ToolBox toolfile |
141 |
|
mkdir -p %i/etc/scram.d |
142 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |