2021-03-29 21:29:51 +00:00
|
|
|
# Build with aom
|
2021-03-10 21:32:04 +00:00
|
|
|
%bcond_without aom
|
2021-03-29 21:29:51 +00:00
|
|
|
# Build SVT-AV1
|
2020-12-09 05:13:00 +00:00
|
|
|
%bcond_without svt
|
2022-11-30 17:32:14 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 9
|
2022-07-10 14:31:41 +00:00
|
|
|
%bcond_with rav1e
|
2022-11-30 13:53:38 +00:00
|
|
|
%else
|
|
|
|
%bcond_without rav1e
|
2022-07-10 14:31:41 +00:00
|
|
|
%endif
|
2020-03-04 14:57:45 +00:00
|
|
|
|
2020-10-19 12:00:50 +00:00
|
|
|
Name: libavif
|
2022-10-23 15:48:53 +00:00
|
|
|
Version: 0.11.1
|
2021-07-19 19:50:30 +00:00
|
|
|
Release: %autorelease
|
2020-10-19 12:00:50 +00:00
|
|
|
Summary: Library for encoding and decoding .avif files
|
2020-07-21 21:18:03 +00:00
|
|
|
|
2023-02-23 14:21:04 +00:00
|
|
|
License: BSD-2-Clause
|
2020-10-19 12:00:50 +00:00
|
|
|
URL: https://github.com/AOMediaCodec/libavif
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: nasm
|
|
|
|
%if %{with aom}
|
|
|
|
BuildRequires: pkgconfig(aom)
|
|
|
|
%endif
|
2020-07-21 21:18:03 +00:00
|
|
|
BuildRequires: pkgconfig(dav1d)
|
2020-04-29 14:39:09 +00:00
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
2020-04-29 14:33:19 +00:00
|
|
|
BuildRequires: pkgconfig(libpng)
|
2022-07-10 14:31:41 +00:00
|
|
|
%{?with_rav1e:BuildRequires: pkgconfig(rav1e)}
|
2020-12-09 05:13:00 +00:00
|
|
|
%{?with_svt:BuildRequires: pkgconfig(SvtAv1Enc)}
|
2020-04-29 14:33:19 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%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
|
2022-11-03 17:39:37 +00:00
|
|
|
Summary: Development files for libavif
|
2020-07-21 21:18:03 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package holds the development files for libavif.
|
|
|
|
|
|
|
|
%package tools
|
2020-07-21 21:18:03 +00:00
|
|
|
Summary: Tools to encode and decode AVIF files
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%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/
|
|
|
|
|
2020-07-21 21:18:03 +00:00
|
|
|
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.
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2021-02-20 08:09:36 +00:00
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
%{?with_aom:-DAVIF_CODEC_AOM=1} \
|
|
|
|
-DAVIF_CODEC_DAV1D=1 \
|
2022-07-10 14:31:41 +00:00
|
|
|
%{?with_rav1e:-DAVIF_CODEC_RAV1E=1} \
|
2021-02-20 08:09:36 +00:00
|
|
|
%{?with_svt:-DAVIF_CODEC_SVT=1} \
|
|
|
|
-DAVIF_BUILD_APPS=1 \
|
|
|
|
-DAVIF_BUILD_GDK_PIXBUF=1
|
2020-07-21 21:18:03 +00:00
|
|
|
%cmake_build
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%install
|
2020-07-21 21:18:03 +00:00
|
|
|
%cmake_install
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
2021-03-29 21:29:51 +00:00
|
|
|
# Do not glob the soname
|
2022-10-23 15:48:53 +00:00
|
|
|
%{_libdir}/libavif.so.15*
|
|
|
|
%{_datadir}/thumbnailers/avif.thumbnailer
|
2020-03-04 14:57:45 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2020-07-21 21:18:03 +00:00
|
|
|
%files -n avif-pixbuf-loader
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so
|
|
|
|
|
2020-03-04 14:57:45 +00:00
|
|
|
%changelog
|
2021-07-19 19:50:30 +00:00
|
|
|
%autochangelog
|