1 |
< |
### RPM external bz2lib 1.0.2-wt1 |
1 |
> |
### RPM external bz2lib 1.0.2-CMS8 |
2 |
|
# Build system patches by Lassi A. Tuura <lat@iki.fi> |
3 |
|
Source: ftp://sources.redhat.com/pub/bzip2/v%(echo %realversion | tr -d .)/bzip2-%realversion.tar.gz |
4 |
|
%define cpu %(echo %cmsplatf | cut -f2 -d_) |
26 |
|
ln -s libbz2.$so.%realversion %i/lib/libbz2.$so.`echo %realversion | cut -d. -f 1,2` |
27 |
|
ln -s libbz2.$so.%realversion %i/lib/libbz2.$so.`echo %realversion | cut -d. -f 1` |
28 |
|
|
29 |
+ |
# 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 |
+ |
<info url="http://sources.redhat.com/bzip2/"></info> |
35 |
+ |
<lib name=bz2> |
36 |
+ |
<Client> |
37 |
+ |
<Environment name=BZ2LIB_BASE default="%i"></Environment> |
38 |
+ |
<Environment name=LIBDIR default="$BZ2LIB_BASE/lib"></Environment> |
39 |
+ |
<Environment name=INCLUDE default="$BZ2LIB_BASE/include"></Environment> |
40 |
+ |
</Client> |
41 |
+ |
</Tool> |
42 |
+ |
EOF_TOOLFILE |
43 |
|
|
44 |
+ |
%post |
45 |
+ |
%{relocateConfig}etc/scram.d/%n |