The package rpms/libavif0.10.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/libavif0.10.git/commit/?id=9e31da003....
Change: +%ifarch x86_64
Thanks.
Full change: ============
commit 9e31da0030ea7a3e0194ae41bec96109c791f1ca Author: Kalev Lember klember@redhat.com Date: Thu Dec 1 17:10:01 2022 +0100
Initial libavif 0.10 compat package
This is to avoid breaking other apps when updating libavif to 0.11 in EPEL9 and F37:
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-385df27ee1 https://bodhi.fedoraproject.org/updates/FEDORA-2022-5b019245ff
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..495b123 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libavif-0.10.1.tar.gz diff --git a/libavif0.10.spec b/libavif0.10.spec new file mode 100644 index 0000000..58279be --- /dev/null +++ b/libavif0.10.spec @@ -0,0 +1,69 @@ +# Build with aom +%bcond_without aom +# Build SVT-AV1 +%ifarch x86_64 +%bcond_without svt +%endif + +Name: libavif0.10 +Version: 0.10.1 +Release: %autorelease +Summary: Library for encoding and decoding .avif files + +License: BSD +URL: https://github.com/AOMediaCodec/libavif +Source0: %{url}/archive/v%{version}/libavif-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: nasm +%if %{with aom} +BuildRequires: pkgconfig(aom) +%endif +BuildRequires: pkgconfig(dav1d) +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(rav1e) +%{?with_svt:BuildRequires: pkgconfig(SvtAv1Enc)} +BuildRequires: pkgconfig(zlib) + +# Explicitly conflict with libavif package that used to ship the same soname as +# this libavif0.10 compat package +Conflicts: libavif < 0.11 + +%description +This library aims to be a friendly, portable C implementation of the AV1 Image +File Format, as described here: + +https://aomediacodec.github.io/av1-avif/ + +%prep +%autosetup -p1 -n libavif-%{version} + +%build +%cmake \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + %{?with_aom:-DAVIF_CODEC_AOM=1} \ + -DAVIF_CODEC_DAV1D=1 \ + -DAVIF_CODEC_RAV1E=1 \ + %{?with_svt:-DAVIF_CODEC_SVT=1} \ + -DAVIF_BUILD_APPS=0 \ + -DAVIF_BUILD_GDK_PIXBUF=0 +%cmake_build + +%install +%cmake_install + +# Remove devel files that we don't need for the compat package +rm -rfv $RPM_BUILD_ROOT%{_libdir}/libavif.so +rm -rfv $RPM_BUILD_ROOT%{_includedir}/avif/ +rm -rfv $RPM_BUILD_ROOT%{_libdir}/cmake/libavif/ +rm -rfv $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libavif.pc + +%files +%license LICENSE +# Do not glob the soname +%{_libdir}/libavif.so.14* + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..dda64d0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libavif-0.10.1.tar.gz) = 2f6f248c56c983761149d3c201fc2a2ea5072a32516578a7fdb2c66e3cd22491540f400e23581f873b15454250eeec8d433924ae2c1de9371b7924a5d82bef6b
arch-excludes@lists.fedoraproject.org