2020-07-21 21:18:03 +00:00
|
|
|
# Force out of source build
|
|
|
|
%undefine __cmake_in_source_build
|
2020-03-04 14:57:45 +00:00
|
|
|
|
2020-07-21 21:18:03 +00:00
|
|
|
%bcond_without aom
|
2020-12-09 05:13:00 +00:00
|
|
|
%ifarch x86_64
|
|
|
|
%bcond_without svt
|
|
|
|
%endif
|
2020-03-04 14:57:45 +00:00
|
|
|
|
2020-10-19 12:00:50 +00:00
|
|
|
Name: libavif
|
2020-12-09 05:04:45 +00:00
|
|
|
Version: 0.8.4
|
2021-01-26 16:41:35 +00:00
|
|
|
Release: 3%{?dist}
|
2020-10-19 12:00:50 +00:00
|
|
|
Summary: Library for encoding and decoding .avif files
|
2020-07-21 21:18:03 +00:00
|
|
|
|
2020-10-19 12:00:50 +00:00
|
|
|
License: BSD
|
|
|
|
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)
|
2020-07-21 21:18:03 +00:00
|
|
|
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
|
|
|
|
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 \
|
|
|
|
-DAVIF_CODEC_RAV1E=1 \
|
|
|
|
%{?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
|
2020-12-09 05:04:45 +00:00
|
|
|
%{_libdir}/libavif.so.9*
|
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-02-20 08:09:36 +00:00
|
|
|
* Sat Feb 20 2021 Andreas Schneider <asn@redhat.com> - 0.8.4-4
|
|
|
|
- Build release with debug info
|
|
|
|
|
2021-01-26 16:41:35 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-14 01:50:08 +00:00
|
|
|
* Mon Dec 14 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.4-2
|
|
|
|
- Rebuild for dav1d SONAME bump
|
|
|
|
|
2020-12-09 05:04:45 +00:00
|
|
|
* Wed Dec 09 05:52:07 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.4-1
|
|
|
|
- Update to version 0.8.4
|
|
|
|
|
2020-10-19 12:00:50 +00:00
|
|
|
* Mon Oct 19 2020 Andreas Schneider <asn@redhat.com> - 0.8.2-1
|
|
|
|
- Update to version 0.8.2
|
|
|
|
https://github.com/AOMediaCodec/libavif/blob/master/CHANGELOG.md
|
|
|
|
|
2020-08-06 20:27:09 +00:00
|
|
|
* Thu Aug 06 22:14:02 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.1-1
|
|
|
|
- Update to 0.8.1
|
|
|
|
|
2020-07-21 21:18:03 +00:00
|
|
|
* Wed Aug 05 21:17:23 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.0-1
|
|
|
|
- Update to 0.8.0
|
|
|
|
|
2020-08-01 03:51:54 +00:00
|
|
|
* 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
|
|
|
|
|
2020-07-28 04:16:35 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-22 10:02:09 +00:00
|
|
|
* Fri May 22 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.7.3-1
|
|
|
|
- Update to 0.7.3
|
|
|
|
|
2020-04-29 15:44:26 +00:00
|
|
|
* Wed Apr 29 2020 Andreas Schneider <asn@redhat.com> - 0.7.2-1
|
|
|
|
- Update to version 0.7.2
|
|
|
|
* https://github.com/AOMediaCodec/libavif/blob/master/CHANGELOG.md
|
|
|
|
|
2020-04-29 14:23:00 +00:00
|
|
|
* Wed Apr 29 2020 Andreas Schneider <asn@redhat.com> - 0.7.1-1
|
|
|
|
- Update to version 0.7.1
|
|
|
|
|
2020-03-04 14:57:45 +00:00
|
|
|
* Wed Mar 04 2020 Andreas Schneider <asn@redhat.com> - 0.5.7-1
|
|
|
|
- Update to version 0.5.7
|
|
|
|
|
|
|
|
* Wed Mar 04 2020 Andreas Schneider <asn@redhat.com> - 0.5.3-2
|
|
|
|
- Fix License
|
|
|
|
|
|
|
|
* Sun Feb 16 2020 Andreas Schneider <asn@redhat.com> - 0.5.3-1
|
|
|
|
- Initial version
|