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
This commit is contained in:
Andreas Schneider 2021-01-13 19:21:57 +00:00 committed by Git OBS Bridge
parent bbcd86b094
commit 06315c2d09
2 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jan 13 13:30:40 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
- 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 <asn@cryptomilk.org>

View File

@ -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