giflib4-vl.spec 7.8 KB

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