pngquant-vl.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. %global libname libimagequant
  2. Name: pngquant
  3. Version: 2.16.0
  4. Release: 1%{?_dist_release}
  5. Summary: PNG quantization tool for reducing image file size
  6. Group: graphics
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv3+
  10. URL: http://%{name}.org
  11. Source0: https://github.com/pornel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
  12. Patch1: pngquant-old_libpng.patch
  13. BuildRequires: gcc
  14. BuildRequires: libpng-devel >= 1.2.46-1
  15. BuildRequires: zlib-devel >= 1.2.3-1
  16. BuildRequires: lcms2-devel
  17. BuildRequires: %{libname}-devel >= %{version}
  18. Requires: libpng%{?_isa} >= 1.2.46-1
  19. Requires: zlib%{?_isa} >= 1.2.3-1
  20. Requires: %{libname}%{?_isa} >= %{version}
  21. %description
  22. %{name} converts 24/32-bit RGBA PNG images to 8-bit palette with alpha channel
  23. preserved. Such images are compatible with all modern web browsers and a
  24. compatibility setting is available to help transparency degrade well in
  25. Internet Explorer 6. Quantized files are often 40-70 percent smaller than
  26. their 24/32-bit version. %{name} uses the median cut algorithm.
  27. %debug_package
  28. %prep
  29. %setup -q
  30. %if 0%{?rhel} && 0%{?rhel} < 8
  31. %patch1 -p1 -b .oldlibpng
  32. %endif
  33. %build
  34. # add some speed-relevant compiler-flags
  35. export CFLAGS="%{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC"
  36. %configure --with-openmp --with-libimagequant
  37. %make_build
  38. %install
  39. %make_install
  40. %check
  41. %make_build test
  42. %files
  43. %doc README.md CHANGELOG
  44. %license COPYRIGHT
  45. %{_bindir}/%{name}
  46. %{_mandir}/man1/%{name}.1*
  47. %changelog
  48. * Fri Oct 15 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.16.0-1
  49. - new upstream release.
  50. * Mon Jul 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.15.1-1
  51. - new upstream release.
  52. * Thu Jun 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.12.6-3
  53. - initial build for Vine Linux.
  54. * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.6-2
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  56. * Mon Dec 30 2019 Sandro Mani <manisandro@gmail.com> - 2.12.6-1
  57. - Update to 2.12.6
  58. * Mon Jul 29 2019 Sandro Mani <manisandro@gmail.com> - 2.12.5-1
  59. - Update to 2.12.5
  60. * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.3-2
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  62. * Mon May 27 2019 Sandro Mani <manisandro@gmail.com< - 2.12.3-1
  63. - Update to 2.12.3
  64. * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.2-2
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  66. * Mon Oct 29 2018 Sandro Mani <manisandro@gmail.com> - 2.12.2-1
  67. - Update to 2.12.2
  68. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-2
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  70. * Fri Jun 08 2018 Sandro Mani <manisandro@gmail.com> - 2.12.1-1
  71. - Update to 2.12.1
  72. * Mon Mar 12 2018 Sandro Mani <manisandro@gmail.com> - 2.11.7-5
  73. - Relax libimagequant version requires
  74. * Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 2.11.7-4
  75. - Rebuild to fix GCC 8 mis-compilation
  76. See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
  77. * Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.11.7-3
  78. - Escape macros in %%changelog
  79. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.7-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  81. * Fri Jan 19 2018 Sandro Mani <manisandro@gmail.com> - 2.11.7-1
  82. - Update to 2.11.7
  83. * Thu Jan 18 2018 Sandro Mani <manisandro@gmail.com> - 2.11.6-1
  84. - Update to 2.11.6
  85. * Mon Nov 27 2017 Sandro Mani <manisandro@gmail.com> - 2.11.4-1
  86. - Update to 2.11.4
  87. * Thu Nov 23 2017 Sandro Mani <manisandro@gmail.com> - 2.11.3-1
  88. - Update to 2.11.3
  89. * Sat Nov 11 2017 Sandro Mani <manisandro@gmail.com> - 2.11.2-2
  90. - Require libimagequant greater or equal %%{version}
  91. * Sun Nov 05 2017 Sandro Mani <manisandro@gmail.com> - 2.11.2-1
  92. - Update to 2.11.2
  93. * Wed Nov 01 2017 Sandro Mani <manisandro@gmail.com> - 2.11.0-1
  94. - Update to 2.11.0
  95. * Wed Aug 09 2017 Sandro Mani <manisandro@gmail.com> - 2.10.2-1
  96. - Update to 2.10.2
  97. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-4
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  99. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-3
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  101. * Mon Jul 10 2017 Björn Esser <besser82@fedoraproject.org> - 2.10.1-2
  102. - Apply additional compiler flags properly
  103. * Mon Jul 10 2017 Sandro Mani <manisandro@gmail.com> - 2.10.1-1
  104. - Update to 2.10.1
  105. * Mon Jul 03 2017 Sérgio Basto <sergio@serjux.com> - 2.10.0-1
  106. - Update to 2.10.0
  107. * Sat Jul 01 2017 Sérgio Basto <sergio@serjux.com> - 2.9.1-2
  108. - update to pre 2.9.2
  109. * Wed Apr 19 2017 Sérgio Basto <sergio@serjux.com> - 2.9.1-1
  110. - Update pngquant to 2.9.1
  111. - Update Makefile to better handle build the shared libraries
  112. - Remove libimagequant sub-package and use the new libimagequant package.
  113. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  115. * Fri Dec 02 2016 Sérgio Basto <sergio@serjux.com> - 2.8.1-1
  116. - New upstream vesion, 2.8.1
  117. * Fri Dec 02 2016 Sérgio Basto <sergio@serjux.com> - 2.7.2-1
  118. - Update pngquant 2.7.2
  119. * Fri Jul 15 2016 Sérgio Basto <sergio@serjux.com> - 2.7.1-1
  120. - Update pngquant 2.7.1
  121. * Tue May 10 2016 Sérgio Basto <sergio@serjux.com> - 2.7.0-1
  122. - Update to 2.7.0
  123. - License change to GPLv3+ .
  124. * Thu Mar 17 2016 Sérgio Basto <sergio@serjux.com> - 2.6.0-2
  125. - Compilation with OpenMP
  126. * Sun Feb 21 2016 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 2.6.0-1
  127. - Update to 2.6.0 (#1310413)
  128. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-7
  129. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  130. * Wed Jan 20 2016 Sérgio Basto <sergio@serjux.com> - 2.5.2-6
  131. - Patches from here are upstreamed.
  132. * Sat Dec 19 2015 Sérgio Basto <sergio@serjux.com> - 2.5.2-5
  133. - Following https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag
  134. * Sat Dec 19 2015 Björn Esser <fedora@besser82.io> - 2.5.2-4
  135. - Add '-std=c99' for building the testsuite binary
  136. * Sat Dec 19 2015 Björn Esser <fedora@besser82.io> - 2.5.2-3
  137. - Add Patch1: make the configure-script work with %%configure
  138. - Build and run the testsuite
  139. - Conditionalize %%license
  140. - Remove all el5-related things, since we need gcc >= 4.2 anyways
  141. - Fix %%{?_isa} on (Build)Requires
  142. * Sat Dec 19 2015 Sérgio Basto <sergio@serjux.com> - 2.5.2-2
  143. - Disable pngquant debug (#1291885)
  144. * Thu Nov 26 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 2.5.2-1
  145. - Update to 2.5.2 (#1285589)
  146. * Thu Aug 27 2015 Sérgio Basto <sergio@serjux.com> - 2.5.1-1
  147. - Update to 2.5.1
  148. * Thu Jul 02 2015 Sérgio Basto <sergio@serjux.com> - 2.5.0-1
  149. - Update to 2.5.0 (#1238501)
  150. - Update to pngquant-2.5.0_fix-Makefile.patch .
  151. * Sat Jun 20 2015 Sérgio Basto <sergio@serjux.com> - 2.4.2-3
  152. - pngquant now requires libimagequant with same version
  153. * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-2
  154. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  155. * Wed Jun 17 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 2.4.2-1
  156. - Update to 2.4.2 (#1232532)
  157. - Add license tag.
  158. * Mon Apr 20 2015 Sérgio Basto <sergio@serjux.com> - 2.4.1-1
  159. - Update to 2.4.1
  160. - Dropped "epel compile fix" patch
  161. * Sun Apr 19 2015 Sérgio Basto <sergio@serjux.com> - 2.4.0.1-4
  162. - epel compile fix or compile fix for png15
  163. * Sun Apr 19 2015 Sérgio Basto <sergio@serjux.com> - 2.4.0.1-3
  164. - Reenabled SSE on i386, compiling is fixed !
  165. - Better pngquant-2.4.0_fix-Makefile.patch more close to upstream.
  166. * Sun Apr 19 2015 Sérgio Basto <sergio@serjux.com> - 2.4.0.1-2
  167. - Fixed dependency of libimagequant.so.0
  168. - Minor fix on ln to %%{libname}.so
  169. * Sun Apr 19 2015 Sérgio Basto <sergio@serjux.com> - 2.4.0.1-1
  170. - Update to 2.4.0
  171. * Mon Feb 09 2015 Sérgio Basto <sergio@serjux.com> - 2.3.4-1
  172. - Update to 2.3.4
  173. * Wed Jan 07 2015 Sérgio Basto <sergio@serjux.com> - 2.3.2-1
  174. - New bug fix release.
  175. * Fri Oct 17 2014 Sérgio Basto <sergio@serjux.com> - 2.3.1-1
  176. - New bug fixing release
  177. * Sat Sep 27 2014 Sérgio Basto <sergio@serjux.com> - 2.3.0-2
  178. - Disable SSE on i386, to workaround building on i386 ,
  179. https://github.com/pornel/pngquant/issues/122
  180. * Sat Sep 27 2014 Sérgio Basto <sergio@serjux.com> - 2.3.0-1
  181. - New upstream version 2.3.0
  182. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
  183. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  184. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
  185. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  186. * Fri Aug 23 2013 Björn Esser <bjoern.esser@gmail.com> - 2.0.0-1
  187. - new upstream version 2.0.0 (#989991)
  188. - fixes FTBFS in F20 / rawhide (#992807)
  189. * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-7
  190. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  191. * Thu May 30 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-6
  192. - improved and added more el5-legacy related stuff
  193. * Fri May 24 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-5
  194. - add el5-build related conditonals
  195. * Wed May 22 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-4
  196. - add Group-Tag to make el5-build happy
  197. * Sun May 19 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-3
  198. - add Patch0: respect system compiler-flags
  199. - touch a fake configure-script during prep
  200. - export system cflags invoking configure-macro
  201. * Fri May 17 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-2
  202. - changed License: BSD --> BSD with advertising
  203. - removed -n{name}-{version} from prep
  204. - removed >= 1.2.46-1 from BuildRequires: libpng-devel
  205. * Tue May 14 2013 Björn Esser <bjoern.esser@gmail.com> - 1.8.3-1
  206. - Initial RPM release.