gdk-pixbuf2-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. # biarch support
  3. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  4. %define _query_suffix %{nil}
  5. %if %{build_compat32}
  6. %define _query_suffix -32
  7. %endif
  8. Name: gdk-pixbuf2
  9. Version: 2.26.1
  10. Release: 1%{?_dist_release}
  11. Summary: An image loading library
  12. Group: System Environment/Libraries
  13. License: LGPLv2+
  14. URL: http://www.gt.org
  15. Source0: http://download.gnome.org/sources/gdk-pixbuf/2.26/gdk-pixbuf-%{version}.tar.xz
  16. BuildRequires: glib2-devel >= 2.26.0
  17. BuildRequires: libpng-devel
  18. BuildRequires: libjpeg-turbo-devel
  19. BuildRequires: libtiff-devel
  20. BuildRequires: jasper-devel
  21. BuildRequires: libX11-devel
  22. BuildRequires: gobject-introspection-devel
  23. # gdk-pixbuf does a configure time check which uses the GIO mime
  24. # layer; we need to actually have the mime type database.
  25. BuildRequires: shared-mime-info
  26. BuildRequires: gtk-doc
  27. ## BuildRequires: libtool >= 2.2.10
  28. BuildRequires: libtool
  29. BuildRequires: gettext
  30. # We also need MIME information at runtime
  31. Requires: shared-mime-info
  32. # gdk-pixbuf was included in gtk2 until 2.21.2
  33. Conflicts: gtk2 <= 2.21.2
  34. # https://bugzilla.gnome.org/show_bug.cgi?id=624712
  35. Patch0: 0001-Fix-linking-when-libpng-loader-is-builtin.patch
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. Packager: Takemikaduchi
  39. %description
  40. gdk-pixbuf is an image loading library that can be extended by loadable
  41. modules for new image formats. It is used by toolkits such as GTK+ or
  42. clutter.
  43. %package devel
  44. Summary: Development files for gdk-pixbuf
  45. Group: Development/Libraries
  46. Requires: %{name} = %{version}-%{release}
  47. Requires: glib2-devel
  48. Requires: gobject-introspection-devel
  49. Requires: libpng-devel
  50. # gdk-pixbuf was included in gtk2 until 2.21.2
  51. Conflicts: gtk2-devel <= 2.21.2
  52. %description devel
  53. This package contains the libraries and header files that are needed
  54. for writing applications that are using gdk-pixbuf.
  55. %if %{build_compat32}
  56. #######################################################################
  57. # compat32
  58. %package -n compat32-%{name}
  59. Summary: An image loading library
  60. Group: System Environment/Libraries
  61. Requires(post): compat32-glib2 >= %{glib2_version}
  62. # gdk-pixbuf was included in gtk2 until 2.21.2
  63. Conflicts: compat32-gtk2 <= 2.21.2
  64. %description -n compat32-%{name}
  65. gdk-pixbuf is an image loading library that can be extended by loadable
  66. modules for new image formats. It is used by toolkits such as GTK+ or
  67. clutter.
  68. %package -n compat32-%{name}-devel
  69. Summary: Development files for gdk-pixbuf
  70. Group: Development/Libraries
  71. Requires: compat32-%{name} = %{version}-%{release}
  72. Requires: %{name} = %{version}-%{release}
  73. Requires: compat32-libpng-devel
  74. # gdk-pixbuf was included in gtk2 until 2.21.2
  75. Conflicts: compat32-gtk2-devel <= 2.21.2
  76. %description -n compat32-%{name}-devel
  77. This package contains the libraries and header files that are needed
  78. for writing applications that are using gdk-pixbuf.
  79. %endif
  80. %prep
  81. %setup -q -n gdk-pixbuf-%{version}
  82. ## %patch0 -p1 -b .libpng-linking
  83. %build
  84. libtoolize --copy --force
  85. autoreconf
  86. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
  87. %configure $CONFIGFLAGS \
  88. --with-libjasper \
  89. --with-x11 \
  90. --with-included-loaders=png \
  91. --enable-introspection=yes )
  92. make %{?_smp_mflags}
  93. %install
  94. make install DESTDIR=$RPM_BUILD_ROOT \
  95. RUN_QUERY_LOADER_TEST=false
  96. # Remove unpackaged files
  97. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  98. rm $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la
  99. touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
  100. %if %{build_compat32}
  101. cp $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders \
  102. $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders%{_query_suffix}
  103. %endif
  104. %find_lang gdk-pixbuf
  105. %post
  106. /sbin/ldconfig
  107. gdk-pixbuf-query-loaders --update-cache || : > /dev/null 2>&1
  108. %postun
  109. /sbin/ldconfig
  110. if [ $1 -gt 0 ]; then
  111. gdk-pixbuf-query-loaders --update-cache || : > /dev/null 2>&1
  112. fi
  113. %if %{build_compat32}
  114. %post -n compat32-%{name}
  115. /sbin/ldconfig
  116. gdk-pixbuf-query-loaders%{_query_suffix} --update-cache || : > /dev/null 2>&1
  117. %postun -n compat32-%{name}
  118. /sbin/ldconfig
  119. if [ $1 -gt 0 ]; then
  120. gdk-pixbuf-query-loaders%{_query_suffix} --update-cache || : > /dev/null 2>&1
  121. fi
  122. %endif
  123. %files -f gdk-pixbuf.lang
  124. %defattr(-,root,root,-)
  125. %doc AUTHORS COPYING NEWS
  126. %{_bindir}/gdk-pixbuf-pixdata
  127. %{_libdir}/libgdk_pixbuf-2.0.so.*
  128. %{_libdir}/libgdk_pixbuf_xlib-2.0.so.*
  129. %{_libdir}/girepository-1.0
  130. %dir %{_libdir}/gdk-pixbuf-2.0
  131. %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0
  132. %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
  133. %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
  134. %ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
  135. %{_bindir}/gdk-pixbuf-query-loaders
  136. %{_mandir}/man1/gdk-pixbuf-query-loaders.1.gz
  137. %files devel
  138. %defattr(-,root,root,-)
  139. %{_includedir}/gdk-pixbuf-2.0
  140. %{_libdir}/libgdk_pixbuf-2.0.so
  141. %{_libdir}/libgdk_pixbuf_xlib-2.0.so
  142. %{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
  143. %{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc
  144. %{_bindir}/gdk-pixbuf-csource
  145. %{_datadir}/gtk-doc/html/*
  146. %{_datadir}/gir-1.0
  147. %{_mandir}/man1/gdk-pixbuf-csource.1.gz
  148. %if %{build_compat32}
  149. %files -n compat32-%{name}
  150. %defattr(-,root,root,-)
  151. %{_libdir}/libgdk_pixbuf-2.0.so.*
  152. %{_libdir}/libgdk_pixbuf_xlib-2.0.so.*
  153. %dir %{_libdir}/gdk-pixbuf-2.0
  154. %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0
  155. %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
  156. %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
  157. %ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
  158. %{_bindir}/gdk-pixbuf-query-loaders%{_query_suffix}
  159. %files -n compat32-%{name}-devel
  160. %defattr(-,root,root,-)
  161. %{_libdir}/libgdk_pixbuf-2.0.so
  162. %{_libdir}/libgdk_pixbuf_xlib-2.0.so
  163. %{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
  164. %{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc
  165. %endif
  166. %changelog
  167. * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.1-1
  168. - new upstream release
  169. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.1-1
  170. - new upstream release
  171. - add configure option (--with-x11)
  172. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.0-1
  173. - new upstream release
  174. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.23.5-1
  175. - new upstream release
  176. * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.1-1
  177. - new upstream release
  178. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.0-1
  179. - new upstream release
  180. - add configure option (--enable-introspection=yes)
  181. - drop Patch0
  182. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.21.3-1
  183. - initial build for Vine Linux
  184. * Mon Jul 19 2010 Bastien Nocera <bnocera@redhat.com> 2.21.6-3
  185. - Require libpng for linking
  186. * Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 2.21.6-2
  187. - Rebuild with new gobject-introspection
  188. * Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> - 2.21.6-1
  189. - Update to 2.21.6
  190. * Fri Jul 2 2010 Colin Walters <walters@verbum.org> - 2.21.5-4
  191. - Also Require shared-mime-info for same reason
  192. * Fri Jul 2 2010 Colin Walters <walters@verbum.org> - 2.21.5-3
  193. - BR shared-mime-info; see comment above it
  194. * Tue Jun 29 2010 Colin Walters <walters@pocket> - 2.21.5-2
  195. - Changes to support snapshot builds
  196. * Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.21.5-1
  197. - Update to 2.21.5
  198. * Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-2
  199. - Rename to gdk-pixbuf2 to avoid conflict with the
  200. existing gdk-pixbuf package
  201. * Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-1
  202. - Update to 2.21.4
  203. - Incorporate package review feedback
  204. * Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.3-1
  205. - Initial packaging