1 |
< |
### RPM external simage 1.6.1 |
2 |
< |
Source: http://ftp.coin3d.org/coin/src/all/%{n}-%{v}.tar.gz |
1 |
> |
### RPM external simage 1.6.1-CMS18 |
2 |
> |
Source: http://ftp.coin3d.org/coin/src/all/%{n}-%{realversion}.tar.gz |
3 |
|
%define tmpplatf %(echo %cmsplatf | cut -d_ -f2) |
4 |
|
|
5 |
|
Requires: libungif libjpg zlib libpng |
8 |
|
%endif |
9 |
|
|
10 |
|
%prep |
11 |
< |
%setup -n %{n}-%{v} |
11 |
> |
%setup -n %{n}-%{realversion} |
12 |
|
|
13 |
|
%build |
14 |
|
CONFIGURE_ENV= |
25 |
|
--with-zlib=$ZLIB_ROOT \ |
26 |
|
--with-png=$LIBPNG_ROOT \ |
27 |
|
--without-oggvorbis |
28 |
< |
make -j 7 |
28 |
> |
make |
29 |
> |
|
30 |
> |
%install |
31 |
> |
make install |
32 |
> |
# SCRAM ToolBox toolfile |
33 |
> |
mkdir -p %i/etc/scram.d |
34 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
35 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
36 |
> |
<Tool name=simage version=%v> |
37 |
> |
<info url=http://www.coin3d.org/Coin3D/file_format_libs/simage></info> |
38 |
> |
<Lib name=simage> |
39 |
> |
<Client> |
40 |
> |
<Environment name=SIMAGE_BASE default="%i"></Environment> |
41 |
> |
<Environment name=LIBDIR default="$SIMAGE_BASE/lib"></Environment> |
42 |
> |
<Environment name=INCLUDE default="$SIMAGE_BASE/include"></Environment> |
43 |
> |
</Client> |
44 |
> |
<use name=zlib> |
45 |
> |
<use name=libjpg> |
46 |
> |
</Tool> |
47 |
> |
EOF_TOOLFILE |
48 |
> |
|
49 |
> |
%post |
50 |
> |
%{relocateConfig}bin/simage-config |
51 |
> |
%{relocateConfig}lib/libsimage.la |
52 |
> |
%{relocateConfig}share/Coin/conf/simage-default.cfg |
53 |
> |
%{relocateConfig}etc/scram.d/%n |