Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
gdk-pixbuf.33887
gdk-pixbuf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdk-pixbuf.spec of Package gdk-pixbuf.33887
# # spec file for package gdk-pixbuf # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # When updating the binary version, do not forget to also update baselibs.conf %define gdk_pixbuf_binary_version 2.10.0 Name: gdk-pixbuf Version: 2.34.0 Release: 0 Summary: An image loading library License: LGPL-2.1+ Group: System/Libraries URL: http://www.gnome.org/ Source: http://download.gnome.org/sources/gdk-pixbuf/2.34/%{name}-%{version}.tar.xz Source1: macros.gdk-pixbuf Source2: README.SUSE Source99: baselibs.conf # PATCH-FIX-UPSTREAM gdk-pixbuf-bgo768688-bmp-overflow.patch bgo#768688 mgorse@suse.com -- fix a bmp overflow. Patch0: gdk-pixbuf-bgo768688-bmp-overflow.patch # PATCh-FIX-UPSTREAM gdk-pixbuf-bgo768484-ico-set-errors.patch bgo#768484 mgorse@suse.com -- ico: always set errors. Patch1: gdk-pixbuf-bgo768484-ico-set-errors.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-bgo769738-bmp-overflow.patch bsc#988745 bgo#769738 mgorse@suse.com -- fix another bmp overflow. Patch2: gdk-pixbuf-bgo769738-bmp-overflow.patch # PATCh-FIX-UPSTREAM gdk-pixbuf-bgo769170-ico-headers.patch bsc#991450 bgo#769170 CVE-2016-6352 mgorse@suse.com -- be more careful when parsing ico headers. Patch3: gdk-pixbuf-bgo769170-ico-headers.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-cve-2017-2862-jpeg-channels.patch bsc#1048289 bgo#784866 CVE-2017-2862 hpj@suse.com -- fix heap overwrite when JPEG channels is not 3 or 4. Patch4: gdk-pixbuf-cve-2017-2862-jpeg-channels.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-cve-2017-2870-tiff-mul-overflow.patch bsc#1048544 bgo#780269 CVE-2017-2870 hpj@suse.com -- fix reliance on undefined behavior to handle integer overflows. Patch5: gdk-pixbuf-cve-2017-2870-tiff-mul-overflow.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-cve-2017-6312-ico-integer-overflow.patch bsc#1027024 bgo#779012 CVE-2017-6312 hpj@suse.com -- fix integer overflow. Patch6: gdk-pixbuf-cve-2017-6312-ico-integer-overflow.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-cve-2017-6313-icns-integer-underflow.patch bsc#1027025 bgo#779016 CVE-2017-6313 hpj@suse.com -- fix integer underflow. Patch7: gdk-pixbuf-cve-2017-6313-icns-integer-underflow.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-cve-2017-6314-tiff-infinite-loop.patch bsc#1027025 bgo#779020 CVE-2017-6314 hpj@suse.com -- fix potential infinite loop in allocator. Patch8: gdk-pixbuf-cve-2017-6314-tiff-infinite-loop.patch Patch10: u_contrib-gdk-pixbuf-xlib-Fix-rgb888amsb.patch Patch11: gdk-pixbuf-toplevel-overflow-checks.patch Patch12: gdk-pixbuf-bsc1053417-bmp-updates.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-bgo785973-large-gif.patch bsc#1074462 mgorse@suse.com -- fail quickly when image dimentions are too big (CVE-2017-1000422). Patch13: gdk-pixbuf-bgo785973-large-gif.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-gif-negative-array-indexes.patch bgo#778584 mgorse@suse.com -- gif: prevent access to negative array indexes. Patch14: gdk-pixbuf-gif-negative-array-indexes.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-gif-uninitialized-variable.patch bgo#778584 mgorse@suse.com -- fix uninitialized variable. Patch15: gdk-pixbuf-gif-uninitialized-variable.patch # PATCH-FIX-UPSTREAM gdk-pixbuf-bsc1053417-test-fix.patch bsc#1053417 mgorse@suse.com -- update the CVE-2015-4491 test, since gdk-pixbuf now returns an error for it. Patch16: gdk-pixbuf-bsc1053417-test-fix.patch # PATCH-FIX-UPSTREAM bsc#1219276, CVE-2022-48622, glgo#GNOME/gdk-pixbuf#202 sckang@suse.com -- ANI: Reject files with multiple anih chunks Patch17: CVE-2022-48622.patch # Needed to apply CVE-2022-48622.patch BuildRequires: git-core BuildRequires: gnome-common BuildRequires: libjasper-devel BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: translation-update-upstream BuildRequires: pkgconfig(glib-2.0) >= 2.38.0 BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(x11) %description gdk-pixbuf is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or Clutter. %package -n libgdk_pixbuf-2_0-0 Summary: An image loading library # Provide %{name} to make the lang package installable Group: System/Libraries Provides: %{name} = %{version} Requires(post): gdk-pixbuf-query-loaders Recommends: %{name}-lang = %{version} Conflicts: gtk2 < 2.21.3 %description -n libgdk_pixbuf-2_0-0 gdk-pixbuf is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or Clutter. %package -n typelib-1_0-GdkPixbuf-2_0 Summary: An image loading library -- Introspection bindings Group: System/Libraries %description -n typelib-1_0-GdkPixbuf-2_0 gdk-pixbuf is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or Clutter. This package provides the GObject Introspection bindings for gdk-pixbuf. %package query-loaders Summary: An image loading library - Utility to create loaders cache Group: System/Libraries %description query-loaders gdk-pixbuf is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or Clutter. This package contains the utility to create the cache file needed for loadable modules. %package devel Summary: An image loading library - Development Files Group: Development/Languages/C and C++ Requires: libgdk_pixbuf-2_0-0 = %{version} Requires: typelib-1_0-GdkPixbuf-2_0 = %{version} %description devel gdk-pixbuf is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or Clutter. This package contains development files for gdk-pixbuf. %lang_package %prep %setup -q translation-update-upstream %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 # PATCH17 contains git binary diffs, apply it with git. git init git config user.email "example" git config user.name "example" git add . git commit -a -q -m "%{version} baseline." git am %{PATCH17} %if "%_lib" == "lib64" cp -a %{S:2} . %endif %build NOCONFIGURE=1 gnome-autogen.sh %configure \ --disable-static \ --enable-introspection \ --with-libjasper \ --with-x11 %{__make} %{?_smp_mflags} %install %makeinstall find %{buildroot}%{_libdir} -name '*.la' -delete -print %find_lang %{name} touch %{buildroot}%{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders.cache %if "%_lib" == "lib64" mv %{buildroot}%{_bindir}/gdk-pixbuf-query-loaders %{buildroot}%{_bindir}/gdk-pixbuf-query-loaders-64 mv %{buildroot}%{_mandir}/man1/gdk-pixbuf-query-loaders.1 %{buildroot}%{_mandir}/man1/gdk-pixbuf-query-loaders-64.1 %endif # Install rpm macros mkdir -p %{buildroot}%{_sysconfdir}/rpm cp %{S:1} %{buildroot}%{_sysconfdir}/rpm ########################################################################### # Note: when updating scriptlets, don't forget to also update baselibs.conf ########################################################################### # Convenient %define for the scriplets %if "%_lib" == "lib64" %define _gdk_pixbuf_query_loaders %{_bindir}/gdk-pixbuf-query-loaders-64 %else %define _gdk_pixbuf_query_loaders %{_bindir}/gdk-pixbuf-query-loaders %endif %define _gdk_pixbuf_query_loaders_update_cache %{_gdk_pixbuf_query_loaders} --update-cache %post -n libgdk_pixbuf-2_0-0 /sbin/ldconfig %if 0 # In case libgdk_pixbuf-2_0-0 gets installed before gdk-pixbuf-query-loaders, # we don't want to fail. So we make the call to gdk-pixbuf-query-loaders # dependent on the existence of the binary. This is why we also have a %post # for gdk-pixbuf-query-loaders. %endif if test -f %{_gdk_pixbuf_query_loaders}; then %{_gdk_pixbuf_query_loaders_update_cache} fi %post query-loaders %if 0 # If we install gdk-pixbuf-query-loaders for the first time, then we should run # it in case libgdk_pixbuf-2_0-0 was installed first (ie, if # %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version} already exists) which # means gdk-pixbuf-query-loaders couldn't run there. %endif if [ $1 = 1 ]; then test -d %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version} if test $? -eq 0; then %{_gdk_pixbuf_query_loaders_update_cache} fi fi %if 0 # No need to call gdk-pixbuf-query-loaders in postun: # - if it's an upgrade, it will have been called in post # - if it's an uninstall, we don't care about this anymore %endif %postun -n libgdk_pixbuf-2_0-0 -p /sbin/ldconfig %files -n libgdk_pixbuf-2_0-0 %defattr(-, root, root) %doc AUTHORS COPYING NEWS %if "%_lib" == "lib64" %doc README.SUSE %endif %{_libdir}/libgdk_pixbuf-2.0.so.0* %{_libdir}/libgdk_pixbuf_xlib-2.0.so.0* %dir %{_libdir}/gdk-pixbuf-2.0 %dir %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version} %dir %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders/*.so %ghost %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders.cache %files -n typelib-1_0-GdkPixbuf-2_0 %defattr(-,root,root) %{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib %files query-loaders %defattr(-, root, root) %{_bindir}/gdk-pixbuf-query-loaders* %{_mandir}/man1/gdk-pixbuf-query-loaders*.1* %files devel %defattr(-, root, root) %{_bindir}/gdk-pixbuf-csource %{_bindir}/gdk-pixbuf-pixdata %{_mandir}/man1/gdk-pixbuf-csource.1* %{_includedir}/gdk-pixbuf-2.0 %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %{_datadir}/gir-1.0/GdkPixbuf-2.0.gir %doc %{_datadir}/gtk-doc/html/gdk-pixbuf %{_sysconfdir}/rpm/macros.gdk-pixbuf %files lang -f %{name}.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor