pngcrush-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. Summary: Pngcrush is an optimizer for PNG files.
  2. Summary(ja): pngcrush - PNG ファイルの最適化ツール
  3. Name: pngcrush
  4. Version: 1.8.1
  5. Release: 1%{?_dist_release}
  6. URL: http://pmt.sourceforge.net/pngcrush/
  7. Source: http://prdownloads.sourceforge.net/pmt/%{name}-%{version}.tar.xz
  8. #Source1: http://prdownloads.sourceforge.net/pmt/%{name}-%{version}-CHANGELOG.txt
  9. #Source2: http://prdownloads.sourceforge.net/pmt/%{name}-%{version}-HELP.txt
  10. License: distributable
  11. Group: Applications/Graphics
  12. Packager: Yasumichi Akahoshi <yasumichi@users.sourceforge.jp>
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libpng-devel pkgconfig zlib-devel
  15. %description
  16. Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
  17. Its main purpose is to reduce the size of the PNG IDAT datastream by trying
  18. various compression levels an PNG filter methods. It also can be used to
  19. remove unwanted ancillary chunks, or to add certain chunks including gAMA,
  20. tRNS, iCCP, and textual chunks.
  21. %description -l ja
  22. Pngcrush は、PNG (Portable Network Graphic) ファイルの最適化ツールです。
  23. その主な目的は、様々な圧縮レベルや、PNG フィルタ手法を試みて、PNG IDAT
  24. データストリームのサイズを縮小することです。
  25. また、見られていない補助的なチャンクを削除したり、ガンマ、tRNS、iCCP、
  26. テキストなど、ある種のチャンクを追加することが可能です。
  27. %prep
  28. %setup -q -n %{name}-%{version}
  29. #cp -p %{SOURCE1} CHANGELOG
  30. #cp -p %{SOURCE2} HELP
  31. %build
  32. #make CFLAGS="$RPM_OPT_FLAGS"
  33. #%ifnarch %{ix86}
  34. #make -f Makefile.ext-zlib ZINC=%{_includedir} ZLIB=%{_libdir} \
  35. # CFLAGS=" -I. -O3 -fomit-frame-pointer -Wall"
  36. #%else
  37. #make -f Makefile.ext-zlib ZINC=%{_includedir} ZLIB=%{_libdir}
  38. #%endif
  39. rm -f z*.h crc32.h deflate.h inf*.h trees.h png*.h # force using system headers
  40. pngflags=$(pkg-config --cflags --libs libpng)
  41. gcc %{optflags} $pngflags -lz -o pngcrush pngcrush.c
  42. %install
  43. [ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot}
  44. #mkdir -p $RPM_BUILD_ROOT%{_bindir}
  45. #install -m755 pngcrush-zlib $RPM_BUILD_ROOT%{_bindir}/pngcrush
  46. %{__install} -D -m0755 pngcrush %{buildroot}%{_bindir}/pngcrush
  47. %clean
  48. [ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot}
  49. %files
  50. %defattr(-,root,root)
  51. #%doc CHANGELOG HELP
  52. %doc ChangeLog.html
  53. %{_bindir}/pngcrush
  54. %changelog
  55. * Sun Apr 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.8.1-1
  56. - new upstream release
  57. * Tue Jul 01 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.76-1
  58. - new upstream release
  59. * Wed Jul 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.33-1
  60. - new upstream release
  61. * Mon Jul 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.31-1
  62. - new upstream release
  63. * Sun Jun 17 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.30-1
  64. - new upstream release
  65. * Mon May 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.28-1
  66. - new upstream release
  67. * Wed Apr 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.27-1
  68. - new upstream release
  69. * Tue Mar 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.25-1
  70. - new upstream release
  71. * Fri Jan 20 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.24-1
  72. - new upstream release
  73. - changed source archive type bzip2 to xz
  74. * Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.7.13-1
  75. - new upstream release
  76. - added BuildRequires: libpng-devel pkgconfig
  77. - updated spec
  78. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.4-1vl5
  79. - applied new versioning policy, spec in utf-8
  80. * Fri Oct 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.6.4-0vl2
  81. - define PNG_USE_PNGGCCRD only on ix86 archs
  82. * Fri Sep 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.4-0vl1
  83. - new upstream release
  84. - changed Group to Applications/Graphics
  85. * Fri Dec 31 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl6
  86. - rebuild with libpng-1.2.8
  87. * Sun Oct 17 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl5
  88. - rebuild with libpng-1.2.7
  89. * Mon Aug 30 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl4
  90. - rebuild with libpng-1.2.6rc3
  91. - add handle-chunk-macros.patch (HANDLE_CHUNK_* -> PNG_HANDLE_CHUNK_*)
  92. * Mon Aug 30 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl3
  93. - use system's shared libraries (patch0)
  94. - add (Build)Requires: libpng(-devel), zlib(-devel)
  95. - modify description (ja)
  96. * Mon Jul 12 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl2
  97. - add URL
  98. - remove Requires: libpng >= 1.2.4
  99. - use distributable as License
  100. - use more macros
  101. - extract source quietly
  102. * Thu Jun 03 2004 Yasumichi Akahoshi <yasumichi@users.sourceforge.jp>
  103. - pngcrush.spec was written for pngcrush-1.5.10.