optipng-vl.spec 4.2 KB

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