From 06315c2d091d93795072e88831b37c0ccc646286caf1b108ecc7adf3925e5e49 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 13 Jan 2021 19:21:57 +0000 Subject: [PATCH] Accepting request 862955 from home:iznogood:branches:multimedia:libs - Build the gdk-pixbuf module: Add pkgconfig(gdk-pixbuf-2.0) BuildRequires and pass DAVIF_BUILD_GDK_PIXBUF=ON to cmake. Package the resulting loader in a new sub package. - Use cmake_build macro. OBS-URL: https://build.opensuse.org/request/show/862955 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libavif?expand=0&rev=27 --- libavif.changes | 8 ++++++++ libavif.spec | 18 +++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/libavif.changes b/libavif.changes index ad8423b..aa261e8 100644 --- a/libavif.changes +++ b/libavif.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jan 13 13:30:40 UTC 2021 - Bjørn Lie + +- Build the gdk-pixbuf module: Add pkgconfig(gdk-pixbuf-2.0) + BuildRequires and pass DAVIF_BUILD_GDK_PIXBUF=ON to cmake. + Package the resulting loader in a new sub package. +- Use cmake_build macro. + ------------------------------------------------------------------- Wed Dec 9 15:59:14 UTC 2020 - Andreas Schneider diff --git a/libavif.spec b/libavif.spec index 9badb47..e960825 100644 --- a/libavif.spec +++ b/libavif.spec @@ -1,7 +1,7 @@ # # spec file for package libavif # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,6 +35,7 @@ BuildRequires: gcc-c++ BuildRequires: libjpeg8-devel BuildRequires: nasm BuildRequires: pkgconfig(dav1d) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(rav1e) BuildRequires: pkgconfig(zlib) @@ -76,6 +77,13 @@ https://aomediacodec.github.io/av1-avif/ This package holds the shared library for libavif. +%package -n gdk-pixbuf-loader-libavif +Summary: AVIF image loader for GTK+ applications +Group: Development/Libraries/C and C++ + +%description -n gdk-pixbuf-loader-libavif +A pixbuf-loader plugin to load AVIF images in GTK+ applications. + %package devel Requires: %{lib_name} = %{version}-%{release} # @@ -101,8 +109,9 @@ This package holds the development files for libavif. -DAVIF_CODEC_AOM:BOOL=ON \ %endif -DAVIF_BUILD_APPS:BOOL=ON \ - -DAVIF_BUILD_EXAMPLES:BOOL=ON -make %{?_smp_mflags} + -DAVIF_BUILD_EXAMPLES:BOOL=ON \ + -DAVIF_BUILD_GDK_PIXBUF=ON +%cmake_build %install %cmake_install @@ -127,4 +136,7 @@ make %{?_smp_mflags} %{_bindir}/avifdec %{_bindir}/avifenc +%files -n gdk-pixbuf-loader-libavif +%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so + %changelog