10 |
|
# definitely should be reviewed at some point. |
11 |
|
%patch1 -p1 |
12 |
|
mkdir .libs |
13 |
– |
# Workaround for the lack of a 32bit readline-devel rpm for SL4 |
14 |
– |
# Given that the 64bit readline-devel is there, the headers are there, |
15 |
– |
# the only thing missing is the libreadline.so symlink. This is not |
16 |
– |
# a problem for SL5. |
17 |
– |
case %cmsos in |
18 |
– |
slc4*ia32 ) |
19 |
– |
ln -s /usr/lib/libreadline.so.4.3 .libs/libreadline.so |
20 |
– |
;; |
21 |
– |
esac |
13 |
|
|
14 |
|
%build |
15 |
|
./configure --prefix=%i --disable-tcl |
17 |
|
|
18 |
|
%install |
19 |
|
make install |
20 |
< |
# SCRAM ToolBox toolfile |
30 |
< |
mkdir -p %i/etc/scram.d |
31 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
32 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
33 |
< |
<Tool name=%n version=%v> |
34 |
< |
<lib name=sqlite3> |
35 |
< |
<Client> |
36 |
< |
<Environment name=SQLITE_BASE default="%i"></Environment> |
37 |
< |
<Environment name=LIBDIR default="$SQLITE_BASE/lib"></Environment> |
38 |
< |
<Environment name=BINDIR default="$SQLITE_BASE/bin"></Environment> |
39 |
< |
<Environment name=INCLUDE default="$SQLITE_BASE/include"></Environment> |
40 |
< |
</Client> |
41 |
< |
<Runtime name=PATH value="$BINDIR" type=path> |
42 |
< |
</Tool> |
43 |
< |
EOF_TOOLFILE |
44 |
< |
|
45 |
< |
%post |
46 |
< |
%{relocateConfig}etc/scram.d/%n |
20 |
> |
rm -rf %i/lib/pkgconfig |