libpng10-vl.spec 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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: 1%{?_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. * Mon Sep 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.18-1vl5
  102. - applied new versioning policy, spec in utf-8
  103. - added DL option to make-install
  104. * Thu May 31 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.18-0vl3
  105. - rebuilt for VineSeed
  106. * Fri May 18 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.18-0vl2.2
  107. - add patch320 for fix CVE-2007-2445
  108. - add Vendor/Distribution Tag
  109. - built for VinePlus 4.x
  110. * Fri Nov 24 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.18-0vl2.1
  111. - add patch300 for fix CVE-2006-3334
  112. - add patch310 for fix CVE-2006-5793
  113. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.18-0vl2
  114. - rebuild for VineSeed
  115. * Wed Dec 15 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.18-0vl1
  116. - new upstream release (bug fix)
  117. - remove lines that we do not need (ex. install man)
  118. * Mon Sep 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.17-0vl1
  119. - new upstream release
  120. * Thu Aug 6 2004 SATO Masakiyo <info@pocomoco.net>
  121. - add patch105 to fix several vulnerabilities
  122. - add patch201 for prefix bug
  123. * Tue Jul 6 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl3
  124. - added Patch4 from Redhat WS updates
  125. * Mon Jun 14 2004 Matthias Clasen <mclasen@redhat.com> 1.0.13-14
  126. - Reinstate and improve the transfix patch which got lost sometime ago,
  127. but is still needed for CAN-2002-1363 (#125934)
  128. * Sun Dec 21 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.15-0vl2
  129. - rebuild with new toolchain
  130. - use License tag
  131. - change URL
  132. * Mon Apr 14 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.15-0vl1
  133. - initial compat package (libpng -> libpng10)
  134. - revised files section (remove man, and libpng.*)
  135. - remove Epoch and Serial
  136. - add Obsoletes: libpng <= 2:1.0.15 and Conflicts: libpng < 2:1.2.0
  137. * Sat Dec 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.15-0vl3
  138. - added Patch200 for linking libz shared lib
  139. - include libpng*-config
  140. * Sat Dec 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.15-0vl2
  141. - added missing libraries in the file list
  142. * Thu Nov 12 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.15-0vl1
  143. - update to 1.0.15
  144. - now, security patch were merged source.
  145. * Wed Aug 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.12-0vl3
  146. - added another security patch to preserve libpng from processing too wide
  147. image files (a patch itself extracted from DSA 140-2)
  148. * Fri Aug 02 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.12-0vl2
  149. - added a patch to fix buffer overflow (Patch100)
  150. * Fri Jul 05 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  151. - 1.0.12-0vl1
  152. - updated 1.0.12
  153. * Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  154. - 1.0.7-0vl3
  155. - use better macros
  156. - added Japanese summary and description
  157. * Tue Jul 18 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  158. - 1.0.7-0vl2
  159. - oops, spec was in Shift-JIS... Fixed it.
  160. * Mon Jul 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  161. - update to 1.0.7
  162. * Tue Mar 21 2000 Nalin Dahyabhai <nalin@redhat.com>
  163. - update to 1.0.6
  164. * Mon Mar 13 2000 Nalin Dahyabhai <nalin@redhat.com>
  165. - change serial to Epoch to get dependencies working correctly
  166. * Fri Feb 11 2000 Nalin Dahyabhai <nalin@redhat.com>
  167. - move buildroot and add URL
  168. * Sat Feb 5 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  169. - strip library
  170. - rebuild to compress man pages
  171. * Sun Nov 21 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  172. - 1.0.5
  173. - some tweaks to spec file to make updating easier
  174. - handle RPM_OPT_FLAGS
  175. * Mon Sep 20 1999 Matt Wilson <msw@redhat.com>
  176. - changed requires in libpng-devel to include serial
  177. - corrected typo
  178. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  179. - auto rebuild in the new build environment (release 2)
  180. * Sun Feb 07 1999 Michael Johnson <johnsonm@redhat.com>
  181. - rev to 1.0.3
  182. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  183. - build for 6.0
  184. * Wed Sep 23 1998 Cristian Gafton <gafton@redhat.com>
  185. - we are Serial: 1 now because we are reverting the 1.0.2 version from 5.2
  186. beta to this prior one
  187. - install man pages; set defattr defaults
  188. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  189. - translations modified for de, fr, tr
  190. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  191. - devel subpackage moved to Development/Libraries
  192. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  193. - upgraded to 1.0.1
  194. - added buildroot
  195. * Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
  196. - updated to new version
  197. - spec file cleanups
  198. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  199. - built against glibc