gdk-pixbuf-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. Summary: The GdkPixBuf image handling library
  2. Summary(ja): GdkPixBuf - 画像を扱うライブラリ
  3. Name: gdk-pixbuf
  4. Version: 0.22.0
  5. Release: 2%{?_dist_release}
  6. License: LGPL
  7. Group: System Environment/Libraries
  8. URL: http://www.gnome.org/
  9. Source: ftp://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/0.22/%{name}-%{version}.tar.bz2
  10. Patch0: gdk-pixbuf-0.14.0-config.patch
  11. #Patch1: gdk-pixbuf-0.11.0-passall.patch
  12. Patch2: gdk-pixbuf-0.22.0-loaders.patch
  13. Patch3: gdk-pixbuf-0.22.0-CAN-2004-0753.patch
  14. # Quote in configure.in appropriately for recent libtool
  15. Patch4: gdk-pixbuf-0.22.0-acquote.patch
  16. # Patches backported from GTK+ HEAD
  17. Patch5: gdk-pixbuf-0.22.0-bmp-colormap.patch
  18. Patch6: gdk-pixbuf-0.22.0-ico-width.patch
  19. Patch7: gdk-pixbuf-underquoted.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: libpng-devel >= 1.0.3
  22. BuildRequires: libjpeg-devel
  23. BuildRequires: libtiff-devel >= 3.4
  24. BuildRequires: zlib-devel >= 1.1.3
  25. BuildRequires: glib-devel >= 1.2.0
  26. BuildRequires: gtk+-devel
  27. #BuildRequires: gnome-libs-devel >= 1.4.2-0vl7
  28. Requires: libpng >= 1.0.3
  29. Requires: zlib >= 1.1.3
  30. Requires: libtiff >= 3.4
  31. Requires: glib >= 1.2.0
  32. #Requires: gnome-libs >= 1.4.2-0vl7
  33. Packager: inagaki
  34. %description
  35. The GdkPixBuf library provides a number of features, including :
  36. - GdkPixbuf structure for representing images.
  37. - Image loading facilities.
  38. - Rendering of a GdkPixBuf into various formats:
  39. drawables (windows, pixmaps), GdkRGB buffers.
  40. - Fast scaling and compositing of pixbufs.
  41. - Simple animation loading (ie. animated gifs)
  42. In addition, this module also provides a little libgnomecanvaspixbuf
  43. library, which contains a GNOME Canvas item to display pixbufs with
  44. full affine transformations.
  45. %package devel
  46. Summary: Libraries and include files for developing GdkPixBuf applications.
  47. Summary(ja): GdkPixBuf を使うアプリケーション開発に必要なライブラリ/ファイル
  48. Group: Development/Libraries
  49. Requires: %{name} = %{version}-%{release}
  50. Requires: libpng-devel >= 1.0.3
  51. Requires: libjpeg-devel
  52. Requires: libtiff-devel >= 3.4
  53. Requires: zlib-devel >= 1.1.3
  54. Requires: gtk+-devel
  55. %description devel
  56. Libraries and include files for developing GdkPixBuf applications.
  57. %prep
  58. %setup -q
  59. %patch0 -p1 -b .config
  60. # %patch1 -p1 -b .passall
  61. %patch2 -p1 -b .can-2004-0782_0783_0788
  62. %patch3 -p0 -b .can-2004-0753
  63. %patch4 -p1 -b .acquote
  64. %patch5 -p1 -b .bmp-colormap
  65. %patch6 -p1 -b .ico-width
  66. %patch7 -p1 -b .underquoted
  67. %build
  68. ## Matt says we don't need the libtoolize, and it breaks things,
  69. ## so it's out.
  70. ## %define __libtoolize /bin/true
  71. ##
  72. ## for i in config.guess config.sub ; do
  73. ## test -f /usr/share/libtool/$i && cp /usr/share/libtool/$i .
  74. ## done
  75. %configure --libexecdir=%{_libdir}/%{name}/loaders --disable-static --disable-gtk-doc
  76. make
  77. %install
  78. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  79. %ifarch x86_64
  80. # if no gdk-pixbuf, error occurred (/usr/bin/ld: cannot find -lgdk_pixbuf)
  81. # fix me. thanks!
  82. cp libtool libtool.old
  83. sed "s|CC -shared|& -L./.libs|g" libtool.old > libtool
  84. rm libtool.old
  85. %endif
  86. %makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir}/%{name}/loaders
  87. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  88. rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/loaders/*.{la,a}
  89. %post -p /sbin/ldconfig
  90. %postun -p /sbin/ldconfig
  91. %clean
  92. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  93. %files
  94. %defattr(-, root, root)
  95. %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO doc/*.txt doc/html
  96. %{_libdir}/lib*.so.*
  97. %{_libdir}/%{name}/loaders/*.so*
  98. %files devel
  99. %defattr(-, root, root)
  100. %{_bindir}/*
  101. %{_libdir}/lib*.so
  102. #{_libdir}/%{name}/loaders/*.a
  103. #{_libdir}/%{name}/loaders/*.la
  104. #{_libdir}/*.a
  105. #{_libdir}/*.la
  106. %{_libdir}/*.sh
  107. %{_includedir}/*
  108. %{_datadir}/aclocal/*
  109. %{_datadir}/gnome/html/*
  110. %changelog
  111. * Sat Jun 6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22.0-2
  112. - spec in UTF-8
  113. - removed lib*.a files from devel package
  114. Tue May 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22.0-1
  115. - applied new versioning policy
  116. - removed lib*.la files from devel package
  117. * Sun May 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22.0-0vl9
  118. - rebuilt with gnome-libs-1.4.2-0vl7
  119. - BuildPreReq: gnome-libs-devel >= 1.4.2-0vl7
  120. * Sun May 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22.0-0vl8
  121. - rebuilt with new toolchain
  122. - added Patch4-7 from Fedora development
  123. - remove BuildPreReq: gnome-libs-devel >= 1.4.2-0vl5
  124. * Thu Feb 16 2006 Shu KONNO <owa@bg.wakwak.com> 0.22.0-0vl6.2
  125. - dissabled find_lang %%{name} macros
  126. - if x86_64, edit libtool currently because can't find '-lgdk_pixbuf' first
  127. * Thu Oct 21 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22.0-0vl6
  128. - BuildPreReq: gnome-libs-devel >= 1.4.2-0vl5
  129. * Mon Oct 11 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.22.0-0vl5
  130. - rebuilt with db4-4.2.25
  131. - disable-gtk-doc
  132. * Sun Oct 03 2004 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.22.0-0vl4
  133. - add patch2 for fix CAN-2004-0782, CAN-2004-0783, CAN-2004-0788
  134. - add patch3 for fix CAN-2004-0753
  135. * Sat Apr 24 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22.0-0vl3
  136. - rebuild for VineSeed
  137. - fixed BuildPrReq: db4-devel
  138. - added Requires: db4
  139. * Thu Mar 18 2004 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.22.0-0vl2
  140. - fix SOURCE tag URL
  141. * Sun Mar 14 2004 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.22.0-0vl1
  142. - new upstream release
  143. - fix CAN-2004-0111
  144. * Fri Oct 25 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.21.0-0vl1
  145. - new upstream release
  146. - add BuildRequires and Requires
  147. * Thu Jan 24 2002 Akira TAGOH <tagoh@gnome.gr.jp> 0.16.0-0vl1
  148. - New upstream release.
  149. * Fri Dec 14 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.14.0-0vl1
  150. - New upstream release.
  151. - Revert libtoolize stuff.
  152. * Tue Jul 17 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  153. - 0.11.0-0vl4
  154. - fixed again not to libtoolize, as Rawhide's 0.11.0-3 (and up) does,
  155. plus fixed one mistake in the spec file since 0.11.0-0vl2
  156. - (FIXME: but libtoolize must be enabled in the future...)
  157. * Mon Jul 16 2001 <sagami@vinelinux.org>
  158. - 0.11.0-0vl3: made a fix at %%build to quit disabling libtoolize
  159. * Sat Jul 14 2001 <sagami@vinelinux.org>
  160. - 0.11.0-0vl2: minor spec fixes(%%doc, post script, PreReq)
  161. - disable libtoolize
  162. * Tue May 8 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.11.0-0vl1
  163. - New upstream release.
  164. * Tue Mar 13 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.10.1-0vl1
  165. - New upstream release.
  166. - Use rpmmacros.
  167. - Added relative execute for config.
  168. * Sat Jan 22 2000 Ross Golder <rossigee@bigfoot.com>
  169. - Borrowed from gnome-libs to integrate into gdk-pixbuf source tree