libpng-vl.spec 13 KB

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