libtiff-vl.spec 11 KB

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