cdbcbc
%global glib2_version 2.48.0
cdbcbc
cdbcbc
Name:           gdk-pixbuf2
cdbcbc
Version:        2.36.12
cdbcbc
Release:        3%{?dist}
cdbcbc
Summary:        An image loading library
cdbcbc
cdbcbc
License:        LGPLv2+
cdbcbc
URL:            http://www.gtk.org
cdbcbc
#VCS:           git:git://git.gnome.org/gdk-pixbuf
cdbcbc
Source0:        http://download.gnome.org/sources/gdk-pixbuf/2.36/gdk-pixbuf-%{version}.tar.xz
cdbcbc
cdbcbc
BuildRequires:  pkgconfig(gio-2.0) >= %{glib2_version}
cdbcbc
BuildRequires:  libpng-devel
cdbcbc
BuildRequires:  libjpeg-devel
cdbcbc
BuildRequires:  libtiff-devel
cdbcbc
BuildRequires:  jasper-devel
cdbcbc
BuildRequires:  pkgconfig(x11)
cdbcbc
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 0.9.3
cdbcbc
# gdk-pixbuf does a configure time check which uses the GIO mime
cdbcbc
# layer; we need to actually have the mime type database.
cdbcbc
BuildRequires:  shared-mime-info
cdbcbc
cdbcbc
# needed for man page generation
cdbcbc
BuildRequires:  docbook-style-xsl
cdbcbc
BuildRequires:  libxslt
cdbcbc
cdbcbc
Requires: glib2%{?_isa} >= %{glib2_version}
cdbcbc
cdbcbc
# We also need MIME information at runtime
cdbcbc
Requires: shared-mime-info
cdbcbc
cdbcbc
# gdk-pixbuf was included in gtk2 until 2.21.2
cdbcbc
Conflicts: gtk2 <= 2.21.2
cdbcbc
cdbcbc
%description
cdbcbc
gdk-pixbuf is an image loading library that can be extended by loadable
cdbcbc
modules for new image formats. It is used by toolkits such as GTK+ or
cdbcbc
clutter.
cdbcbc
cdbcbc
%package devel
cdbcbc
Summary: Development files for gdk-pixbuf
cdbcbc
Requires: %{name}%{?_isa} = %{version}-%{release}
cdbcbc
Requires: glib2-devel%{?_isa} >= %{glib2_version}
cdbcbc
cdbcbc
# gdk-pixbuf was included in gtk2 until 2.21.2
cdbcbc
Conflicts: gtk2-devel <= 2.21.2
cdbcbc
cdbcbc
%description devel
cdbcbc
This package contains the libraries and header files that are needed
cdbcbc
for writing applications that are using gdk-pixbuf.
cdbcbc
cdbcbc
%package tests
cdbcbc
Summary: Tests for the %{name} package
cdbcbc
Requires: %{name}%{?_isa} = %{version}-%{release}
cdbcbc
cdbcbc
%description tests
cdbcbc
The %{name}-tests package contains tests that can be used to verify
cdbcbc
the functionality of the installed %{name} package.
cdbcbc
cdbcbc
cdbcbc
%prep
cdbcbc
%autosetup -n gdk-pixbuf-%{version} -p1
cdbcbc
cdbcbc
%build
cdbcbc
%configure                           \
cdbcbc
        --with-x11                   \
cdbcbc
        --with-libjasper             \
cdbcbc
        --with-included-loaders=png  \
cdbcbc
        --enable-installed-tests     \
cdbcbc
        --enable-man                 \
cdbcbc
        --disable-silent-rules
cdbcbc
cdbcbc
# needed to work around bug in makefile goo
cdbcbc
rm -f docs/reference/gdk-pixbuf/*.1
cdbcbc
cdbcbc
make %{?_smp_mflags}
cdbcbc
cdbcbc
cdbcbc
%install
cdbcbc
%make_install RUN_QUERY_LOADER_TEST=false
cdbcbc
cdbcbc
# Remove unpackaged files
cdbcbc
rm $RPM_BUILD_ROOT%{_libdir}/*.la
cdbcbc
rm $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la
cdbcbc
cdbcbc
touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
cdbcbc
cdbcbc
(cd $RPM_BUILD_ROOT%{_bindir}
cdbcbc
 mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-%{__isa_bits}
cdbcbc
)
cdbcbc
cdbcbc
%find_lang gdk-pixbuf
cdbcbc
cdbcbc
%post
cdbcbc
/sbin/ldconfig
cdbcbc
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
cdbcbc
cdbcbc
%postun
cdbcbc
/sbin/ldconfig
cdbcbc
if [ $1 -gt 0 ]; then
cdbcbc
  gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
cdbcbc
fi
cdbcbc
cdbcbc
%files -f gdk-pixbuf.lang
cdbcbc
%license COPYING
cdbcbc
%doc AUTHORS NEWS
cdbcbc
%{_libdir}/libgdk_pixbuf-2.0.so.*
cdbcbc
%{_libdir}/libgdk_pixbuf_xlib-2.0.so.*
cdbcbc
%{_libdir}/girepository-1.0
cdbcbc
%dir %{_libdir}/gdk-pixbuf-2.0
cdbcbc
%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0
cdbcbc
%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
cdbcbc
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
cdbcbc
%ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
cdbcbc
%{_bindir}/gdk-pixbuf-query-loaders-%{__isa_bits}
cdbcbc
%{_bindir}/gdk-pixbuf-thumbnailer
cdbcbc
%{_mandir}/man1/gdk-pixbuf-query-loaders.1*
cdbcbc
%{_datadir}/thumbnailers/
cdbcbc
cdbcbc
%files devel
cdbcbc
%{_includedir}/gdk-pixbuf-2.0
cdbcbc
%{_libdir}/libgdk_pixbuf-2.0.so
cdbcbc
%{_libdir}/libgdk_pixbuf_xlib-2.0.so
cdbcbc
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
cdbcbc
%{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc
cdbcbc
%{_bindir}/gdk-pixbuf-csource
cdbcbc
%{_bindir}/gdk-pixbuf-pixdata
cdbcbc
%{_datadir}/gir-1.0
cdbcbc
%{_datadir}/gtk-doc/html/*
cdbcbc
%{_mandir}/man1/gdk-pixbuf-csource.1*
cdbcbc
cdbcbc
%files tests
cdbcbc
%{_libexecdir}/installed-tests
cdbcbc
%{_datadir}/installed-tests
cdbcbc
cdbcbc
cdbcbc
%changelog
cdbcbc
* Thu Jul 26 2018 Ray Strode <rstrode@redhat.com> - 2.36.12-3
cdbcbc
- One more crack at generating man pages
cdbcbc
  Related: #1569815
cdbcbc
cdbcbc
* Thu Jul 26 2018 Ray Strode <rstrode@redhat.com> - 2.36.12-2
cdbcbc
- Generate man page
cdbcbc
  Related: #1569815
cdbcbc
cdbcbc
* Sun Apr 08 2018 Kalev Lember <klember@redhat.com> - 2.36.12-1
cdbcbc
- Update to 2.36.12
cdbcbc
- Resolves: #1569815
cdbcbc
cdbcbc
* Mon Feb 13 2017 Kalev Lember <klember@redhat.com> - 2.36.5-1
cdbcbc
- Update to 2.36.5
cdbcbc
- Resolves: #1386861
cdbcbc
cdbcbc
* Mon Jan 16 2017 Kalev Lember <klember@redhat.com> - 2.36.4-1
cdbcbc
- Update to 2.36.4
cdbcbc
- Resolves: #1386861
cdbcbc
cdbcbc
* Tue Sep 22 2015 Benjamin Otte <otte@gnome.org> - 2.31.6-3
cdbcbc
- Fix testsuite more
cdbcbc
- Resolves: #1264466
cdbcbc
cdbcbc
* Mon Sep 21 2015 Matthias Clasen <mclasen@redhat.com> - 2.31.6-2
cdbcbc
- Fix testsuite
cdbcbc
- Resolves: #1264466
cdbcbc
cdbcbc
* Wed Aug 19 2015 Benjamin Otte <otte@redhat.com> - 2.31.6-1
cdbcbc
- Update to 2.31.6
cdbcbc
- Resolves: #1253214
cdbcbc
cdbcbc
* Mon Apr 27 2015 Matthias Clasen <mclasen@redhat.com> - 2.31.1-1
cdbcbc
- Update to 2.31.1
cdbcbc
- Add a -tests subpackage
cdbcbc
- Drop an upstreamed patch
cdbcbc
- Resolves: #1174438
cdbcbc
cdbcbc
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.28.2-4
cdbcbc
- Mass rebuild 2014-01-24
cdbcbc
cdbcbc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.28.2-3
cdbcbc
- Mass rebuild 2013-12-27
cdbcbc
cdbcbc
* Mon Nov 18 2013 Matthias Clasen <mclasen@redhat.com> - 2.28.2-2
cdbcbc
- Fix interaction between --update-cache and other args
cdbcbc
- Resolves: #1029796
cdbcbc
cdbcbc
* Fri Jun  7 2013 Matthias Clasen <mclasen@redhat.com> - 2.28.2-1
cdbcbc
- Update to 2.28.2
cdbcbc
cdbcbc
* Mon Apr 15 2013 Richard Hughes <rhughes@redhat.com> - 2.28.1-1
cdbcbc
- Update to 2.28.1
cdbcbc
cdbcbc
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 2.28.0-1
cdbcbc
- Update to 2.28.0
cdbcbc
cdbcbc
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 2.27.3-1
cdbcbc
- Update to 2.27.3
cdbcbc
cdbcbc
* Mon Mar 04 2013 Richard Hughes <rhughes@redhat.com> - 2.27.2-1
cdbcbc
- Update to 2.27.2
cdbcbc
cdbcbc
* Tue Feb 05 2013 Kalev Lember <kalevlember@gmail.com> - 2.27.1-1
cdbcbc
- Update to 2.27.1
cdbcbc
cdbcbc
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 2.27.0-2
cdbcbc
- rebuild due to "jpeg8-ABI" feature drop
cdbcbc
cdbcbc
* Tue Jan 15 2013 Matthias Clasen <mclasen@redhat.com> - 2.27.0-1
cdbcbc
- Update to 2.27.0
cdbcbc
cdbcbc
* Tue Jan 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 2.26.5-3
cdbcbc
- Require glib2 >= 2.34.0 for g_type_ensure().
cdbcbc
cdbcbc
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 2.26.5-2
cdbcbc
- rebuild against new libjpeg
cdbcbc
cdbcbc
* Mon Nov 12 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.5-1
cdbcbc
- Update to 2.26.5
cdbcbc
cdbcbc
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.4-1
cdbcbc
- Update to 2.26.4
cdbcbc
cdbcbc
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 2.26.2-1
cdbcbc
- Update to 2.26.2
cdbcbc
cdbcbc
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.1-2
cdbcbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cdbcbc
cdbcbc
* Fri May 18 2012 Richard Hughes <hughsient@gmail.com> - 2.26.1-1
cdbcbc
- Update to 2.26.1
cdbcbc
cdbcbc
* Tue Mar 20 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.0-1
cdbcbc
- Update to 2.26.0
cdbcbc
cdbcbc
* Mon Feb  6 2012 Matthias Clasen <mclasen@redhat.com> - 2.25.2-1
cdbcbc
- Update to 2.25.2
cdbcbc
cdbcbc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.0-2
cdbcbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cdbcbc
cdbcbc
* Fri Dec 16 2011 Matthias Clasen <mclasen@redhat.com> - 2.25.0-1
cdbcbc
- Update to 2.25.0
cdbcbc
cdbcbc
* Mon Nov  7 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.0-2
cdbcbc
- Rebuild against new libpng
cdbcbc
cdbcbc
* Tue Aug 30 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
cdbcbc
- Update to 2.24.0
cdbcbc
cdbcbc
* Mon Jun 27 2011 Matthias Clasen <mclasen@redhat.com> - 2.23.5-1
cdbcbc
- Update to 2.23.5 (fixes CVE-2011-2485)
cdbcbc
cdbcbc
* Wed Jun 15 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.23.4-1
cdbcbc
- Update to 2.23.4
cdbcbc
cdbcbc
* Wed Mar 30 2011 Matthias Clasen <mclasen@redhat.com> 2.23.3-1
cdbcbc
- Update to 2.23.3
cdbcbc
cdbcbc
* Sat Mar  5 2011 Matthias Clasen <mclasen@redhat.com> 2.23.1-1
cdbcbc
- Update to 2.23.1
cdbcbc
cdbcbc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.23.0-2
cdbcbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cdbcbc
cdbcbc
* Sun Jan  9 2011 Matthias Clasen <mclasen@redhat.com> 2.23.0-1
cdbcbc
- Update to 2.23.0
cdbcbc
cdbcbc
* Fri Nov  5 2010 Matthias Clasen <mclasen@redhat.com> 2.22.1-1
cdbcbc
- Update to 2.22.1
cdbcbc
cdbcbc
* Wed Sep 29 2010 jkeating - 2.22.0-2
cdbcbc
- Rebuilt for gcc bug 634757
cdbcbc
cdbcbc
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> 2.22.0-1
cdbcbc
- Update to 2.22.0
cdbcbc
cdbcbc
* Mon Jul 19 2010 Bastien Nocera <bnocera@redhat.com> 2.21.6-3
cdbcbc
- Require libpng for linking
cdbcbc
cdbcbc
* Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 2.21.6-2
cdbcbc
- Rebuild with new gobject-introspection
cdbcbc
cdbcbc
* Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> - 2.21.6-1
cdbcbc
- Update to 2.21.6
cdbcbc
cdbcbc
* Fri Jul  2 2010 Colin Walters <walters@verbum.org> - 2.21.5-4
cdbcbc
- Also Require shared-mime-info for same reason
cdbcbc
cdbcbc
* Fri Jul  2 2010 Colin Walters <walters@verbum.org> - 2.21.5-3
cdbcbc
- BR shared-mime-info; see comment above it
cdbcbc
cdbcbc
* Tue Jun 29 2010 Colin Walters <walters@pocket> - 2.21.5-2
cdbcbc
- Changes to support snapshot builds
cdbcbc
cdbcbc
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.21.5-1
cdbcbc
- Update to 2.21.5
cdbcbc
cdbcbc
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-2
cdbcbc
- Rename to gdk-pixbuf2 to avoid conflict with the
cdbcbc
  existing gdk-pixbuf package
cdbcbc
cdbcbc
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-1
cdbcbc
- Update to 2.21.4
cdbcbc
- Incorporate package review feedback
cdbcbc
cdbcbc
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.3-1
cdbcbc
- Initial packaging