libpng12-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define origname libpng
  3. Summary: A library of functions for manipulating PNG image format files.
  4. Summary(ja): PNG画像形式ファイル操作用の関数ライブラリ
  5. Name: libpng12
  6. Version: 1.2.51
  7. Release: 2%{_dist_release}
  8. License: distributable
  9. Group: System Environment/Libraries
  10. Source: ftp://ftp.simplesystems.org/pub/libpng/png/src/%{origname}-%{version}.tar.xz
  11. # security patches
  12. Patch130: libpng-1.2.50-CVE-2013-7353.patch
  13. Patch140: libpng-1.2.50-CVE-2013-7354.patch
  14. Patch141: libpng-1.2.51_pngset_limit.h.patch
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: zlib-devel
  17. Requires: zlib
  18. URL: http://www.libpng.org/pub/png/
  19. %define LIBVER 3.%{version}
  20. Epoch: 2
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. The libpng package contains a library of functions for creating and
  25. manipulating PNG (Portable Network Graphics) image format files. PNG
  26. is a bit-mapped graphics format similar to the GIF format. PNG was
  27. created to replace the GIF format, since GIF uses a patented data
  28. compression algorithm.
  29. Libpng should be installed if you need to manipulate PNG format image
  30. files.
  31. %description -l ja
  32. libpng パッケージには PNG (Portable Network Graphics) 形式の
  33. 画像ファイルを作成/操作する為のライブラリが収められています.
  34. PNG はビットマップの画像形式で,GIF によく似ています.
  35. GIF が 特許保護された LZW データ圧縮アルゴリズムを利用している為,
  36. PNG は GIF の代替画像形式として生まれました.
  37. PNG 形式の画像ファイルを扱う場合は libpng をインストールして下さい.
  38. %package devel
  39. Summary: Development tools for programs to manipulate PNG image format files.
  40. Summary(ja): PNG 形式画像ファイルを扱うプログラム向け開発ツール
  41. Group: Development/Libraries
  42. Requires: libpng12 = %{epoch}:%{version}-%{release}
  43. Requires: zlib-devel
  44. %description devel
  45. The libpng-devel package contains the header files necessary for
  46. developing programs using the PNG (Portable Network Graphics) library.
  47. %description devel -l ja
  48. libpng-devel パッケージには,PNG (Portable Network Graphics) ライブラリを
  49. 使ったプログラムを開発するのに必要なヘッダファイルが収められています.
  50. ## to build compat32 for x86_64 architecture support
  51. %package -n compat32-%{name}
  52. Summary: A library of functions for manipulating PNG image format files.
  53. Summary(ja): PNG画像形式ファイル操作用の関数ライブラリ
  54. Group: System Environment/Libraries
  55. %description -n compat32-%{name}
  56. The libpng package contains a library of functions for creating and
  57. manipulating PNG (Portable Network Graphics) image format files. PNG
  58. is a bit-mapped graphics format similar to the GIF format. PNG was
  59. created to replace the GIF format, since GIF uses a patented data
  60. compression algorithm.
  61. Libpng should be installed if you need to manipulate PNG format image
  62. files.
  63. #'
  64. %prep
  65. %setup -q -n %{origname}-%{version}
  66. # security patches
  67. %patch130 -p0 -b .CVE-2013-7353
  68. %patch140 -p0 -b .CVE-2013-7354
  69. %patch141 -p0 -b .limit.h
  70. %build
  71. #./autogen.sh
  72. %configure
  73. %__make %{?_smp_mflags}
  74. %install
  75. [ -n $RPM_BUILD_ROOT -a $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
  76. %makeinstall
  77. # remove unneeded files
  78. %__rm -f %{buildroot}%{_libdir}/libpng*.la
  79. %post -p /sbin/ldconfig
  80. %postun -p /sbin/ldconfig
  81. %post -n compat32-%{name} -p /sbin/ldconfig
  82. %postun -n compat32-%{name} -p /sbin/ldconfig
  83. %clean
  84. [ -n $RPM_BUILD_ROOT -a $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
  85. %files
  86. %defattr(-,root,root)
  87. %doc *.txt README TODO CHANGES
  88. %{_libdir}/libpng*.so.*
  89. %files devel
  90. %defattr(-,root,root)
  91. %{_bindir}/libpng12-config
  92. %{_includedir}/libpng12/*
  93. %{_libdir}/libpng12*.so
  94. %{_libdir}/pkgconfig/libpng12.pc
  95. ## to build compat32 for x86_64 architecture support
  96. %if %{build_compat32}
  97. %files -n compat32-%{name}
  98. %defattr(-,root,root)
  99. %{_libdir}/libpng*.so.*
  100. %endif
  101. %changelog
  102. * Mon Jun 23 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.2.51-2
  103. - add security patches
  104. * Sat Jun 21 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.2.51-1
  105. - rename to libpng12
  106. - build as compat package.
  107. * Fri Oct 19 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.50-1
  108. - new upstream release
  109. - drop old patches (are included in new release)
  110. * Sat Apr 28 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.46-3vl6
  111. - add patch110 for fix CVE-2011-3045
  112. - add patch120 for fix CVE-2011-3048 (png_set_text2())
  113. * Sat Feb 18 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.46-2
  114. - add patch100 for fix CVE-2011-3026
  115. * Wed Jul 13 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.46-1
  116. - new upstream release with security fix (VU#819894)
  117. - add Vendor/Distri tags
  118. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2:1.2.44-3
  119. - build with rpm-4.8.1-1 for pkg-config file
  120. * Sun Jul 18 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2:1.2.44-2
  121. - sync with Vine Linux 5 updates release
  122. * Tue Jun 29 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.44-1
  123. - new upstream release with security fix (CVE-2010-1205)
  124. * Thu Apr 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2:1.2.43-2
  125. - sync with Vine Linux 5 updates release
  126. * Sun Mar 7 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.43-1
  127. - new upstream release with security fix (CVE-2010-0205)
  128. * Wed Jan 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2:1.2.42-1
  129. - new upstream release with security fix
  130. * Tue Jun 9 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.37-1
  131. - new upstream release with security fix
  132. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2:1.2.35-2
  133. - split static library to libpng-static
  134. - needed by tuxonice-userui
  135. * Wed Feb 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.35-1
  136. - new upstream release with security fix (CVE-2009-0040)
  137. * Mon Nov 03 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.33-1
  138. - new upstream release
  139. * Fri Oct 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.32-2
  140. - spec file in UTF-8
  141. * Fri Oct 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.32-1
  142. - new upstream release with security fix (CVE-2008-3964)
  143. * Sat May 03 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2:1.2.28-1
  144. - new upstream release with security fix (CVE-2008-1382)
  145. - added running autogen.sh before configure
  146. - new versioning policy
  147. * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2:1.2.25-0vl1
  148. - new upstream release
  149. * Thu Jan 24 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2:1.2.24-0vl2
  150. - removed %%if !%%{build_compat32} case condition
  151. * Mon Jan 21 2008 Kazutaka HARADA <Kazutaka@dc4.so-net.ne.jp> 2:1.2.24-0vl1
  152. - new upstream release
  153. * Wed Oct 10 2007 Shu KONNO <owa@bg.wakwak.com> 2:1.2.21-0vl1
  154. - new upstream release
  155. * Fri May 18 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2:1.2.18-0vl1
  156. - new upstream release (CVE-2007-2445)
  157. * Sun Dec 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2:1.2.14-0vl1
  158. - new upstream release
  159. - drop obsolete patch100
  160. * Fri Nov 24 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.12-0vl1.1
  161. - add Patch100 for fix CVE-2006-5793.patch
  162. * Sat Jul 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.12-0vl1
  163. - [SECURITY] new upstream release
  164. - potential buffer overrun in chunk error processing (CVE-2006-3334)
  165. - use %%configure, %%makeinstall
  166. - drop unneeded patch10
  167. * Sun Jun 18 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.8-0vl7
  168. - rebuilt with glibc-2.3.3-3vl14
  169. * Tue Feb 28 2006 Shu KONNO <owa@bg.wakwak.com> 1.2.8-0vl6
  170. - fixed libdir path in libpng.pc
  171. * Sun Feb 12 2006 Shu KONNO <owa@bg.wakwak.com> 1.2.8-0vl5
  172. - fixed %postun (missing to build as scriptlet by invalid comment)
  173. * Thu Feb 09 2006 Shu KONNO <owa@bg.wakwak.com> 1.2.8-0vl4
  174. - added compat32-* packages for x86_64 architecture support
  175. - added CC='gcc -m32' to make when build_compat32
  176. - added LIBPATH=%{_libdir} to make
  177. * Thu Feb 02 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.8-0vl3
  178. - rebuild
  179. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.8-0vl2
  180. - rebuild for VineSeed
  181. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.8-0vl1
  182. - new upstream release (bug fix)
  183. * Mon Sep 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-0vl1
  184. - new upstream release
  185. * Tue Aug 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-0vl0.rc3
  186. - update to 1.2.6rc3
  187. - add Requires: zlib-devel to libpng-devel.
  188. * Tue Aug 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-0vl0.rc2
  189. - update to 1.2.6rc2
  190. * Sun Aug 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-0vl0.rc1
  191. - update to 1.2.6rc1
  192. - add patch10 to correct directory name in libpng.pc
  193. - clean spec file
  194. * Tue Jul 6 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl4
  195. - added Patch4 from Redhat WS updates
  196. * Mon Jun 14 2004 Matthias Clasen <mclasen@redhat.com> 1.2.2-23
  197. - Reinstate and improve the transfix patch which got lost sometime ago,
  198. but is still needed for CAN-2002-1363 (#125934)
  199. * Sun Dec 21 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.5-0vl3
  200. - rebuild with new toolchain
  201. - use License tag
  202. - change URL
  203. * Tue Apr 15 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl2
  204. - added Obsoletes: libpng12-devel for libpng-devel
  205. * Mon Apr 14 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.5-0vl1
  206. - change package name from libpng12 to libpng
  207. - revised install and files section
  208. - remove all patches
  209. - define LIBVER 3.%{version}
  210. - add Obsoletes: libpng12
  211. * Sat Mar 1 2003 Kazuhisa TAKEI <takei@vinelinux.org> 1.2.25-0vl5
  212. - new upstream version
  213. - change package name to libpng12
  214. - conflicts libpng-devel(1.0.5) and libpng12-devel
  215. * Sat Dec 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.15-0vl3
  216. - added Patch200 for linking libz shared lib
  217. - include libpng*-config
  218. * Sat Dec 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.15-0vl2
  219. - added missing libraries in the file list
  220. * Tue Nov 12 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl1
  221. - update to 1.0.15
  222. - now, security patch were merged source.
  223. * Wed Aug 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.12-0vl3
  224. - added another security patch to preserve libpng from processing too wide
  225. image files (a patch itself extracted from DSA 140-2)
  226. * Fri Aug 02 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.12-0vl2
  227. - added a patch to fix buffer overflow (Patch100)
  228. * Fri Jul 05 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  229. - 1.0.12-0vl1
  230. - updated 1.0.12
  231. * Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  232. - 1.0.7-0vl3
  233. - use better macros
  234. - added Japanese summary and description
  235. * Tue Jul 18 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  236. - 1.0.7-0vl2
  237. - oops, spec was in Shift-JIS... Fixed it.
  238. * Mon Jul 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  239. - update to 1.0.7
  240. * Tue Mar 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  241. - update to 1.0.6
  242. * Mon Mar 13 2000 Nalin Dahyabhai <nalin@redhat.com>
  243. - change serial to Epoch to get dependencies working correctly
  244. * Fri Feb 11 2000 Nalin Dahyabhai <nalin@redhat.com>
  245. - move buildroot and add URL
  246. * Sat Feb 5 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  247. - strip library
  248. - rebuild to compress man pages
  249. * Sun Nov 21 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  250. - 1.0.5
  251. - some tweaks to spec file to make updating easier
  252. - handle RPM_OPT_FLAGS
  253. * Mon Sep 20 1999 Matt Wilson <msw@redhat.com>
  254. - changed requires in libpng-devel to include serial
  255. - corrected typo
  256. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  257. - auto rebuild in the new build environment (release 2)
  258. * Sun Feb 07 1999 Michael Johnson <johnsonm@redhat.com>
  259. - rev to 1.0.3
  260. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  261. - build for 6.0
  262. * Wed Sep 23 1998 Cristian Gafton <gafton@redhat.com>
  263. - we are Serial: 1 now because we are reverting the 1.0.2 version from 5.2
  264. beta to this prior one
  265. - install man pages; set defattr defaults
  266. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  267. - translations modified for de, fr, tr
  268. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  269. - devel subpackage moved to Development/Libraries
  270. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  271. - upgraded to 1.0.1
  272. - added buildroot
  273. * Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
  274. - updated to new version
  275. - spec file cleanups
  276. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  277. - built against glibc