1 |
< |
### RPM external python 2.6.2 |
1 |
> |
### RPM external python 2.6.4 |
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 false;; 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 |
|
|
54 |
|
#mkdir -p %i/include %i/lib |
55 |
|
mkdir -p %i/include %i/lib %i/bin |
56 |
|
|
57 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
57 |
> |
%if "%online" != "true" |
58 |
|
%define extradirs $ZLIB_ROOT $OPENSSL_ROOT |
59 |
|
%else |
60 |
|
%define extradirs %{nil} |
134 |
|
rm `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'` |
135 |
|
rm `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'` |
136 |
|
|
137 |
+ |
%if "%online" == "true" |
138 |
|
# remove tkinter that brings dependency on libtk: |
136 |
– |
# |
137 |
– |
|
139 |
|
rm `find %{i}/lib -type f -name "_tkinter.so"` |
140 |
+ |
%endif |
141 |
|
|
142 |
|
# SCRAM ToolBox toolfile |
143 |
|
mkdir -p %i/etc/scram.d |