gdk-pixbuf-vl.spec 6.9 KB

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