Blame libavif.spec

05f1fe9
# Force out of source build
05f1fe9
%undefine __cmake_in_source_build
Andreas Schneider 4296ae8
05f1fe9
%bcond_without aom
Andreas Schneider 4296ae8
05f1fe9
Name:       libavif
9f88f63
Version:    0.8.1
05f1fe9
Release:    1%{?dist}
05f1fe9
Summary:    Library for encoding and decoding .avif files
05f1fe9
05f1fe9
License:    BSD
05f1fe9
URL:        https://github.com/AOMediaCodec/libavif
05f1fe9
Source0:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
BuildRequires:  cmake
Andreas Schneider 4296ae8
BuildRequires:  gcc-c++
Andreas Schneider 4296ae8
BuildRequires:  nasm
Andreas Schneider 4296ae8
%if %{with aom}
Andreas Schneider 4296ae8
BuildRequires:  pkgconfig(aom)
Andreas Schneider 4296ae8
%endif
05f1fe9
BuildRequires:  pkgconfig(dav1d)
Andreas Schneider d58482f
BuildRequires:  pkgconfig(libjpeg)
Andreas Schneider 0289a29
BuildRequires:  pkgconfig(libpng)
05f1fe9
BuildRequires:  pkgconfig(rav1e)
Andreas Schneider 0289a29
BuildRequires:  pkgconfig(zlib)
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%description
Andreas Schneider 4296ae8
This library aims to be a friendly, portable C implementation of the AV1 Image
Andreas Schneider 4296ae8
File Format, as described here:
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
https://aomediacodec.github.io/av1-avif/
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%package devel
Andreas Schneider 4296ae8
Summary:        Development files for libavif
05f1fe9
Requires:       %{name}%{?_isa} = %{version}-%{release}
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%description devel
Andreas Schneider 4296ae8
This package holds the development files for libavif.
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%package tools
05f1fe9
Summary:        Tools to encode and decode AVIF files
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%description tools
Andreas Schneider 4296ae8
This library aims to be a friendly, portable C implementation of the AV1 Image
Andreas Schneider 4296ae8
File Format, as described here:
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
https://aomediacodec.github.io/av1-avif/
Andreas Schneider 4296ae8
05f1fe9
This package holds the commandline tools to encode and decode AVIF files.
05f1fe9
05f1fe9
%package     -n avif-pixbuf-loader
05f1fe9
Summary:        AVIF image loader for GTK+ applications
05f1fe9
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
05f1fe9
Requires:       gdk-pixbuf2
05f1fe9
05f1fe9
%description -n avif-pixbuf-loader
05f1fe9
Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%prep
Andreas Schneider 4296ae8
%autosetup -p1
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%build
05f1fe9
%cmake  %{?with_aom:-DAVIF_CODEC_AOM=1} \
05f1fe9
        -DAVIF_CODEC_DAV1D=1 \
05f1fe9
        -DAVIF_CODEC_RAV1E=1 \
05f1fe9
        -DAVIF_BUILD_APPS=1 \
05f1fe9
        -DAVIF_BUILD_GDK_PIXBUF=1
05f1fe9
%cmake_build
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%install
05f1fe9
%cmake_install
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%files
Andreas Schneider 4296ae8
%license LICENSE
a74f1c2
%{_libdir}/libavif.so.6*
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%files devel
Andreas Schneider 4296ae8
%{_libdir}/libavif.so
Andreas Schneider 4296ae8
%{_includedir}/avif/
Andreas Schneider 4296ae8
%{_libdir}/cmake/libavif/
Andreas Schneider 4296ae8
%{_libdir}/pkgconfig/libavif.pc
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
%files tools
Andreas Schneider 4296ae8
%doc CHANGELOG.md README.md
Andreas Schneider 4296ae8
%{_bindir}/avifdec
Andreas Schneider 4296ae8
%{_bindir}/avifenc
Andreas Schneider 4296ae8
05f1fe9
%files -n avif-pixbuf-loader
05f1fe9
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so
05f1fe9
Andreas Schneider 4296ae8
%changelog
9f88f63
* Thu Aug 06 22:14:02 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.1-1
9f88f63
- Update to 0.8.1
9f88f63
05f1fe9
* Wed Aug 05 21:17:23 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.0-1
05f1fe9
- Update to 0.8.0
05f1fe9
be75d07
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-3
be75d07
- Second attempt - Rebuilt for
be75d07
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
be75d07
03bf688
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-2
03bf688
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
03bf688
01fe6c8
* Fri May 22 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.7.3-1
01fe6c8
- Update to 0.7.3
01fe6c8
Andreas Schneider b0bfd6d
* Wed Apr 29 2020 Andreas Schneider <asn@redhat.com> - 0.7.2-1
Andreas Schneider b0bfd6d
- Update to version 0.7.2
Andreas Schneider b0bfd6d
  * https://github.com/AOMediaCodec/libavif/blob/master/CHANGELOG.md
Andreas Schneider b0bfd6d
Andreas Schneider 5cc4bd6
* Wed Apr 29 2020 Andreas Schneider <asn@redhat.com> - 0.7.1-1
Andreas Schneider 5cc4bd6
- Update to version 0.7.1
Andreas Schneider 5cc4bd6
Andreas Schneider 4296ae8
* Wed Mar 04 2020 Andreas Schneider <asn@redhat.com> - 0.5.7-1
Andreas Schneider 4296ae8
- Update to version 0.5.7
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
* Wed Mar 04 2020 Andreas Schneider <asn@redhat.com> - 0.5.3-2
Andreas Schneider 4296ae8
- Fix License
Andreas Schneider 4296ae8
Andreas Schneider 4296ae8
* Sun Feb 16 2020 Andreas Schneider <asn@redhat.com> - 0.5.3-1
Andreas Schneider 4296ae8
- Initial version