libpng10-vl.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. Summary: A library of functions for manipulating PNG image format files.
  2. Summary(ja): PNG画像形式ファイル操作用の関数ライブラリ
  3. Name: libpng10
  4. Version: 1.0.18
  5. Release: 2%{?_dist_release}
  6. License: distributable
  7. Group: System Environment/Libraries
  8. Source: ftp://swrinde.nde.swri.edu/pub/png/src/libpng-%{version}.tar.bz2
  9. Patch0: libpng-1.0.15-rhconf.patch
  10. ## Vine Patch(es)
  11. Patch200: libpng-1.0.15-zlib.patch
  12. Patch201: libpng-1.0.15-vine.patch
  13. ## Security Fix
  14. Patch300: libpng-1.0.18-CVE-2006-3334.patch
  15. Patch310: libpng-1.0.18-CVE-2006-5793.patch
  16. Patch320: libpng-1.2.8_CVE-2007-2445.patch
  17. Buildroot: %{_tmppath}/libpng-%{version}-root
  18. BuildPrereq: zlib-devel
  19. URL: http://www.libpng.org/pub/png/
  20. %define LIBVER 2.%{version}
  21. Obsoletes: libpng <= 2:1.0.15
  22. Conflicts: libpng < 2:1.2.0
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. %description
  26. The libpng package contains a library of functions for creating and
  27. manipulating PNG (Portable Network Graphics) image format files. PNG
  28. is a bit-mapped graphics format similar to the GIF format. PNG was
  29. created to replace the GIF format, since GIF uses a patented data
  30. compression algorithm.
  31. Libpng should be installed if you need to manipulate PNG format image
  32. files.
  33. %description -l ja
  34. libpng パッケージには PNG (Portable Network Graphics) 形式の
  35. 画像ファイルを作成/操作する為のライブラリが収められています.
  36. PNG はビットマップの画像形式で,GIF によく似ています.
  37. GIF が 特許保護された LZW データ圧縮アルゴリズムを利用している為,
  38. PNG は GIF の代替画像形式として生まれました.
  39. PNG 形式の画像ファイルを扱う場合は libpng をインストールして下さい.
  40. %package devel
  41. Summary: Development tools for programs to manipulate PNG image format files.
  42. Summary(ja): PNG 形式画像ファイルを扱うプログラム向け開発ツール
  43. Group: Development/Libraries
  44. Requires: libpng10 = %{version}-%{release}
  45. Provides: libpng-devel = %{version}
  46. %description devel
  47. The libpng-devel package contains the header files and static
  48. libraries necessary for developing programs using the PNG (Portable
  49. Network Graphics) library.
  50. If you want to develop programs which will manipulate PNG image format
  51. files, you should install libpng-devel. You will also need to install
  52. the libpng package.
  53. %description devel -l ja
  54. libpng-devel パッケージには,PNG (Portable Network Graphics) ライブラリを
  55. 使ったプログラムを開発するのに必要なヘッダファイルとスタティックライブラリが
  56. 収められています.
  57. PNG 形式の画像ファイルを扱うプログラムを開発したいならば,
  58. libpng-devel パッケージをインストールして下さい.同時に
  59. libpng パッケージもインストールする必要があります.
  60. %prep
  61. %setup -q -n libpng-%{version}
  62. ln -s scripts/makefile.linux Makefile
  63. %patch0 -p1 -b .rhconf
  64. %patch200 -p1 -b .zlib
  65. %patch201 -p1 -b .vine
  66. ## Security Fix
  67. %patch300 -p1 -b .CVE-2006-3334
  68. %patch310 -p1 -b .CVE-2006-5793
  69. %patch320 -p1 -b .CVE-2007-2445
  70. %build
  71. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. make install prefix=$RPM_BUILD_ROOT%{_prefix} DL=$RPM_BUILD_ROOT%{_libdir}
  75. strip -R .comments --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/libpng.so.%{LIBVER}
  76. # We do not need man
  77. rm -rf $RPM_BUILD_ROOT%{_prefix}/man
  78. %post -p /sbin/ldconfig
  79. %postun -p /sbin/ldconfig
  80. %files
  81. %defattr(-,root,root)
  82. %doc *.txt example.c README TODO CHANGES
  83. %{_libdir}/libpng*.so.*
  84. %files devel
  85. %defattr(-,root,root)
  86. ## remove libpng-config (not libpng10-config)
  87. ## if we decide to go with libpng > 1.2 with libpng10
  88. #%{_bindir}/libpng-config
  89. %{_bindir}/libpng10-config
  90. %{_includedir}/libpng10
  91. # includedir/libpng deliberately omitted,
  92. # conflicts with other libpng versions
  93. %{_libdir}/libpng10.a
  94. %{_libdir}/libpng10.so
  95. # libpng.so, libpng.a deliberately omitted,
  96. # conflicts with other libpng versions
  97. %{_libdir}/pkgconfig/libpng10.pc
  98. %clean
  99. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  100. %changelog
  101. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.18-2
  102. - rebuild with rpm-4.8.1 for pkg-config file
  103. * Mon Sep 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.18-1vl5
  104. - applied new versioning policy, spec in utf-8
  105. - added DL option to make-install
  106. * Thu May 31 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.18-0vl3
  107. - rebuilt for VineSeed
  108. * Fri May 18 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.18-0vl2.2
  109. - add patch320 for fix CVE-2007-2445
  110. - add Vendor/Distribution Tag
  111. - built for VinePlus 4.x
  112. * Fri Nov 24 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.18-0vl2.1
  113. - add patch300 for fix CVE-2006-3334
  114. - add patch310 for fix CVE-2006-5793
  115. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.18-0vl2
  116. - rebuild for VineSeed
  117. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.18-0vl1
  118. - new upstream release (bug fix)
  119. - remove lines that we do not need (ex. install man)
  120. * Mon Sep 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.17-0vl1
  121. - new upstream release
  122. * Thu Aug 6 2004 SATO Masakiyo <info@pocomoco.net>
  123. - add patch105 to fix several vulnerabilities
  124. - add patch201 for prefix bug
  125. * Tue Jul 6 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl3
  126. - added Patch4 from Redhat WS updates
  127. * Mon Jun 14 2004 Matthias Clasen <mclasen@redhat.com> 1.0.13-14
  128. - Reinstate and improve the transfix patch which got lost sometime ago,
  129. but is still needed for CAN-2002-1363 (#125934)
  130. * Sun Dec 21 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.15-0vl2
  131. - rebuild with new toolchain
  132. - use License tag
  133. - change URL
  134. * Mon Apr 14 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.15-0vl1
  135. - initial compat package (libpng -> libpng10)
  136. - revised files section (remove man, and libpng.*)
  137. - remove Epoch and Serial
  138. - add Obsoletes: libpng <= 2:1.0.15 and Conflicts: libpng < 2:1.2.0
  139. * Sat Dec 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.15-0vl3
  140. - added Patch200 for linking libz shared lib
  141. - include libpng*-config
  142. * Sat Dec 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.15-0vl2
  143. - added missing libraries in the file list
  144. * Thu Nov 12 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl1
  145. - update to 1.0.15
  146. - now, security patch were merged source.
  147. * Wed Aug 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.12-0vl3
  148. - added another security patch to preserve libpng from processing too wide
  149. image files (a patch itself extracted from DSA 140-2)
  150. * Fri Aug 02 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.12-0vl2
  151. - added a patch to fix buffer overflow (Patch100)
  152. * Fri Jul 05 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  153. - 1.0.12-0vl1
  154. - updated 1.0.12
  155. * Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  156. - 1.0.7-0vl3
  157. - use better macros
  158. - added Japanese summary and description
  159. * Tue Jul 18 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  160. - 1.0.7-0vl2
  161. - oops, spec was in Shift-JIS... Fixed it.
  162. * Mon Jul 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  163. - update to 1.0.7
  164. * Tue Mar 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  165. - update to 1.0.6
  166. * Mon Mar 13 2000 Nalin Dahyabhai <nalin@redhat.com>
  167. - change serial to Epoch to get dependencies working correctly
  168. * Fri Feb 11 2000 Nalin Dahyabhai <nalin@redhat.com>
  169. - move buildroot and add URL
  170. * Sat Feb 5 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  171. - strip library
  172. - rebuild to compress man pages
  173. * Sun Nov 21 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  174. - 1.0.5
  175. - some tweaks to spec file to make updating easier
  176. - handle RPM_OPT_FLAGS
  177. * Mon Sep 20 1999 Matt Wilson <msw@redhat.com>
  178. - changed requires in libpng-devel to include serial
  179. - corrected typo
  180. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  181. - auto rebuild in the new build environment (release 2)
  182. * Sun Feb 07 1999 Michael Johnson <johnsonm@redhat.com>
  183. - rev to 1.0.3
  184. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  185. - build for 6.0
  186. * Wed Sep 23 1998 Cristian Gafton <gafton@redhat.com>
  187. - we are Serial: 1 now because we are reverting the 1.0.2 version from 5.2
  188. beta to this prior one
  189. - install man pages; set defattr defaults
  190. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  191. - translations modified for de, fr, tr
  192. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  193. - devel subpackage moved to Development/Libraries
  194. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  195. - upgraded to 1.0.1
  196. - added buildroot
  197. * Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
  198. - updated to new version
  199. - spec file cleanups
  200. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  201. - built against glibc