e6caae8
%global glib2_version 2.34.0
e6caae8
8bcff9b
Name:           gdk-pixbuf2
c797d1b
Version:        2.28.2
612fc64
Release:        1%{?dist}
8bcff9b
Summary:        An image loading library
8bcff9b
8bcff9b
Group:          System Environment/Libraries
8bcff9b
License:        LGPLv2+
8bcff9b
URL:            http://www.gt.org
498a721
#VCS:           git:git://git.gnome.org/gdk-pixbuf
b2b2924
Source0:        http://download.gnome.org/sources/gdk-pixbuf/2.28/gdk-pixbuf-%{version}.tar.xz
8bcff9b
e6caae8
BuildRequires:  glib2-devel >= %{glib2_version}
8bcff9b
BuildRequires:  libpng-devel
8bcff9b
BuildRequires:  libjpeg-devel
8bcff9b
BuildRequires:  libtiff-devel
8bcff9b
BuildRequires:  jasper-devel
8bcff9b
BuildRequires:  libX11-devel
8ee2be6
BuildRequires:  gobject-introspection-devel >= 0.9.3
e7a9aa5
# gdk-pixbuf does a configure time check which uses the GIO mime
e7a9aa5
# layer; we need to actually have the mime type database.
e7a9aa5
BuildRequires:  shared-mime-info
31b235c
# Bootstrap requirements
9ec88d6
BuildRequires: autoconf automake libtool gtk-doc
31b235c
BuildRequires: gettext-autopoint
8bcff9b
e6caae8
Requires: glib2 >= %{glib2_version}
e6caae8
aaf270f
# We also need MIME information at runtime
aaf270f
Requires: shared-mime-info
aaf270f
8bcff9b
# gdk-pixbuf was included in gtk2 until 2.21.2
8bcff9b
Conflicts: gtk2 <= 2.21.2
8bcff9b
8bcff9b
%description
8bcff9b
gdk-pixbuf is an image loading library that can be extended by loadable
8bcff9b
modules for new image formats. It is used by toolkits such as GTK+ or
8bcff9b
clutter.
8bcff9b
8bcff9b
%package devel
8bcff9b
Summary: Development files for gdk-pixbuf
8bcff9b
Group: Development/Libraries
8bcff9b
Requires: %{name} = %{version}-%{release}
e6caae8
Requires: glib2-devel >= %{glib2_version}
8bcff9b
8bcff9b
# gdk-pixbuf was included in gtk2 until 2.21.2
8bcff9b
Conflicts: gtk2-devel <= 2.21.2
8bcff9b
8bcff9b
%description devel
8bcff9b
This package contains the libraries and header files that are needed
8bcff9b
for writing applications that are using gdk-pixbuf.
8bcff9b
8bcff9b
8bcff9b
%prep
5dc7286
%setup -q -n gdk-pixbuf-%{version}
8bcff9b
8bcff9b
%build
31b235c
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
4d31011
 %configure $CONFIGFLAGS             \
4d31011
        --with-x11                   \
498a721
        --with-libjasper             \
498a721
        --with-included-loaders=png  )
8bcff9b
make %{?_smp_mflags}
8bcff9b
8bcff9b
8bcff9b
%install
8bcff9b
make install DESTDIR=$RPM_BUILD_ROOT    \
8bcff9b
             RUN_QUERY_LOADER_TEST=false
8bcff9b
8bcff9b
# Remove unpackaged files
8bcff9b
rm $RPM_BUILD_ROOT%{_libdir}/*.la
8bcff9b
rm $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la
8bcff9b
8bcff9b
touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
8bcff9b
8bcff9b
(cd $RPM_BUILD_ROOT%{_bindir}
8bcff9b
 mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-%{__isa_bits}
8bcff9b
)
8bcff9b
8bcff9b
%find_lang gdk-pixbuf
8bcff9b
8bcff9b
%post
8bcff9b
/sbin/ldconfig
b687dac
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
8bcff9b
8bcff9b
%postun
8bcff9b
/sbin/ldconfig
8bcff9b
if [ $1 -gt 0 ]; then
b687dac
  gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
8bcff9b
fi
8bcff9b
8bcff9b
%files -f gdk-pixbuf.lang
8bcff9b
%doc AUTHORS COPYING NEWS
8bcff9b
%{_libdir}/libgdk_pixbuf-2.0.so.*
8bcff9b
%{_libdir}/libgdk_pixbuf_xlib-2.0.so.*
8bcff9b
%{_libdir}/girepository-1.0
8bcff9b
%dir %{_libdir}/gdk-pixbuf-2.0
8bcff9b
%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0
8bcff9b
%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
8bcff9b
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
8bcff9b
%ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
8bcff9b
%{_bindir}/gdk-pixbuf-query-loaders-%{__isa_bits}
8bcff9b
%{_mandir}/man1/gdk-pixbuf-query-loaders.1*
8bcff9b
8bcff9b
%files devel
8bcff9b
%{_includedir}/gdk-pixbuf-2.0
8bcff9b
%{_libdir}/libgdk_pixbuf-2.0.so
8bcff9b
%{_libdir}/libgdk_pixbuf_xlib-2.0.so
8bcff9b
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
8bcff9b
%{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc
8bcff9b
%{_bindir}/gdk-pixbuf-csource
e444a79
%{_bindir}/gdk-pixbuf-pixdata
8bcff9b
%{_datadir}/gir-1.0
8bcff9b
%{_datadir}/gtk-doc/html/*
8bcff9b
%{_mandir}/man1/gdk-pixbuf-csource.1*
8bcff9b
8bcff9b
8bcff9b
%changelog
c797d1b
* Fri Jun  7 2013 Matthias Clasen <mclasen@redhat.com> - 2.28.2-1
c797d1b
- Update to 2.28.2
c797d1b
Richard Hughes 3f75c90
* Mon Apr 15 2013 Richard Hughes <rhughes@redhat.com> - 2.28.1-1
Richard Hughes 3f75c90
- Update to 2.28.1
Richard Hughes 3f75c90
b2b2924
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 2.28.0-1
b2b2924
- Update to 2.28.0
b2b2924
eb7cc77
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 2.27.3-1
eb7cc77
- Update to 2.27.3
eb7cc77
Richard Hughes a6f440a
* Mon Mar 04 2013 Richard Hughes <rhughes@redhat.com> - 2.27.2-1
Richard Hughes a6f440a
- Update to 2.27.2
Richard Hughes a6f440a
612fc64
* Tue Feb 05 2013 Kalev Lember <kalevlember@gmail.com> - 2.27.1-1
612fc64
- Update to 2.27.1
612fc64
Adam Tkac 898e89f
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 2.27.0-2
Adam Tkac 898e89f
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac 898e89f
d913696
* Tue Jan 15 2013 Matthias Clasen <mclasen@redhat.com> - 2.27.0-1
d913696
- Update to 2.27.0
d913696
e6caae8
* Tue Jan 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 2.26.5-3
e6caae8
- Require glib2 >= 2.34.0 for g_type_ensure().
e6caae8
9c32f26
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 2.26.5-2
9c32f26
- rebuild against new libjpeg
9c32f26
bd82df6
* Mon Nov 12 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.5-1
bd82df6
- Update to 2.26.5
bd82df6
90b6956
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.4-1
90b6956
- Update to 2.26.4
90b6956
Richard Hughes 499ee9f
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 2.26.2-1
Richard Hughes 499ee9f
- Update to 2.26.2
Richard Hughes 499ee9f
df77c4c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.1-2
df77c4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
df77c4c
Richard Hughes 206ca6a
* Fri May 18 2012 Richard Hughes <hughsient@gmail.com> - 2.26.1-1
Richard Hughes 206ca6a
- Update to 2.26.1
Richard Hughes 206ca6a
c1604e6
* Tue Mar 20 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.0-1
c1604e6
- Update to 2.26.0
c1604e6
e444a79
* Mon Feb  6 2012 Matthias Clasen <mclasen@redhat.com> - 2.25.2-1
e444a79
- Update to 2.25.2
e444a79
ccbec87
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.0-2
ccbec87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ccbec87
4d31011
* Fri Dec 16 2011 Matthias Clasen <mclasen@redhat.com> - 2.25.0-1
4d31011
- Update to 2.25.0
4d31011
c0ce484
* Mon Nov  7 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.0-2
c0ce484
- Rebuild against new libpng
c0ce484
f0bbf41
* Tue Aug 30 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
f0bbf41
- Update to 2.24.0
f0bbf41
e51dbb9
* Mon Jun 27 2011 Matthias Clasen <mclasen@redhat.com> - 2.23.5-1
e51dbb9
- Update to 2.23.5 (fixes CVE-2011-2485)
e51dbb9
2644ab3
* Wed Jun 15 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.23.4-1
2644ab3
- Update to 2.23.4
2644ab3
c52a9ea
* Wed Mar 30 2011 Matthias Clasen <mclasen@redhat.com> 2.23.3-1
c52a9ea
- Update to 2.23.3
c52a9ea
62a5beb
* Sat Mar  5 2011 Matthias Clasen <mclasen@redhat.com> 2.23.1-1
62a5beb
- Update to 2.23.1
62a5beb
800db34
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.23.0-2
800db34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
800db34
129753f
* Sun Jan  9 2011 Matthias Clasen <mclasen@redhat.com> 2.23.0-1
129753f
- Update to 2.23.0
129753f
498a721
* Fri Nov  5 2010 Matthias Clasen <mclasen@redhat.com> 2.22.1-1
498a721
- Update to 2.22.1
498a721
Jesse Keating 047cdbf
* Wed Sep 29 2010 jkeating - 2.22.0-2
Jesse Keating 047cdbf
- Rebuilt for gcc bug 634757
Jesse Keating 047cdbf
8ee2be6
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> 2.22.0-1
8ee2be6
- Update to 2.22.0
8ee2be6
e5b9031
* Mon Jul 19 2010 Bastien Nocera <bnocera@redhat.com> 2.21.6-3
e5b9031
- Require libpng for linking
e5b9031
d5a5879
* Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 2.21.6-2
d5a5879
- Rebuild with new gobject-introspection
d5a5879
9a57d09
* Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> - 2.21.6-1
9a57d09
- Update to 2.21.6
9a57d09
aaf270f
* Fri Jul  2 2010 Colin Walters <walters@verbum.org> - 2.21.5-4
aaf270f
- Also Require shared-mime-info for same reason
aaf270f
e7a9aa5
* Fri Jul  2 2010 Colin Walters <walters@verbum.org> - 2.21.5-3
e7a9aa5
- BR shared-mime-info; see comment above it
e7a9aa5
31b235c
* Tue Jun 29 2010 Colin Walters <walters@pocket> - 2.21.5-2
31b235c
- Changes to support snapshot builds
31b235c
b687dac
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.21.5-1
b687dac
- Update to 2.21.5
b687dac
8bcff9b
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-2
8bcff9b
- Rename to gdk-pixbuf2 to avoid conflict with the
8bcff9b
  existing gdk-pixbuf package
8bcff9b
8bcff9b
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-1
8bcff9b
- Update to 2.21.4
8bcff9b
- Incorporate package review feedback
8bcff9b
8bcff9b
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.3-1
8bcff9b
- Initial packaging