specgen.sh
Upload User: sorock1981
Upload Date: 2007-01-06
Package Size: 73k
Code Size: 1k
Category:

Picture Viewer

Development Platform:

Unix_Linux

  1. #!/bin/sh
  2. version=`sed -n -e "/AM_INIT_AUTOMAKE(gif2png, (.*))/s//\1/p" <configure.in`
  3. cat >gif2png.spec <<EOF
  4. Name: gif2png
  5. Version: $version
  6. Release: 1
  7. Summary: tools for converting websites from using GIFs to using PNGs
  8. Source: locke.ccil.org:/pub/esr/gif2png-$version.tar.gz
  9. Copyright: MIT-like
  10. Group: Graphics
  11. %%description 
  12. Tools for converting GIFs to PNGs.  The program gif2png converts GIF files 
  13. to PNG files.  The Python script web2png converts an entire web tree, 
  14. also patching HTML pages to keep IMG SRC references correct.
  15. %prep
  16. %setup
  17. %build
  18. CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" # Add  --enable-nls --without-included-gettext for internationalization
  19. export CFLAGS LDFLAGS
  20. ./configure -prefix=/usr
  21. make
  22. %install
  23. rm -f /usr/bin/gif2png
  24. cp gif2png web2png /usr/bin
  25. cp gif2png.1 /usr/man/man1/gif2png.1
  26. cp web2png.1 /usr/man/man1/web2png.1
  27. %files
  28. %doc README NEWS COPYING
  29. /usr/man/man1/gif2png.1
  30. /usr/man/man1/web2png.1
  31. /usr/bin/gif2png
  32. /usr/bin/web2png
  33. EOF