1 |
|
### RPM external libungif 4.1.4 |
2 |
< |
Source: http://switch.dl.sourceforge.net/sourceforge/%{n}/%{n}-%{v}.tar.gz |
2 |
> |
|
3 |
> |
Source: http://switch.dl.sourceforge.net/sourceforge/giflib/%{n}-%{realversion}.tar.gz |
4 |
> |
|
5 |
> |
%prep |
6 |
> |
%setup -n %n-%{realversion} |
7 |
|
|
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.xml |
19 |
+ |
<tool name="%n" version="%v"> |
20 |
+ |
<info url="http://sourceforge.net/projects/libungif"/> |
21 |
+ |
<lib name="ungif"/> |
22 |
+ |
<client> |
23 |
+ |
<environment name="LIBUNGIF_BASE" default="%i"/> |
24 |
+ |
<environment name="LIBDIR" default="$LIBUNGIF_BASE/lib"/> |
25 |
+ |
<environment name="INCLUDE" default="$LIBUNGIF_BASE/include"/> |
26 |
+ |
</client> |
27 |
+ |
<use name="libjpg"/> |
28 |
+ |
<use name="zlib"/> |
29 |
+ |
</tool> |
30 |
+ |
EOF_TOOLFILE |
31 |
+ |
|
32 |
+ |
%post |
33 |
+ |
%{relocateConfig}lib/libungif.la |
34 |
+ |
%{relocateConfig}etc/scram.d/%n.xml |