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