| |
@@ -1,24 +1,30 @@
|
| |
- %bcond_with aom
|
| |
+ # Force out of source build
|
| |
+ %undefine __cmake_in_source_build
|
| |
|
| |
- Name: libavif
|
| |
- Version: 0.7.3
|
| |
- Release: 3%{?dist}
|
| |
- Summary: Library for encoding and decoding .avif files
|
| |
- License: BSD
|
| |
- Url: https://github.com/AOMediaCodec/libavif
|
| |
+ %bcond_without aom
|
| |
|
| |
- Source0: https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz
|
| |
+ Name: libavif
|
| |
+ Version: 0.8.0
|
| |
+ Release: 1%{?dist}
|
| |
+ Summary: Library for encoding and decoding .avif files
|
| |
+
|
| |
+ License: BSD
|
| |
+ URL: https://github.com/AOMediaCodec/libavif
|
| |
+ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
| |
+ # Patches to fix avif-pixbuf-loader bugs in latest release
|
| |
+ Patch0: https://github.com/AOMediaCodec/libavif/commit/9759bc7346802faa8ec96bb38456d8b8170580aa.patch#/0001-Fix-a-crash-in-the-gdk-pixbuf-loader-when-error-is-NULL.patch
|
| |
+ Patch1: https://github.com/AOMediaCodec/libavif/commit/61ec9835d0a0110e48346cb98ed095e29be19077.patch#/0002-Fix-a-crash-in-the-gdk-pixbuf-loader-removed-unnecessary-asserts.patch
|
| |
|
| |
BuildRequires: cmake
|
| |
BuildRequires: gcc-c++
|
| |
BuildRequires: nasm
|
| |
- BuildRequires: pkgconfig(dav1d)
|
| |
%if %{with aom}
|
| |
BuildRequires: pkgconfig(aom)
|
| |
%endif
|
| |
- BuildRequires: pkgconfig(rav1e)
|
| |
+ BuildRequires: pkgconfig(dav1d)
|
| |
BuildRequires: pkgconfig(libjpeg)
|
| |
BuildRequires: pkgconfig(libpng)
|
| |
+ BuildRequires: pkgconfig(rav1e)
|
| |
BuildRequires: pkgconfig(zlib)
|
| |
|
| |
%description
|
| |
@@ -28,14 +34,14 @@
|
| |
https://aomediacodec.github.io/av1-avif/
|
| |
|
| |
%package devel
|
| |
- Requires: %{name} = %{version}-%{release}
|
| |
Summary: Development files for libavif
|
| |
+ Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
|
| |
%description devel
|
| |
This package holds the development files for libavif.
|
| |
|
| |
%package tools
|
| |
- Summary: Tools for libavif
|
| |
+ Summary: Tools to encode and decode AVIF files
|
| |
|
| |
%description tools
|
| |
This library aims to be a friendly, portable C implementation of the AV1 Image
|
| |
@@ -43,35 +49,35 @@
|
| |
|
| |
https://aomediacodec.github.io/av1-avif/
|
| |
|
| |
- This package holds the commandline tools for libavif.
|
| |
+ This package holds the commandline tools to encode and decode AVIF files.
|
| |
+
|
| |
+ %package -n avif-pixbuf-loader
|
| |
+ Summary: AVIF image loader for GTK+ applications
|
| |
+ BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
| |
+ Requires: gdk-pixbuf2
|
| |
+
|
| |
+ %description -n avif-pixbuf-loader
|
| |
+ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
|
| |
|
| |
%prep
|
| |
%autosetup -p1
|
| |
|
| |
%build
|
| |
- mkdir -p obj
|
| |
- pushd obj
|
| |
- %cmake \
|
| |
- -DAVIF_CODEC_RAV1E:BOOL=ON \
|
| |
- -DAVIF_CODEC_DAV1D:BOOL=ON \
|
| |
- %if %{with aom}
|
| |
- -DAVIF_CODEC_AOM:BOOL=ON \
|
| |
- %endif
|
| |
- -DAVIF_BUILD_APPS:BOOL=ON \
|
| |
- -DAVIF_BUILD_EXAMPLES:BOOL=ON \
|
| |
- ..
|
| |
- %make_build
|
| |
- popd
|
| |
+ %cmake %{?with_aom:-DAVIF_CODEC_AOM=1} \
|
| |
+ -DAVIF_CODEC_DAV1D=1 \
|
| |
+ -DAVIF_CODEC_RAV1E=1 \
|
| |
+ -DAVIF_BUILD_APPS=1 \
|
| |
+ -DAVIF_BUILD_GDK_PIXBUF=1
|
| |
+ %cmake_build
|
| |
|
| |
%install
|
| |
- %make_install -C obj
|
| |
+ %cmake_install
|
| |
|
| |
%files
|
| |
%license LICENSE
|
| |
- %{_libdir}/libavif.so.*
|
| |
+ %{_libdir}/libavif.so.5*
|
| |
|
| |
%files devel
|
| |
- %license LICENSE
|
| |
%{_libdir}/libavif.so
|
| |
%{_includedir}/avif/
|
| |
%{_libdir}/cmake/libavif/
|
| |
@@ -79,11 +85,16 @@
|
| |
|
| |
%files tools
|
| |
%doc CHANGELOG.md README.md
|
| |
- %license LICENSE
|
| |
%{_bindir}/avifdec
|
| |
%{_bindir}/avifenc
|
| |
|
| |
+ %files -n avif-pixbuf-loader
|
| |
+ %{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so
|
| |
+
|
| |
%changelog
|
| |
+ * Wed Aug 05 21:17:23 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.0-1
|
| |
+ - Update to 0.8.0
|
| |
+
|
| |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-3
|
| |
- Second attempt - Rebuilt for
|
| |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
Signed-off-by: Robert-André Mauchin zebob.m@gmail.com
Can I help you comaintaining this? I filed a Review Request but I didn't notice it was already packaged. I made a few changes while updating:
- used new cmake macros for oot building (https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds)
- added missing %{?_isa} for the devel package
- packaged the avif-pixbuf-loader for the GTK apps
- enabled AOM for Rawhide: I packaged aom v2.0.0 a couple of week ago to use with this
- devel and tools depend on the main library package so they don't need their own license
- unglobbed the soname to avoid unintentional bump