libtiff-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library of functions for manipulating TIFF format image files.
  3. Summary(ja): TIFF フォーマットの画像ファイルを扱うライブラリ
  4. Name: libtiff
  5. Version: 3.9.2
  6. Release: 1%{_dist_release}
  7. License: distributable
  8. Group: System Environment/Libraries
  9. Source0: http://www.libtiff.org/tiff-%{version}.tar.gz
  10. URL: http://www.remotesensing.org/libtiff/
  11. Patch1: libtiff-acversion.patch
  12. Patch2: libtiff-mantypo.patch
  13. Patch3: libtiff-CVE-2009-2347.patch
  14. Patch4: libtiff-jpeg-scanline.patch
  15. Patch5: libtiff-scanlinesize.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: zlib-devel zlib libjpeg-devel libjpeg
  18. Requires: zlib libjpeg
  19. %define LIBVER %(echo %{version} | cut -f-2 -d.)
  20. %description
  21. The libtiff package contains a library of functions for manipulating
  22. TIFF (Tagged Image File Format) image format files. TIFF is a widely
  23. used file format for bitmapped images. TIFF files usually end in the
  24. .tif extension and they are often quite large.
  25. The libtiff package should be installed if you need to manipulate TIFF
  26. format image files.
  27. %description -l ja
  28. libtiff パッケージには TIFF (Tagged Image File Format) 画像ファイルを
  29. 扱う各種ライブラリが収められています.TIFF はビットマップ画像を扱う際に
  30. 広く使われているフォーマットです.TIFF ファイルは通常 .tif のファイル
  31. 拡張子が使われ,サイズは概して大きめです.
  32. TIFF 形式の画像ファイルを扱う必要があるならば,
  33. libtiff パッケージを是非インストールして下さい.
  34. %package devel
  35. Summary: Development tools for programs which will use the libtiff library.
  36. Summary(ja): libtiff ライブラリを使うプログラム向け開発ツール
  37. Group: Development/Libraries
  38. Requires: libtiff = %{version}
  39. %description devel
  40. This package contains the header files and static libraries for
  41. developing programs which will manipulate TIFF format image files
  42. using the libtiff library.
  43. If you need to develop programs which will manipulate TIFF format
  44. image files, you should install this package. You'll also need to
  45. install the libtiff package.
  46. #'
  47. %description devel -l ja
  48. このパッケージには,libtiff ライブラリを使って TIFF 形式の
  49. 画像ファイルを扱うプログラムを開発する際に必要なヘッダファイルや
  50. スタティックライブラリが収められています.
  51. TIFF 形式画像ファイルを扱うプログラムを開発する必要がある場合は
  52. このパッケージをインストールして下さい.libtiff パッケージも同時に
  53. インストールする必要があります.
  54. ## to build compat32 for x86_64 architecture support
  55. %package -n compat32-%{name}
  56. Summary: A library of functions for manipulating TIFF format image files.
  57. Group: System Environment/Libraries
  58. Requires: zlib libjpeg
  59. Requires: %{name} = %{version}
  60. %description -n compat32-%{name}
  61. The libtiff package contains a library of functions for manipulating
  62. TIFF (Tagged Image File Format) image format files. TIFF is a widely
  63. used file format for bitmapped images. TIFF files usually end in the
  64. .tif extension and they are often quite large.
  65. The libtiff package should be installed if you need to manipulate TIFF
  66. format image files.
  67. %package -n compat32-%{name}-devel
  68. Summary: Development tools for programs which will use the libtiff library.
  69. Group: Development/Libraries
  70. Requires: compat32-%{name} = %{version}
  71. %description -n compat32-%{name}-devel
  72. This package contains the header files and static libraries for
  73. developing programs which will manipulate TIFF format image files
  74. using the libtiff library.
  75. If you need to develop programs which will manipulate TIFF format
  76. image files, you should install this package. You'll also need to
  77. install the libtiff package.
  78. #'
  79. %prep
  80. %setup -q -n tiff-%{version}
  81. %patch1 -p1 -b .acversion
  82. %patch2 -p1 -b .mantypo
  83. %patch3 -p1 -b .CVS-2009-2347
  84. %patch4 -p1 -b jpeg-scanline
  85. %patch5 -p1 -b .scanlinesize
  86. %build
  87. %configure --with-jpeg-lib-dir=%{_libdir} --disable-cxx
  88. %__make %{?_smp_mflags}
  89. %__make clean
  90. %install
  91. rm -fr $RPM_BUILD_ROOT
  92. %makeinstall
  93. rm -rf $RPM_BUILD_ROOT/usr/share/doc/tiff-%{version}
  94. # fix libdir in .la
  95. perl -pi -e "s,$RPM_BUILD_ROOT,,g" $RPM_BUILD_ROOT%{_libdir}/libtiff*.la
  96. %post -p /sbin/ldconfig
  97. %postun -p /sbin/ldconfig
  98. %if %{build_compat32}
  99. %post -n compat32-%{name} -p /sbin/ldconfig
  100. %postun -n compat32-%{name} -p /sbin/ldconfig
  101. %endif
  102. %clean
  103. rm -rf $RPM_BUILD_ROOT
  104. %files
  105. %defattr(-,root,root)
  106. %doc COPYRIGHT README RELEASE-DATE VERSION
  107. %{_bindir}/*
  108. %{_libdir}/libtiff*.so.*
  109. %{_mandir}/man1/*
  110. %files devel
  111. %defattr(-,root,root)
  112. %doc TODO html ChangeLog
  113. %{_includedir}/*
  114. %{_libdir}/libtiff*.so
  115. %{_libdir}/libtiff*.a
  116. %if %{_dist_release}=="vl4"
  117. # for Vine 4.x
  118. %{_libdir}/libtiff*.la
  119. %endif
  120. %{_mandir}/man3/*
  121. ## to build compat32 for x86_64 architecture support
  122. %if %{build_compat32}
  123. %files -n compat32-%{name}
  124. %defattr(-,root,root)
  125. %{_libdir}/libtiff.so.*
  126. %files -n compat32-%{name}-devel
  127. %defattr(-,root,root)
  128. %{_libdir}/libtiff.so
  129. %{_libdir}/libtiff.a
  130. # %{_libdir}/libtiff.la
  131. %endif
  132. %changelog
  133. * Thu Feb 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.9.2-1
  134. - new upstream release
  135. - remove BC: freeglut-devel
  136. - add patch1,2,4,5 from fedora
  137. - drop obsolete patches
  138. * Fri Jul 17 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.8.2-9
  139. - change if-endif to make both i386 and compat32 packages
  140. * Wed Jul 15 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.8.2-8
  141. - add patch5 for fix CVE-2009-2347 (Integer Overflow)
  142. * Tue Jun 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.8.2-7
  143. - add patch4 for fix lzw underflow security issue
  144. - add if branch Vine4/5 in devel files section (*.la are included or not)
  145. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.2-6vl4
  146. - removed *.la
  147. - spec in utf-8
  148. * Tue Sep 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.8.2-5vl4
  149. - fix changelog typo (3.8.4 -> 3.8.2)
  150. - new versioning policy
  151. - add patch3 for fix CVE-2008-2327 (LZW Data Decoding Buffer Underflow)
  152. * Mon Sep 25 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.8.2-0vl4
  153. - fix libdir in libtiff.la
  154. - add BuildConflicts: freeglut-devel
  155. * Thu Aug 31 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.8.2-0vl3
  156. - rebuilt without glut-devel
  157. * Fri Aug 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.2-0vl2
  158. - add Patch2 to fix multiple vulnerabilities (CVE-2006-346[012345])
  159. * Fri Jun 9 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.8.2-0vl1
  160. - new upstream release
  161. - remove obsolete patches
  162. - add Patch0 and Patch1 from Debian (CVE-2006-2193, CVE-2006-2656)
  163. - delete duped docs
  164. - add --disable-cxx to configure option
  165. - add *.la to devel package
  166. * Sun Feb 12 2006 Shu KONNO <owa@bg.wakwak.com> 3.7.1-0vl2
  167. - added compat32-* packages for x86_64 architecture support
  168. - added --with-jpeg-lib-dir=%{_libdir} to configure
  169. * Wed Feb 09 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.1-0vl1
  170. - new upstream release
  171. - remove obsolete patches
  172. - cleanup specs
  173. * Fri Jan 21 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-6vl7
  174. - rebuild for Vine3.1
  175. * Wed Jan 19 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-6vl6
  176. - add Patch15-16 from Red Hat (CAN-2004-1183) (CAN-2004-1308)
  177. - update URL
  178. * Sun Oct 31 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-6vl1.1
  179. - build for Vine2.6
  180. * Fri Oct 29 2004 IWAI, Masaharu <iwai@alib.jp> 3.5.7-6vl5
  181. - fix changelog: proper name
  182. * Wed Oct 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-6vl4
  183. - add symlink to shared lib by running ldconfig at compile time
  184. * Tue Oct 26 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-6vl3
  185. - add patch8-13 from Fedora Core
  186. --* Thu Oct 07 2004 Matthias Clasen <mclasen@redhat.com>
  187. --- fix some integer and buffer overflows (#134853, #134848)
  188. - add patch14 from SUSE LINUX
  189. --* Wed Oct 20 2004 - meissner@suse.de
  190. --- Do not crash if we are using unsupported codecs (like OJPEG).
  191. * Sun Jan 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.7-6vl2
  192. - rebuild with new toolchains
  193. - to use License instead of Copyright
  194. * Fri Jul 05 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  195. - 3.5.7-6vl1
  196. - based on 3.5.7-6 from Rawhide
  197. * Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  198. - 3.5.5-8vl1
  199. - based on 3.5.5-8 from Rawhide
  200. - added Japanese summary and description
  201. * Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
  202. - rebuild
  203. * Tue Aug 7 2000 Crutcher Dunnavant <crutcher@redhat.com>
  204. - added a tiff-to-ps.fpi filter for printing
  205. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  206. - automatic rebuild
  207. * Thu Jul 13 2000 Nalin Dahyabhai <nalin@redhat.com>
  208. - apply Peter Skarpetis's fix for the 32-bit conversion
  209. * Mon Jul 3 2000 Nalin Dahyabhai <nalin@redhat.com>
  210. - make man pages non-executable (#12811)
  211. * Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com>
  212. - remove CVS repo info from data directories
  213. * Thu May 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  214. - fix build rooting
  215. - fix syntax error in configure script
  216. - move man pages to %{_mandir}
  217. * Wed May 17 2000 Nalin Dahyabhai <nalin@redhat.com>
  218. - rebuild for an errata release
  219. * Wed Mar 29 2000 Nalin Dahyabhai <nalin@redhat.com>
  220. - update to 3.5.5, which integrates our fax2ps fixes and the glibc fix
  221. * Tue Mar 28 2000 Nalin Dahyabhai <nalin@redhat.com>
  222. - fix fax2ps swapping height and width in the bounding box
  223. * Mon Mar 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  224. - move man pages from devel package to the regular one
  225. - integrate Frank Warmerdam's fixed .fax handling code (keep until next release
  226. of libtiff)
  227. - fix fax2ps breakage (bug #8345)
  228. * Sat Feb 05 2000 Nalin Dahyabhai <nalin@redhat.com>
  229. - set MANDIR=man3 to make multifunction man pages friendlier
  230. * Mon Jan 31 2000 Nalin Dahyabhai <nalin@redhat.com>
  231. - fix URLs
  232. * Fri Jan 28 2000 Nalin Dahyabhai <nalin@redhat.com>
  233. - link shared library against libjpeg and libz
  234. * Tue Jan 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  235. - enable zip and jpeg codecs
  236. - change defattr in normal package to 0755
  237. - add defattr to -devel package
  238. * Wed Dec 22 1999 Bill Nottingham <notting@redhat.com>
  239. - update to 3.5.4
  240. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  241. - auto rebuild in the new build environment (release 6)
  242. * Wed Jan 13 1999 Cristian Gafton <gafton@redhat.com>
  243. - build for glibc 2.1
  244. * Wed Jun 10 1998 Prospector System <bugs@redhat.com>
  245. - translations modified for de
  246. * Wed Jun 10 1998 Michael Fulbright <msf@redhat.com>
  247. - rebuilt against fixed jpeg libs (libjpeg-6b)
  248. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  249. - translations modified for de, fr, tr
  250. * Mon Oct 13 1997 Donnie Barnes <djb@redhat.com>
  251. - new version to replace the one from libgr
  252. - patched for glibc
  253. - added shlib support