@ -1,46 +1,35 @@
%global glib2_version 2.48 .0
%global glib2_version 2.56 .0
Name: gdk-pixbuf2
Name: gdk-pixbuf2
Version: 2.36.12
Version: 2.42.6
Release: 6 %{?dist}
Release: 4 %{?dist}
Summary: An image loading library
Summary: An image loading library
License: LGPLv2+
License: LGPLv2+
URL: http://www.gtk.org
URL: https://gitlab.gnome.org/GNOME/gdk-pixbuf
#VCS: git:git://git.gnome.org/gdk-pixbuf
Source0: https://download.gnome.org/sources/gdk-pixbuf/2.42/gdk-pixbuf-%{version}.tar.xz
Source0: http://download.gnome.org/sources/gdk-pixbuf/2.36/gdk-pixbuf-%{version}.tar.xz
Source1: bug753605-atsize.jpg
# https://bugzilla.redhat.com/show_bug.cgi?id=1630565
Patch0: gif-check-for-overflow.patch
Patch0: Turn-off-mmx-support.diff
Patch1: gif-lzw-code-size-overflow.patch
# https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/172
Patch2: CVE-2022-48622.patch
Patch1: CVE-2022-48622.patch
BuildRequires: docbook-style-xsl
BuildRequires: gettext
BuildRequires: git
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
BuildRequires: libpng-devel
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtiff-devel
BuildRequires: jasper-devel
BuildRequires: libxslt
BuildRequires: pkgconfig(x11)
BuildRequires: meson
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.3
BuildRequires: pkgconfig(gobject-introspection-1.0)
# gdk-pixbuf does a configure time check which uses the GIO mime
# gdk-pixbuf does a configure time check which uses the GIO mime
# layer; we need to actually have the mime type database.
# layer; we need to actually have the mime type database.
BuildRequires: shared-mime-info
BuildRequires: shared-mime-info
BuildRequires: git
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: glib2%{?_isa} >= %{glib2_version}
# We also need MIME information at runtime
# We also need MIME information at runtime
Requires: shared-mime-info
Requires: shared-mime-info
# Bootstrap requirements
BuildRequires: autoconf automake libtool gtk-doc
BuildRequires: gettext-autopoint
# gdk-pixbuf was included in gtk2 until 2.21.2
Conflicts: gtk2 <= 2.21.2
# We need rpm with file triggers support
Conflicts: rpm < 4.12.90
%description
%description
gdk-pixbuf is an image loading library that can be extended by loadable
gdk-pixbuf is an image loading library that can be extended by loadable
@ -48,41 +37,21 @@ modules for new image formats. It is used by toolkits such as GTK+ or
clutter.
clutter.
%package modules
%package modules
Summary: Additional image modules for gdk-pixbuf
Summary: Additional image modules for gdk-pixbuf2
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description modules
%description modules
This package contains the additional modules that are needed to load various
This package contains the additional modules that are needed to load various
image formats such as ICO and JPEG.
image formats such as ICO and JPEG.
%package xlib
Summary: Additional library for using gdk-pixbuf with bare xlib
Requires: %{name}%{?_isa} = %{version}-%{release}
%description xlib
This package contains the old libgdk-pixbuf-xlib library that is needed by some
programs to load GdkPixbuf using bare XLib calls.
%package xlib-devel
Summary: Development files for gdk-pixbuf-xlib
Requires: %{name}-xlib%{?_isa} = %{version}-%{release}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description xlib-devel
This package contains the libraries and header files that are needed
for writing applications that are using gdk-pixbuf-xlib.
%package devel
%package devel
Summary: Development files for gdk-pixbuf
Summary: Development files for gdk-pixbuf2
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: glib2-devel%{?_isa} >= %{glib2_version}
Requires: glib2-devel%{?_isa} >= %{glib2_version}
# gdk-pixbuf was included in gtk2 until 2.21.2
Conflicts: gtk2-devel <= 2.21.2
%description devel
%description devel
This package contains the libraries and header files that are needed
This package contains the libraries and header files that are needed
for writing applications that are using gdk-pixbuf.
for writing applications that are using gdk-pixbuf2.
%package tests
%package tests
Summary: Tests for the %{name} package
Summary: Tests for the %{name} package
@ -92,29 +61,20 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The %{name}-tests package contains tests that can be used to verify
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.
the functionality of the installed %{name} package.
%prep
%prep
%autosetup -n gdk-pixbuf-%{version} -p1 -Sgit
%autosetup -n gdk-pixbuf-%{version} -p1 -Sgit
%build
%build
autoreconf -fi
%meson \
%configure \
-Dgtk_doc=false \
--with-x11 \
-Dman=true \
--with-libjasper \
%{nil}
--with-included-loaders=png \
--enable-installed-tests \
--disable-silent-rules
make %{?_smp_mflags}
%global _smp_mflags -j1
%meson_build
%install
%install
%make_install RUN_QUERY_LOADER_TEST=false
%meson_install
cp -a ${RPM_SOURCE_DIR}/bug753605-atsize.jpg $RPM_BUILD_ROOT%{_libexecdir}/installed-tests/gdk-pixbuf
# Remove unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/*.la
rm $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la
touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
@ -124,16 +84,6 @@ touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
%find_lang gdk-pixbuf
%find_lang gdk-pixbuf
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%post xlib -p /sbin/ldconfig
%postun xlib -p /sbin/ldconfig
%transfiletriggerin -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
%transfiletriggerin -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
@ -142,7 +92,7 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
%files -f gdk-pixbuf.lang
%files -f gdk-pixbuf.lang
%license COPYING
%license COPYING
%doc AUTHORS NEWS
%doc NEWS
%{_libdir}/libgdk_pixbuf-2.0.so.*
%{_libdir}/libgdk_pixbuf-2.0.so.*
%{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0
%dir %{_libdir}/gdk-pixbuf-2.0
%dir %{_libdir}/gdk-pixbuf-2.0
@ -157,14 +107,6 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
%files modules
%files modules
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
%files xlib
%{_libdir}/libgdk_pixbuf_xlib-2.0.so.*
%files xlib-devel
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf-xlib
%{_libdir}/libgdk_pixbuf_xlib-2.0.so
%{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc
%files devel
%files devel
%dir %{_includedir}/gdk-pixbuf-2.0
%dir %{_includedir}/gdk-pixbuf-2.0
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf
@ -172,39 +114,94 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
%{_bindir}/gdk-pixbuf-csource
%{_bindir}/gdk-pixbuf-csource
%{_bindir}/gdk-pixbuf-pixdata
%{_bindir}/gdk-pixbuf-pixdata
%{_datadir}/gir-1.0
%{_datadir}/gir-1.0/
%{_datadir}/gtk-doc/html/*
%{_mandir}/man1/gdk-pixbuf-csource.1*
%{_mandir}/man1/gdk-pixbuf-csource.1*
%files tests
%files tests
%{_libexecdir}/installed-tests
%{_libexecdir}/installed-tests
%{_datadir}/installed-tests
%{_datadir}/installed-tests
%changelog
%changelog
* Wed May 15 2024 Tomas Popela <tpopela@redhat.com> - 2.36.12-6
* Wed May 15 2024 Tomas Popela <tpopela@redhat.com> - 2.42.6-4
- Backport fixes for CVE-2022-48622
- Backport fixes for CVE-2022-48622
- Apply patches with git to enable binary patching
- Resolves: RHEL-36432
- Resolves: RHEL-30478
* Mon Oct 31 2022 Tomas Popela <tpopela@redhat.com> - 2.42.6-3
- Backport fixes for CVE-2021-46829 and CVE-2021-44648
- Resolves: rhbz#2115213
- Resolves: rhbz#2044346
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.42.6-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri May 14 2021 Kalev Lember <klember@redhat.com> - 2.42.6-1
- Update to 2.42.6
- Use upstream defaults (png and jpeg) for builtin loaders
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.42.4-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Mar 23 2021 Kalev Lember <klember@redhat.com> - 2.42.4-2
- Rebuild
* Tue Mar 23 2021 Kalev Lember <klember@redhat.com> - 2.42.4-1
- Update to 2.42.4
- Disable gtk-doc support as we don't have gi-docgen in Fedora yet
* Fri Feb 19 2021 Kalev Lember <klember@redhat.com> - 2.42.2-2
- Avoid using deprecated meson options
- Fix gtk-doc directory ownership
* Fri Feb 19 2021 Kalev Lember <klember@redhat.com> - 2.42.2-1
- Update to 2.42.2
- Split out gdk-pixbuf2-xlib to separate source package
- Update upstream URLs
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.40.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.40.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.40.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Oct 08 2019 Kalev Lember <klember@redhat.com> - 2.40.0-1
- Update to 2.40.0
* Mon Aug 19 2019 Kalev Lember <klember@redhat.com> - 2.39.2-1
- Update to 2.39.2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.38.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Feb 28 2019 Kalev Lember <klember@redhat.com> - 2.38.1-1
- Update to 2.38.1
* Tue Feb 12 2019 Kalev Lember <klember@redhat.com> - 2.38.0-6
- Backport a patch to fix perl-Gtk3 build (#1676474)
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.38.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.36.12-5
* Mon Sep 10 2018 Kalev Lember <klember@redhat.com> - 2.38.0-4
- Rebuilt for MSVSphere 8.8
- Disable parallel make to work around thumbnailer generation issue (#1626835)
* Thu Aug 29 2019 Benjamin Otte <otte@gnome.org> - 2.36.12-5
* Mon Sep 10 2018 Kalev Lember <klember@redhat.com> - 2.38.0-3
- Disable mmx support
- Rebuilt to pick up all thumbnailers (#1626835)
Resolves: #1630565
* Fri Dec 14 2018 Ray Strode <rstrode@redhat.com> - 2.36.12-4
* Fri Sep 07 2018 Kalev Lember <klember@redhat.com> - 2.38.0-2
- Install missing test image
- Rebuilt against fixed atk (#1626575)
Related: #1625683
- Fix up tests.yml
* Fri Dec 14 2018 Ray Strode <rstrode@redhat.com> - 2.36.12-3
* Thu Sep 06 2018 Kalev Lember <klember@redhat.com> - 2.38.0-1
- rebuild
- Update to 2.38.0
- Switch to the meson build system
- Remove ancient conflicts
- Remove ldconfig scriptlets
* Mon Dec 10 2018 Josh Boyer <jwboyer@redhat.com> - 2.36.12-2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.36.12-2
- Rebuild for CET note fixes
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Resolves: #1657310
* Sun Apr 08 2018 Kalev Lember <klember@redhat.com> - 2.36.12-1
* Sun Apr 08 2018 Kalev Lember <klember@redhat.com> - 2.36.12-1
- Update to 2.36.12
- Update to 2.36.12