giflib-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library for manipulating GIF format image files.
  3. Summary(ja): GIF 形式の画像ファイルを扱うライブラリ
  4. Name: giflib
  5. Version: 5.2.1
  6. Release: 3%{_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: MIT
  11. URL: http://sourceforge.net/projects/giflib/
  12. Source: http://jaist.dl.sourceforge.net/sourceforge/giflib/%{name}-%{version}.tar.gz
  13. # Downstream cmake support
  14. Source1: CMakeLists.txt
  15. # Move quantize.c back into libgif.so (#1750122)
  16. Patch0: giflib_quantize.patch
  17. # Fix several defects found by Coverity scan
  18. Patch1: giflib_coverity.patch
  19. # Generate HTML docs with consistent section IDs to avoid multilib difference
  20. Patch2: giflib_html-docs-consistent-ids.patch
  21. # Backport fix for CVE-2022-28506
  22. # See https://sourceforge.net/u/mmuzila/giflib/ci/5b74cdd9c1285514eaa4675347ba3eea81d32c65/
  23. Patch3: CVE-2022-28506.patch
  24. # Fix segmentation faults when invoking tools with incorrect arguments (CVE-2023-39742)
  25. # Taken from Debian package
  26. Patch4: fix-get-args-segment-violation.patch
  27. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  28. BuildRequires: cmake
  29. Obsoletes: libungif < 4.1.6-1
  30. Provides: libungif = %{version}-%{release}
  31. %description
  32. The giflib package contains a shared library of functions for
  33. loading and saving GIF format image files. It is API and ABI compatible
  34. with libungif, the library which supported uncompressed GIFs while the
  35. Unisys LZW patent was in effect.
  36. Install the giflib package if you need to write programs that use GIF files.
  37. You should also install the giflib-utils package if you need some simple
  38. utilities to manipulate GIFs.
  39. %description -l ja
  40. giflib パッケージには GIF 形式の画像ファイルを読み書きするために必要な
  41. 共有ライブラリが収録されています。この giflib は、Unisys LZW 特許が有効で
  42. あった時期に、非圧縮形式の GIF ファイルを扱うために使われていたライブラリで
  43. ある libungif と API / ABI 互換性があります。
  44. GIF ファイルを扱うプログラムを作成される場合は giflib パッケージを
  45. インストールして下さい。また、GIF ファイルを操作する簡単なユーティリティが
  46. 必要な場合には giflib-utils パッケージも一緒にインストールする必要があります。
  47. %package devel
  48. Summary: Development tools for programs which will use the giflib library.
  49. Summary(ja): giflib ライブラリを使うプログラム用開発ツール
  50. Group: programming
  51. Requires: %{name} = %{version}-%{release}
  52. Obsoletes: libungif-devel < 4.1.6-1
  53. Provides: libungif-devel = %{version}-%{release}
  54. %description devel
  55. This package contains the static libraries, header files and
  56. documentation necessary for development of programs that will use the
  57. giflib library to load and save GIF format image files.
  58. You should install this package if you need to develop programs which
  59. will use libungif library functions. You'll also need to install the
  60. giflib package.
  61. %description devel -l ja
  62. このパッケージには giflib ライブラリを使って GIF 形式の画像ファイルを
  63. 読み書きするプログラムの開発に必要なスタティックライブラリ、ヘッダファイル
  64. そしてドキュメントが収められています。
  65. giflib ライブラリ関数を使うプログラム開発を行う場合は
  66. このパッケージをインストールする必要があります。
  67. giflib パッケージも同時にインストールして下さい。
  68. %package utils
  69. Summary: Programs for manipulating GIF format image files.
  70. Summary(ja): GIF 形式の画像ファイルを扱うプログラム
  71. Group: graphics
  72. Requires: %{name} = %{version}-%{release}
  73. Obsoletes: libungif-progs < 4.1.6-1
  74. %description utils
  75. The giflib-utils package contains various programs for manipulating
  76. GIF format image files.
  77. Install this package if you need to manipulate GIF format image files.
  78. You'll also need to install the giflib package.
  79. %description utils -l ja
  80. giflib-utils パッケージには GIF 形式の画像ファイルを扱う
  81. 様々なプログラムが収められています。
  82. GIF 形式の画像ファイルを扱う必要があるならこのパッケージを
  83. インストールして下さい。giflib パッケージも同時にインストールする
  84. 必要があります。
  85. ## to build compat32 for x86_64 architecture support
  86. %package -n compat32-%{name}
  87. Summary: A library for manipulating GIF format image files.
  88. Summary(ja): GIF 形式の画像ファイルを扱うライブラリ
  89. Group: system,legacy
  90. Obsoletes: compat32-libungif <= %{version}-%{release}
  91. Provides: compat32-libungif = %{version}-%{release}
  92. %description -n compat32-%{name}
  93. The giflib package contains a shared library of functions for
  94. loading and saving GIF format image files. It is API and ABI compatible
  95. with libungif, the library which supported uncompressed GIFs while the
  96. Unisys LZW patent was in effect.
  97. Install the giflib package if you need to write programs that use GIF files.
  98. You should also install the giflib-utils package if you need some simple
  99. utilities to manipulate GIFs.
  100. %package -n compat32-%{name}-devel
  101. Summary: Development tools for programs which will use the giflib library.
  102. Summary(ja): giflib ライブラリを使うプログラム用開発ツール
  103. Group: programming,legacy
  104. Obsoletes: compat32-libungif-devel < 4.1.6-1
  105. Provides: compat32-libungif-devel = %{version}-%{release}
  106. %description -n compat32-%{name}-devel
  107. This package contains the static libraries, header files and
  108. documentation necessary for development of programs that will use the
  109. giflib library to load and save GIF format image files.
  110. You should install this package if you need to develop programs which
  111. will use giflib library functions. You'll also need to install the
  112. giflib package.
  113. %debug_package
  114. %prep
  115. %autosetup -p1
  116. cp -a %{SOURCE1} .
  117. %build
  118. %cmake
  119. %cmake_build
  120. %install
  121. %cmake_install
  122. %files
  123. %defattr(-,root,root)
  124. %license COPYING
  125. %doc ChangeLog README NEWS
  126. %{_libdir}/lib*.so.*
  127. %files devel
  128. %defattr(-,root,root)
  129. %doc doc/*
  130. %{_libdir}/lib*.so
  131. %{_includedir}/*.h
  132. %files utils
  133. %defattr(-,root,root)
  134. %{_bindir}/*
  135. %{_mandir}/man1/*.1*
  136. ## to build compat32 for x86_64 architecture support
  137. %if %{build_compat32}
  138. %files -n compat32-%{name}
  139. %defattr(-,root,root)
  140. %{_libdir}/lib*.so.*
  141. %files -n compat32-%{name}-devel
  142. %defattr(-,root,root)
  143. %{_libdir}/lib*.so
  144. %endif
  145. %changelog
  146. * Thu Oct 05 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.1-3
  147. - imported Patch3 from rawhide.
  148. * Thu Jul 06 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.1-2
  149. - rebuilt with current environment.
  150. * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.1-1
  151. - new upstream release.
  152. * Sun Sep 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.3-1
  153. - new upstream release
  154. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 4.1.6-4
  155. - rebuilt with rpm-4.8.1-3
  156. * Sat Feb 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.6-3
  157. - rebuild with new environment
  158. - remove static lib
  159. * Thu Aug 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.6-2
  160. - Obsolete specific version of libungif
  161. * Sun Jan 11 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.1.6-1
  162. - switch from the obsoleted libungif to the ongoing giflib
  163. due to LZW's patent expiration which happend a few years ago
  164. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 4.1.4-2vl5
  165. - removed *.la
  166. - spec in utf-8
  167. * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.4-1vl5
  168. - applied new versioning policy
  169. - updated URL
  170. * Sun Feb 11 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.4-0vl1
  171. - new upstream release
  172. * Sat Sep 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.3-3vl3
  173. - changed libungif-progs Group to Applications/Graphics
  174. * Wed Feb 15 2006 Shu KONNO <owa@bg.wakwak.com> 4.1.3-3vl2
  175. - added compat32-* packages for x86_64 architecture support
  176. * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.3-3vl1
  177. - new upstream release
  178. - not generate libungif.so.3* any more
  179. - fixed spec file based on 4.1.3-3 from Fedora development
  180. - s/Copyright/License/
  181. - updated URL
  182. * Fri Dec 13 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.0-13vl1
  183. - based on 4.1.0-13 from Rawhide
  184. - Clean up spec file
  185. - Fix build with current auto* tools
  186. * Sat Jul 14 2001 <sagami@vinelinux.org>
  187. - 4.1.0-9vl1
  188. - follow up with 4.1.0-9 which has a fix to build against new libtool
  189. * Mon Feb 19 2001 Jun Nishii <jun@vinelinux.org>
  190. - 4.1.0-7vl2
  191. - build with netpbm
  192. * Fri Jan 12 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  193. - 4.1.0-7vl1
  194. - based on 4.1.0-7 from Rawhide
  195. - added Japanese summary and description
  196. * Thu Jul 27 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  197. - Make the subpackages require the base package (Bug #14697)
  198. - update URL
  199. - add fixes from the homepage
  200. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  201. - automatic rebuild
  202. * Sat Jun 3 2000 Nalin Dahyabhai <nalin@redhat.com>
  203. - FHS adjustments (release 5)
  204. * Mon Feb 14 2000 Elliot Lee <sopwith@redhat.com> 4.1.0-4
  205. - Add giflibcvs-small2crash.patch, which changes lib/dgif_lib.c to be
  206. whatever is currently in the libungif CVS, thus fixing bug number 9315.
  207. * Sat Feb 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  208. - strip libraries
  209. - update URL
  210. - some specfile tweaks
  211. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  212. - auto rebuild in the new build environment (release 2)
  213. * Sun Mar 14 1999 Preston Brown <pbrown@redhat.com>
  214. - include libungif 4.1.0 as standard library, with 3.1.0 backwards compat.
  215. * Mon Jan 11 1999 Cristian Gafton <gafton@redhat.com>
  216. - build for 6.0
  217. - call libtoolize to make sure it will build on the arm
  218. * Sat Oct 31 1998 Jeff Johnson <jbj@redhat.com>
  219. - package for RH 5.2.
  220. * Mon Sep 14 1998 Arne Coucheron <arneco@online.no>
  221. [3.1.0-3]
  222. - major cleanups and changes to the spec file
  223. * Mon Sep 7 1998 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
  224. - Upgrade to version 3.1.0 (which incorporates the patches in 3.0-4)
  225. - Updated Source: and URL: to reflect change in directories/pages.
  226. * Tue May 26 1998 Dick Porter <dick@cymru.net>
  227. - Fixed some "warning: cast to pointer from integer of different size" on Alpha
  228. * Tue May 5 1998 Marc Ewing <marc@redhat.com>
  229. - Made it obsolete giflib and provide libgif.so and giflib (previous
  230. giflib packages were built incorrectly and packages built against
  231. it require libgif.so but work fine with this package)
  232. - cleaned buildroot
  233. - Removed Toshio as packager so he doesn't get yelled at when Red Hat
  234. breaks it :-)
  235. * Fri Apr 24 1998 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
  236. - Initial revision of libungif, a giflib derivative modified to not use LZW
  237. compression.