| Name |
libavif |
| Description |
Library for encoding and decoding .avif files |
| Version |
1.1.1-1.fc42 |
| Package Base |
libavif |
| Homepage |
https://github.com/AOMediaCodec/libavif |
| Maintainers |
['asn', 'eclipseo', 'jkucera', 'slaanesh'] |
| Contributors |
[] |
| Distro-repo |
https://src.fedoraproject.org/rpms/libavif/tree/f42 |
| Sources |
['%{url}/archive/v%{version}/%{name}-%{version}.tar.gz'] |
| Dependencies |
['libSvtAv1Enc.so.2', 'libaom.so.3', 'libc.so.6', 'libdav1d.so.7', 'librav1e.so.0', 'libyuv.so.0', 'rtld'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['cmake', 'gcc-c++', 'gtest-devel', 'nasm', 'pkgconfig(SvtAv1Enc)', 'pkgconfig(aom)', 'pkgconfig(dav1d)', 'pkgconfig(gdk-pixbuf-2.0)', 'pkgconfig(libjpeg)', 'pkgconfig(libpng)', 'pkgconfig(libyuv)', 'pkgconfig(rav1e)', 'pkgconfig(zlib)'] |
| Provides |
['libavif', 'libavif(x86-64)', 'libavif.so.16()(64bit)'] |
| Builddate |
09-02-2025 08:22:25 |
| Architecture |
x86_64 |
| Distro-Version |
42 |
| Licenses |
['BSD-2-Clause'] |
| Hash |
4a3477318f699757d235790f2f07ce6b8779dda0cb7bef30224d89272c805f73 |
# Break dependency cycles by disabling certain optional dependencies.
%bcond bootstrap 0
# Break aom dependency cycle:
# vmaf → aom → avif
%if %{with bootstrap}
# Build without aom
%bcond aom 0
# Build without SVT-AV1
%bcond svt 0
%else
# Build with aom
%bcond aom 1
# Build SVT-AV1
%bcond svt 1
%endif
%if (0%{?rhel} && 0%{?rhel} < 9) || 0%{?rhel} >= 10
%bcond rav1e 0
%else
%bcond rav1e 1
%endif
%if 0%{?rhel} >= 10
%bcond gtest 0
%else
%bcond gtest 1
%endif
%bcond check 1
Name: libavif
Version: 1.1.1
Release: %autorelease
Summary: Library for encoding and decoding .avif files
License: BSD-2-Clause
URL: https://github.com/AOMediaCodec/libavif
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%{?with_check:%{?with_gtest:BuildRequires: gtest-devel}}
BuildRequires: nasm
%{?with_aom:BuildRequires: pkgconfig(aom)}
BuildRequires: pkgconfig(dav1d)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libyuv)
%{?with_rav1e:BuildRequires: pkgconfig(rav1e)}
%{?with_svt:BuildRequires: pkgconfig(SvtAv1Enc)}
BuildRequires: pkgconfig(zlib)
%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/
%package devel
Summary: Development files for libavif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package holds the development files for libavif.
%package tools
Summary: Tools to encode and decode AVIF files
%description tools
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/
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%{?_isa}
%description -n avif-pixbuf-loader
Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
%prep
%autosetup -p1
%build
%cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
%{?with_aom:-DAVIF_CODEC_AOM=SYSTEM} \
-DAVIF_CODEC_DAV1D=SYSTEM \
%{?with_rav1e:-DAVIF_CODEC_RAV1E=SYSTEM} \
%{?with_svt:-DAVIF_CODEC_SVT=SYSTEM} \
-DAVIF_BUILD_APPS=1 \
-DAVIF_BUILD_GDK_PIXBUF=1 \
%{?with_check:-DAVIF_BUILD_TESTS=1 %{?with_gtest:-DAVIF_GTEST=SYSTEM}}
%cmake_build
%install
%cmake_install
%if %{with check}
%check
%ctest
%endif
%files
%license LICENSE
# Do not glob the soname
%{_libdir}/libavif.so.16*
%{_datadir}/thumbnailers/avif.thumbnailer
%files devel
%{_libdir}/libavif.so
%{_includedir}/avif/
%{_libdir}/cmake/libavif/
%{_libdir}/pkgconfig/libavif.pc
%files tools
%doc CHANGELOG.md README.md
%{_bindir}/avifdec
%{_bindir}/avifenc
%files -n avif-pixbuf-loader
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so
%changelog
%autochangelog