1 |
< |
### RPM external libungif 4.1.4-CMS3 |
1 |
> |
### RPM external libungif 4.1.4-CMS8 |
2 |
|
|
3 |
|
Source: http://switch.dl.sourceforge.net/sourceforge/%{n}/%{n}-%{realversion}.tar.gz |
4 |
|
|
8 |
|
%build |
9 |
|
./configure --prefix=%{i} |
10 |
|
make %makeprocesses |
11 |
+ |
|
12 |
|
%install |
13 |
|
make install |
14 |
|
perl -p -i -e "s|^#!.*perl|#!/usr/bin/env perl|" %{i}/bin/gifburst |
15 |
+ |
|
16 |
+ |
# SCRAM ToolBox toolfile |
17 |
+ |
mkdir -p %i/etc/scram.d |
18 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
19 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
20 |
+ |
<Tool name=%n version=%v> |
21 |
+ |
<info url="http://sourceforge.net/projects/libungif"></info> |
22 |
+ |
<lib name=ungif> |
23 |
+ |
<Client> |
24 |
+ |
<Environment name=LIBUNGIF_BASE default="%i"></Environment> |
25 |
+ |
<Environment name=LIBDIR default="$LIBUNGIF_BASE/lib"></Environment> |
26 |
+ |
<Environment name=INCLUDE default="$LIBUNGIF_BASE/include"></Environment> |
27 |
+ |
</Client> |
28 |
+ |
<use name=libjpg> |
29 |
+ |
<use name=zlib> |
30 |
+ |
</Tool> |
31 |
+ |
EOF_TOOLFILE |
32 |
+ |
|
33 |
+ |
%post |
34 |
+ |
%{relocateConfig}lib/libungif.la |
35 |
+ |
%{relocateConfig}etc/scram.d/%n |