|
|
|
@ -1,88 +1,260 @@
@@ -1,88 +1,260 @@
|
|
|
|
|
%global somajor 1 |
|
|
|
|
|
|
|
|
|
# Unable to ship this in Fedora |
|
|
|
|
%bcond_with hevc |
|
|
|
|
|
|
|
|
|
%bcond_with check |
|
|
|
|
|
|
|
|
|
Name: libheif |
|
|
|
|
Version: 1.12.0 |
|
|
|
|
Release: 4%{?dist} |
|
|
|
|
Summary: HEIF file format decoder and encoder |
|
|
|
|
Version: 1.17.6 |
|
|
|
|
Release: 2%{?dist} |
|
|
|
|
Summary: HEIF and AVIF file format decoder and encoder |
|
|
|
|
|
|
|
|
|
License: LGPLv3+ and MIT |
|
|
|
|
URL: https://github.com/strukturag/%{name} |
|
|
|
|
License: LGPL-3.0-or-later and MIT |
|
|
|
|
URL: https://github.com/strukturag/libheif |
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz |
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf |
|
|
|
|
Patch0: libheif-no-hevc-tests.patch |
|
|
|
|
|
|
|
|
|
# Fix for CVE-2024-25269 (https://github.com/strukturag/libheif/issues/1073) |
|
|
|
|
Patch1: https://github.com/strukturag/libheif/commit/877de6b398198bca387df791b9232922c5721c80.patch |
|
|
|
|
# Fix compilation with libsvtav1 2.0.0. |
|
|
|
|
Patch2: https://github.com/strukturag/libheif/commit/a911b26a902c5f89fee2dc20ac4dfaafcb8144ec.patch |
|
|
|
|
# Backport memory leaks fix from master |
|
|
|
|
Patch3: https://github.com/strukturag/libheif/commit/9598ddeb3dff4e51a9989067e912baf502410cee.patch |
|
|
|
|
Patch4: https://github.com/strukturag/libheif/commit/dfd88deb1d80b4195ef16cddad256f33b46fbe29.patch |
|
|
|
|
Patch5: https://github.com/strukturag/libheif/commit/90955e3118d687fa8c36747a7b349caebc82707d.patch |
|
|
|
|
Patch6: https://github.com/strukturag/libheif/commit/bef5f0f49f9024957189b5b465cd4d07078cd06f.patch |
|
|
|
|
Patch7: https://github.com/strukturag/libheif/commit/50aa08176e44178eeffcb7a66f37d7cad074f51b.patch |
|
|
|
|
|
|
|
|
|
BuildRequires: cmake |
|
|
|
|
BuildRequires: gcc-c++ |
|
|
|
|
BuildRequires: libtool |
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
|
|
|
|
BuildRequires: ninja-build |
|
|
|
|
BuildRequires: pkgconfig(aom) |
|
|
|
|
BuildRequires: pkgconfig(dav1d) |
|
|
|
|
BuildRequires: pkgconfig(libde265) |
|
|
|
|
%if 0%{?fedora} |
|
|
|
|
BuildRequires: pkgconfig(libjpeg) |
|
|
|
|
BuildRequires: pkgconfig(libopenjp2) |
|
|
|
|
BuildRequires: pkgconfig(libpng) |
|
|
|
|
%if ! (0%{?rhel} && 0%{?rhel} <= 9) |
|
|
|
|
BuildRequires: pkgconfig(libsharpyuv) |
|
|
|
|
BuildRequires: pkgconfig(rav1e) |
|
|
|
|
%else |
|
|
|
|
BuildRequires: libjpeg-devel |
|
|
|
|
BuildRequires: pkgconfig(SvtAv1Enc) |
|
|
|
|
%endif |
|
|
|
|
BuildRequires: pkgconfig(libpng) |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) |
|
|
|
|
file format decoder and encoder. |
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
%license COPYING |
|
|
|
|
%doc README.md |
|
|
|
|
%{_libdir}/*.so.%{somajor}{,.*} |
|
|
|
|
%dir %{_libdir}/%{name} |
|
|
|
|
%if ! (0%{?rhel} && 0%{?rhel} <= 9) |
|
|
|
|
%{_libdir}/%{name}/%{name}-rav1e.so |
|
|
|
|
%{_libdir}/%{name}/%{name}-svtenc.so |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
%package -n heif-pixbuf-loader |
|
|
|
|
Summary: HEIF image loader for GTK+ applications |
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
|
|
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} |
|
|
|
|
Requires: gdk-pixbuf2%{?_isa} |
|
|
|
|
|
|
|
|
|
%description -n heif-pixbuf-loader |
|
|
|
|
This package provides a plugin to load HEIF files in GTK+ applications. |
|
|
|
|
|
|
|
|
|
%files -n heif-pixbuf-loader |
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-heif.so |
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
%package tools |
|
|
|
|
Summary: Tools for manipulating HEIF files |
|
|
|
|
License: MIT |
|
|
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} |
|
|
|
|
Requires: shared-mime-info |
|
|
|
|
|
|
|
|
|
%description tools |
|
|
|
|
This package provides tools for manipulating HEIF files. |
|
|
|
|
|
|
|
|
|
%files tools |
|
|
|
|
%{_bindir}/heif-* |
|
|
|
|
%{_mandir}/man1/heif-* |
|
|
|
|
%{_datadir}/thumbnailers/heif.thumbnailer |
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
%if %{with hevc} |
|
|
|
|
%package hevc |
|
|
|
|
Summary: HEVC codec support for HEIC files |
|
|
|
|
BuildRequires: pkgconfig(libde265) |
|
|
|
|
BuildRequires: pkgconfig(x265) |
|
|
|
|
Supplements: %{name} |
|
|
|
|
|
|
|
|
|
Requires: shared-mime-info |
|
|
|
|
%description hevc |
|
|
|
|
This package adds support for HEVC-encoded HEIC files to applications |
|
|
|
|
that use %{name} to read HEIF image files. |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
HEIF is a image format using HEVC image coding for the best compression ratios. |
|
|
|
|
libheif uses libde265 for the actual image decoding and x265 for encoding. |
|
|
|
|
Alternative codecs for, e.g., AVC and JPEG can be provided as plugins. |
|
|
|
|
%files hevc |
|
|
|
|
%{_libdir}/%{name}/%{name}-libde265.so |
|
|
|
|
%{_libdir}/%{name}/%{name}-x265.so |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
%package devel |
|
|
|
|
Summary: Development files for %{name} |
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} |
|
|
|
|
|
|
|
|
|
%description devel |
|
|
|
|
The %{name}-devel package contains libraries and header files for |
|
|
|
|
developing applications that use %{name}. |
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
|
%{_includedir}/%{name}/ |
|
|
|
|
%{_libdir}/cmake/%{name}/ |
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc |
|
|
|
|
%{_libdir}/*.so |
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%autosetup -p1 |
|
|
|
|
NOCONFIGURE=1 ./autogen.sh |
|
|
|
|
%setup -q |
|
|
|
|
%if %{without hevc} |
|
|
|
|
%patch 0 -p1 |
|
|
|
|
%endif |
|
|
|
|
%patch 1 -p1 |
|
|
|
|
%patch 2 -p1 |
|
|
|
|
%patch 3 -p1 |
|
|
|
|
%patch 4 -p1 |
|
|
|
|
%patch 5 -p1 |
|
|
|
|
%patch 6 -p1 |
|
|
|
|
%patch 7 -p1 |
|
|
|
|
rm -rf third-party/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
%configure --disable-static \ |
|
|
|
|
--enable-local-dav1d \ |
|
|
|
|
%if 0%{?fedora} |
|
|
|
|
--enable-local-rav1e |
|
|
|
|
%cmake \ |
|
|
|
|
-GNinja \ |
|
|
|
|
-DPLUGIN_DIRECTORY=%{_libdir}/%{name} \ |
|
|
|
|
-DWITH_DAV1D=ON \ |
|
|
|
|
-DWITH_DAV1D_PLUGIN=OFF \ |
|
|
|
|
-DWITH_JPEG_DECODER=ON \ |
|
|
|
|
-DWITH_JPEG_ENCODER=ON \ |
|
|
|
|
-DWITH_OpenJPEG_DECODER=ON \ |
|
|
|
|
-DWITH_OpenJPEG_DECODER_PLUGIN=OFF \ |
|
|
|
|
-DWITH_OpenJPEG_ENCODER=ON \ |
|
|
|
|
-DWITH_OpenJPEG_ENCODER_PLUGIN=OFF \ |
|
|
|
|
%if ! (0%{?rhel} && 0%{?rhel} <= 9) |
|
|
|
|
-DWITH_RAV1E=ON \ |
|
|
|
|
-DWITH_SvtEnc=ON \ |
|
|
|
|
%endif |
|
|
|
|
-DWITH_UNCOMPRESSED_CODEC=ON \ |
|
|
|
|
%{?with_check:-DBUILD_TESTING=ON -DWITH_REDUCED_VISIBILITY=OFF} \ |
|
|
|
|
%{?with_hevc:-DWITH_LIBDE265_PLUGIN:BOOL=ON -DWITH_X265_PLUGIN:BOOL=ON} \ |
|
|
|
|
-Wno-dev |
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
|
%cmake_build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
%make_install |
|
|
|
|
find %buildroot -name '*.la' -or -name '*.a' | xargs rm -f |
|
|
|
|
%cmake_install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets |
|
|
|
|
%if %{with check} |
|
|
|
|
%check |
|
|
|
|
# Tests are not yet ported to CMake |
|
|
|
|
%ctest |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
%license COPYING |
|
|
|
|
%doc README.md |
|
|
|
|
%{_bindir}/heif-convert |
|
|
|
|
%{_bindir}/heif-enc |
|
|
|
|
%{_bindir}/heif-info |
|
|
|
|
%{_bindir}/heif-thumbnailer |
|
|
|
|
%{_libdir}/*.so.1* |
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-heif.* |
|
|
|
|
%{_datadir}/mime/packages/*.xml |
|
|
|
|
%{_datadir}/thumbnailers/ |
|
|
|
|
%{_mandir}/man1/heif-* |
|
|
|
|
%changelog |
|
|
|
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.6-2 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
|
%{_includedir}/* |
|
|
|
|
%{_libdir}/pkgconfig/libheif.pc |
|
|
|
|
%{_libdir}/*.so |
|
|
|
|
* Sat Apr 13 2024 Robert-André Mauchin <zebob.m@gmail.com> - 1.17.6-`1 |
|
|
|
|
- Update to 1.17.6 |
|
|
|
|
- Security fix for CVE-2024-25269 |
|
|
|
|
- Close: rhbz#2255512 |
|
|
|
|
- Fix: rhbz#2267897 |
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.5-4 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.5-3 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
* Fri Jan 12 2024 Fabio Valentini <decathorpe@gmail.com> - 1.17.5-2 |
|
|
|
|
- Rebuild for dav1d 1.3.0 |
|
|
|
|
|
|
|
|
|
* Fri Dec 15 2023 Dominik Mierzejewski <dominik@greysector.net> - 1.17.5-2 |
|
|
|
|
- Update to 1.17.5 (rhbz#2244583) |
|
|
|
|
- Backport fixes for: CVE-2023-49460 (rhbz#2253575, rhbz#2253576) |
|
|
|
|
CVE-2023-49462 (rhbz#2253567, rhbz#2253568) |
|
|
|
|
CVE-2023-49463 (rhbz#2253565, rhbz#2253566) |
|
|
|
|
CVE-2023-49464 (rhbz#2253562, rhbz#2253563) |
|
|
|
|
- Simplify conditionals for rav1e and svt-av1 encoders |
|
|
|
|
- Enable JPEG2000 and dav1d decoders/encoders |
|
|
|
|
|
|
|
|
|
* Fri Sep 08 2023 Dominik Mierzejewski <dominik@greysector.net> - 1.16.2-2 |
|
|
|
|
- Enable uncompressed codec (rhbz#2237849) |
|
|
|
|
- Run tests conditionally (requires making all symbols visible) |
|
|
|
|
- Disable HEVC tests when building without HEVC codec |
|
|
|
|
|
|
|
|
|
* Fri Jul 28 2023 Orion Poplawski <orion@nwra.com> - 1.16.2-1 |
|
|
|
|
- Update to 1.16.2 |
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.1-2 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
* Fri May 05 2023 Neal Gompa <ngompa@fedoraproject.org> - 1.16.1-1 |
|
|
|
|
- Update to 1.16.1 |
|
|
|
|
|
|
|
|
|
* Sun Apr 30 2023 Dominik Mierzejewski <dominik@greysector.net> - 1.15.2-2 |
|
|
|
|
- backport fix for issue#590 |
|
|
|
|
|
|
|
|
|
* Tue Apr 11 2023 Sandro <devel@penguinpee.nl> - 1.15.2-1 |
|
|
|
|
- Update to 1.15.2 (RHBZ#2183664) |
|
|
|
|
- Drop patch |
|
|
|
|
|
|
|
|
|
* Fri Mar 17 2023 Neal Gompa <ngompa@fedoraproject.org> - 1.15.1-2 |
|
|
|
|
- Adapt for Fedora |
|
|
|
|
|
|
|
|
|
* Fri Feb 17 2023 Leigh Scott <leigh123linux@gmail.com> - 1.15.1-1 |
|
|
|
|
- Update to 1.15.1 |
|
|
|
|
|
|
|
|
|
* Sat Jan 07 2023 Leigh Scott <leigh123linux@gmail.com> - 1.14.2-1 |
|
|
|
|
- Update to 1.14.2 |
|
|
|
|
- Switch back to autotools to build due to cmake issues (rfbz#6550} |
|
|
|
|
|
|
|
|
|
* Thu Jan 05 2023 Leigh Scott <leigh123linux@gmail.com> - 1.14.1-1 |
|
|
|
|
- Update to 1.14.1 |
|
|
|
|
|
|
|
|
|
* Mon Dec 19 2022 Leigh Scott <leigh123linux@gmail.com> - 1.14.0-4 |
|
|
|
|
- Don't build rav1e and SVT-AV1 as plugins (rfbz#6532) |
|
|
|
|
|
|
|
|
|
* Mon Dec 05 2022 Nicolas Chauvet <kwizart@gmail.com> - 1.14.0-3 |
|
|
|
|
- Fix for SvtAv1Enc in devel - rfbz#6521 |
|
|
|
|
|
|
|
|
|
* Wed Nov 23 2022 Nicolas Chauvet <kwizart@gmail.com> - 1.14.0-2 |
|
|
|
|
- Enable svt-av1 on el9 |
|
|
|
|
|
|
|
|
|
* Tue Nov 15 2022 Leigh Scott <leigh123linux@gmail.com> - 1.14.0-1 |
|
|
|
|
- Update to 1.14.0 |
|
|
|
|
|
|
|
|
|
* Fri Sep 02 2022 Leigh Scott <leigh123linux@gmail.com> - 1.13.0-1 |
|
|
|
|
- Update to 1.13.0 |
|
|
|
|
|
|
|
|
|
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.12.0-6 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg |
|
|
|
|
5.1 |
|
|
|
|
|
|
|
|
|
* Thu Jun 23 2022 Robert-André Mauchin <zebob.m@gmail.com> - 1.12.0-5 |
|
|
|
|
- Rebuilt for new dav1d, rav1e and jpegxl |
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|
* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.12.0-4 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
|
|
|
|
|
|
|
|
@ -167,4 +339,3 @@ find %buildroot -name '*.la' -or -name '*.a' | xargs rm -f
@@ -167,4 +339,3 @@ find %buildroot -name '*.la' -or -name '*.a' | xargs rm -f
|
|
|
|
|
|
|
|
|
|
* Thu Nov 29 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.3.2-1 |
|
|
|
|
- First build |
|
|
|
|
|
|
|
|
|