libtiff-vl.spec 13 KB

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