File: specgen.sh

package info (click to toggle)
gif2png 2.2.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 360 kB
  • ctags: 288
  • sloc: sh: 1,684; ansic: 1,557; python: 244; makefile: 61
file content (41 lines) | stat: -rwxr-xr-x 982 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

version=`sed -n -e "/AM_INIT_AUTOMAKE(gif2png, \(.*\))/s//\\1/p" <configure.in`

cat >gif2png.spec <<EOF
Name: gif2png
Version: $version
Release: 1
Summary: tools for converting websites from using GIFs to using PNGs
Source: locke.ccil.org:/pub/esr/gif2png-$version.tar.gz
Copyright: MIT-like
Group: Graphics

%%description 
Tools for converting GIFs to PNGs.  The program gif2png converts GIF files 
to PNG files.  The Python script web2png converts an entire web tree, 
also patching HTML pages to keep IMG SRC references correct.

%prep

%setup

%build
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" # Add  --enable-nls --without-included-gettext for internationalization
export CFLAGS LDFLAGS
./configure -prefix=/usr
make

%install
rm -f /usr/bin/gif2png
cp gif2png web2png /usr/bin
cp gif2png.1 /usr/man/man1/gif2png.1
cp web2png.1 /usr/man/man1/web2png.1

%files
%doc README NEWS COPYING
/usr/man/man1/gif2png.1
/usr/man/man1/web2png.1
/usr/bin/gif2png
/usr/bin/web2png
EOF