From 14191c8854f8cde13a7a9ce91efc355eb6ef3abb Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 12 Jan 2025 20:53:21 +0300 Subject: [PATCH] import gdk-pixbuf2-modules-extra-2.42.12-2.el10 --- .gdk-pixbuf2-modules-extra.metadata | 1 + .gitignore | 1 + SPECS/gdk-pixbuf2-modules-extra.spec | 87 ++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 .gdk-pixbuf2-modules-extra.metadata create mode 100644 .gitignore create mode 100644 SPECS/gdk-pixbuf2-modules-extra.spec diff --git a/.gdk-pixbuf2-modules-extra.metadata b/.gdk-pixbuf2-modules-extra.metadata new file mode 100644 index 0000000..71466f4 --- /dev/null +++ b/.gdk-pixbuf2-modules-extra.metadata @@ -0,0 +1 @@ +06a622bc6a591b32adbd7698a176ee8e9d6cf9c9 SOURCES/gdk-pixbuf-2.42.12.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c119204 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/gdk-pixbuf-2.42.12.tar.xz diff --git a/SPECS/gdk-pixbuf2-modules-extra.spec b/SPECS/gdk-pixbuf2-modules-extra.spec new file mode 100644 index 0000000..0c4d0b9 --- /dev/null +++ b/SPECS/gdk-pixbuf2-modules-extra.spec @@ -0,0 +1,87 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: gdk-pixbuf2-modules-extra +Version: 2.42.12 +Release: %autorelease +Summary: Extra image loaders for gdk-pixbuf2 + +License: LGPL-2.1-or-later +URL: https://gitlab.gnome.org/GNOME/gdk-pixbuf +Source0: https://download.gnome.org/sources/gdk-pixbuf/2.42/gdk-pixbuf-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: meson +# gdk-pixbuf does a configure time check which uses the GIO mime +# layer; we need to actually have the mime type database. +BuildRequires: shared-mime-info + +# Avoid file conflicts with old gdk-pixbuf2-modules. We don't want to require +# that package, but luckily it has a fully versioned dependency on gdk2-pixbuf. +# The version here should correspond to the newest gdk-pixbuf2 in F40. +Requires: gdk-pixbuf2%{?_isa} > 2.42.10-8.fc40 + +%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. + +This package contains modules for loading ANI, BMP, ICNS, ICO, PNM, QTIF, +TGA, XBM, and XPM images. + +%prep +%autosetup -n gdk-pixbuf-%{version} -p1 + +%build +%meson \ + -Dpng=disabled \ + -Dtiff=disabled \ + -Djpeg=disabled \ + -Dgif=disabled \ + -Dothers=enabled \ + -Dbuiltin_loaders=none \ + -Dintrospection=disabled \ + -Dman=false \ + -Dinstalled_tests=false \ + %{nil} + +%global _smp_mflags -j1 +%meson_build + +%check +%meson_test + +%install +%meson_install +rm -r $RPM_BUILD_ROOT%{_bindir} +# gdk-pixbuf2 package includes locale data for our modules +rm -r $RPM_BUILD_ROOT%{_datadir}/locale +rm -r $RPM_BUILD_ROOT%{_includedir} +rm $RPM_BUILD_ROOT%{_libdir}/libgdk_pixbuf-2.0* +rm -r $RPM_BUILD_ROOT%{_libdir}/pkgconfig +# ship our own copy of the thumbnailer config to pick up our MIME types +mv $RPM_BUILD_ROOT%{_datadir}/thumbnailers/gdk-pixbuf{,-modules-extra}-thumbnailer.thumbnailer + +%files +%license COPYING +%doc NEWS README.md +%{_datadir}/thumbnailers/*.thumbnailer +%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so + +%changelog +* Sun Jan 12 2025 Arkady L. Shane - 2.42.12-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 26 2024 Benjamin Gilbert - 2.42.12-1 +- Initial import (fedora#2295748). +## END: Generated by rpmautospec