optipng-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Name: optipng
  2. Version: 0.6.4
  3. Release: 1%{?_dist_release}
  4. Summary: PNG optimizer and converter
  5. Summary(ja): PNG オプティマイザ と コンバータ
  6. Group: Applications/Graphics
  7. License: zlib
  8. URL: http://optipng.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: zlib-devel libpng-devel
  12. %description
  13. OptiPNG is a PNG optimizer that recompresses image files to a smaller size,
  14. without losing any information. This program also converts external formats
  15. (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks
  16. and corrections.
  17. %description -l ja
  18. OptiPNG は、PNG 形式の画像ファイルを何ら情報を失うことなく
  19. より小さなサイズへと再圧縮するオプティマイザです。
  20. このプログラムは、外部フォーマット (BMP、GIF、PNM および TIFF)から
  21. 最適化された PNG 形式へと変換し、PNG 形式の整合性チェックと訂正を行います。
  22. %prep
  23. %setup -q
  24. # Ensure system libs and headers are used; as of 0.6.1 pngxtern will use
  25. # the bundled headers if present even with -with-system-*, causing failures.
  26. rm -rf lib/libpng lib/zlib
  27. %define makefile gcc.mak
  28. %build
  29. ./configure -with-system-zlib -with-system-libpng
  30. cd src/
  31. make -f scripts/%{makefile} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"\
  32. LDFLAGS="$RPM_OPT_FLAGS"
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. cd src/
  36. make -f scripts/%{makefile} install DESTDIR="$RPM_BUILD_ROOT"\
  37. prefix="%{_prefix}" \
  38. man1dir="%{_mandir}/man1"
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-,root,root,-)
  43. %doc README.txt LICENSE.txt doc/*
  44. %{_bindir}/optipng
  45. %{_mandir}/man1/optipng.1*
  46. %changelog
  47. * Thu Apr 15 2010 Shu KONNO <owa@bg.wakwak.com> - 0.6.4-1
  48. - new upstream release
  49. * Wed Jul 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
  50. - initial build for VineSeed
  51. * Wed Nov 12 2008 Till Maas <opensource@till.name> - 0.6.2-1
  52. - Update to new release to fix buffer overflow
  53. - Red Hat Bugzilla #471206
  54. * Thu Aug 28 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.6.1-1
  55. - 0.6.1.
  56. * Thu Feb 14 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.5.5-4
  57. - Apply sf.net patch #1790969 to fix crash with -log.
  58. - Cosmetic specfile changes.
  59. * Thu Aug 02 2007 Till Maas <opensource till name> - 0.5.5-3
  60. - update License: Tag according to new Guidelines
  61. * Wed Feb 14 2007 Till Maas <opensource till name> - 0.5.5-2
  62. - rebuild because of new libpng
  63. * Tue Feb 06 2007 Till Maas <opensource till name> - 0.5.5-1
  64. - Version bump
  65. * Wed Nov 29 2006 Till Maas <opensource till name> - 0.5.4-4
  66. - splitting makefile patches
  67. - make LDFLAGS=$RPM_OPT_FLAGS
  68. - Use own makefile define
  69. - Fixing 216784 with upstream patch
  70. * Wed Oct 11 2006 Till Maas <opensource till name> - 0.5.4-3
  71. - bumping release because of errors while importing to extras
  72. * Tue Oct 10 2006 Till Maas <opensource till name> - 0.5.4-2
  73. - shortening Summary
  74. * Thu Sep 14 2006 Till Maas <opensource till name> - 0.5.4-1
  75. - version bump
  76. - use system zlib and libpng
  77. - link without "-s" flag for non-empty debuginfo
  78. - use DESTDIR
  79. * Fri Jul 28 2006 Till Maas <opensource till name> - 0.5.3-1
  80. - version bump
  81. - Changed license tag back to zlib/libpng (#198616 rpmlint)
  82. - use $RPM_OPT_FLAGS instead of %%{optflags}
  83. * Thu Jul 06 2006 Till Maas <opensource till name> - 0.5.2-2
  84. - Changed license tag from zlib/libpng to zlib
  85. * Tue Jul 04 2006 Till Maas <opensource till name> - 0.5.2-1
  86. - Created from scratch for fedora extras