giflib-vl.spec 10 KB

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