8 |
|
Requires: expat bz2lib db4 gdbm |
9 |
|
|
10 |
|
%if "%online" != "true" |
11 |
< |
Requires: zlib openssl |
11 |
> |
Requires: zlib openssl sqlite |
12 |
|
%endif |
13 |
|
|
14 |
|
# FIXME: readline, crypt |
55 |
|
mkdir -p %i/include %i/lib %i/bin |
56 |
|
|
57 |
|
%if "%online" != "true" |
58 |
< |
%define extradirs $ZLIB_ROOT $OPENSSL_ROOT |
58 |
> |
%define extradirs $ZLIB_ROOT $OPENSSL_ROOT $SQLITE_ROOT |
59 |
|
%else |
60 |
|
%define extradirs %{nil} |
61 |
|
%endif |
117 |
|
(cd %i/lib/python%{pythonv}/config |
118 |
|
perl -p -i -e 's|-fno-common||g' Makefile) |
119 |
|
|
120 |
< |
find %i/lib/python%{pythonv}/config -name 'libpython*' -exec mv {} %i/lib \; |
120 |
> |
find %i/lib/python%{pythonv}/config -name 'libpython*' -exec mv -f {} %i/lib \; |
121 |
|
;; |
122 |
|
esac |
123 |
|
|
136 |
|
|
137 |
|
%if "%online" == "true" |
138 |
|
# remove tkinter that brings dependency on libtk: |
139 |
< |
rm `find %{i}/lib -type f -name "_tkinter.so"` |
139 |
> |
find %{i}/lib -type f -name "_tkinter.so" -exec rm {} \; |
140 |
|
%endif |
141 |
|
|
142 |
|
# SCRAM ToolBox toolfile |
165 |
|
%post |
166 |
|
find $RPM_INSTALL_PREFIX/%pkgrel/lib -type l | xargs ls -la | sed -e "s|.*[ ]\(/.*\) -> \(.*\)| \2 \1|;s|[ ]/[^ ]*/external| $RPM_INSTALL_PREFIX/%cmsplatf/external|g" | xargs -n2 ln -sf |
167 |
|
%{relocateConfig}etc/scram.d/%n |
168 |
+ |
%{relocateConfig}lib/python2.6/config/Makefile |