libtiff-vl.spec 14 KB

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