commit 631e2fa521d672dc54e9e8ed7d27c5b47cb96830
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Apr 10 14:47:57 2023 +0100
rename main package to libheif-freeworld to avoid conflict in koji
.gitignore | 1 +
910588338cf2a17207c09b315baddf003e86316c.patch | 22 +++
libheif-freeworld.spec | 188 +++++++++++++++++++++++++
sources | 1 +
4 files changed, 212 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4640651 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libheif-1.15.1.tar.gz
diff --git a/910588338cf2a17207c09b315baddf003e86316c.patch
b/910588338cf2a17207c09b315baddf003e86316c.patch
new file mode 100644
index 0000000..6d02e0b
--- /dev/null
+++ b/910588338cf2a17207c09b315baddf003e86316c.patch
@@ -0,0 +1,22 @@
+From 910588338cf2a17207c09b315baddf003e86316c Mon Sep 17 00:00:00 2001
+From: Dirk Farin <dirk.farin(a)gmail.com>
+Date: Sat, 18 Feb 2023 12:45:19 +0100
+Subject: [PATCH] calm compiler warning (#787)
+
+---
+ libheif/heif_colorconversion.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libheif/heif_colorconversion.cc b/libheif/heif_colorconversion.cc
+index 8245cb1ff..65f975612 100644
+--- a/libheif/heif_colorconversion.cc
++++ b/libheif/heif_colorconversion.cc
+@@ -1870,7 +1870,7 @@ Op_mono_to_RGB24_32::convert_colorspace(const
std::shared_ptr<const HeifPixelIma
+ return nullptr;
+ }
+
+- const uint8_t* in_y, * in_a;
++ const uint8_t* in_y, * in_a = nullptr;
+ int in_y_stride = 0, in_a_stride;
+
+ uint8_t* out_p;
diff --git a/libheif-freeworld.spec b/libheif-freeworld.spec
new file mode 100644
index 0000000..32aaf27
--- /dev/null
+++ b/libheif-freeworld.spec
@@ -0,0 +1,188 @@
+Name: libheif-freeworld
+Version: 1.15.1
+Release: 3%{?dist}
+Summary: HEVC support for HEIF and AVIF file format decoder and encoder
+
+License: LGPL-3.0-or-later and MIT
+URL:
https://github.com/strukturag/libheif
+Source0: %{url}/archive/v%{version}/libheif-%{version}.tar.gz
+# gcc-13 fix
+Patch0: %{url}/commit/910588338cf2a17207c09b315baddf003e86316c.patch
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: ninja-build
+BuildRequires: pkgconfig(libde265)
+BuildRequires: pkgconfig(x265)
+Requires: libheif%{_isa} = %{version}
+Provides: libheif-hevc = %{version}
+Provides: libheif-hevc%{_isa} = %{version}
+
+%description
+libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format)
+file format decoder and encoder.
+
+This package adds support for HEVC-encoded HEIC files to applications
+that use libheif to read HEIF image files.
+
+%prep
+%autosetup -p1 -n libheif-%{version}
+rm -rf third-party/
+
+%build
+%cmake \
+ -GNinja \
+ -DPLUGIN_DIRECTORY=%{_libdir}/libheif \
+ -DWITH_LIBDE265_PLUGIN:BOOL=ON -DWITH_X265_PLUGIN:BOOL=ON \
+ -DWITH_EXAMPLES:BOOL=OFF \
+ -Wno-dev
+
+%cmake_build
+
+%install
+%cmake_install
+pushd %{buildroot}
+rm -rv .%{_includedir}/libheif
+rm -rv .%{_libdir}/cmake/libheif
+rm -rv .%{_libdir}/libheif.so*
+rm -v .%{_libdir}/pkgconfig/libheif.pc
+rm -rv .%{_datadir}/thumbnailers
+popd
+
+%check
+# Tests are not yet ported to CMake
+#ctest
+
+%files
+%license COPYING
+%doc README.md
+%{_libdir}/libheif/libheif-libde265.so
+%{_libdir}/libheif/libheif-x265.so
+
+%changelog
+* Sat Apr 08 2023 Dominik Mierzejewski <dominik(a)greysector.net> - 1.15.3-1
+- rename main package to libheif-freeworld to avoid conflict in koji
+
+* Wed Mar 22 2023 Dominik Mierzejewski <dominik(a)greysector.net> - 1.15.1-2.1
+- drop explicit dependency on main package from -hevc subpackage
+
+* Fri Mar 17 2023 Neal Gompa <ngompa(a)fedoraproject.org> - 1.15.1-2
+- Adapt for Fedora
+
+* Fri Feb 17 2023 Leigh Scott <leigh123linux(a)gmail.com> - 1.15.1-1
+- Update to 1.15.1
+
+* Sat Jan 07 2023 Leigh Scott <leigh123linux(a)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(a)gmail.com> - 1.14.1-1
+- Update to 1.14.1
+
+* Mon Dec 19 2022 Leigh Scott <leigh123linux(a)gmail.com> - 1.14.0-4
+- Don't build rav1e and SVT-AV1 as plugins (rfbz#6532)
+
+* Mon Dec 05 2022 Nicolas Chauvet <kwizart(a)gmail.com> - 1.14.0-3
+- Fix for SvtAv1Enc in devel - rfbz#6521
+
+* Wed Nov 23 2022 Nicolas Chauvet <kwizart(a)gmail.com> - 1.14.0-2
+- Enable svt-av1 on el9
+
+* Tue Nov 15 2022 Leigh Scott <leigh123linux(a)gmail.com> - 1.14.0-1
+- Update to 1.14.0
+
+* Fri Sep 02 2022 Leigh Scott <leigh123linux(a)gmail.com> - 1.13.0-1
+- Update to 1.13.0
+
+* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)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(a)gmail.com> - 1.12.0-5
+- Rebuilt for new dav1d, rav1e and jpegxl
+
+* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.12.0-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Thu Nov 25 2021 Nicolas Chauvet <kwizart(a)gmail.com> - 1.12.0-3
+- Rebuilt
+
+* Tue Aug 03 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.12.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Mon Jun 14 2021 Leigh Scott <leigh123linux(a)gmail.com> - 1.12.0-1
+- Update to 1.12.0
+
+* Sun Jun 13 2021 Robert-André Mauchin <zebob.m(a)gmail.com> - 1.11.0-3
+- Rebuild for new aom
+
+* Wed Apr 14 2021 Leigh Scott <leigh123linux(a)gmail.com> - 1.11.0-2
+- Rebuild for new x265
+
+* Sat Feb 20 2021 Leigh Scott <leigh123linux(a)gmail.com> - 1.11.0-1
+- Update to 1.11.0
+
+* Wed Feb 03 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.10.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Sat Dec 19 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.10.0-1
+- Update to 1.10.0
+
+* Mon Dec 14 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.9.1-3
+- Actually do the dav1d rebuild
+
+* Mon Dec 14 2020 Robert-André Mauchin <zebob.m(a)gmail.com> - 1.9.1-2
+- Rebuild for dav1d SONAME bump
+
+* Tue Oct 27 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.9.1-1
+- Update to 1.9.1
+
+* Fri Aug 28 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.8.0-1
+- Update to 1.8.0
+
+* Tue Aug 18 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.7.0-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Wed Jul 08 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.7.0-2
+- Rebuilt
+
+* Thu Jun 04 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.7.0-1
+- Update to 1.7.0
+
+* Sun May 31 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.6.2-3
+- Rebuild for new x265 version
+
+* Sun Feb 23 2020 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> -
1.6.2-2
+- Rebuild for x265
+
+* Mon Feb 10 2020 Leigh Scott <leigh123linux(a)gmail.com> - 1.6.2-1
+- Update to 1.6.2
+
+* Tue Feb 04 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.6.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Thu Nov 28 2019 Leigh Scott <leigh123linux(a)googlemail.com> - 1.6.0-1
+- Update to 1.6.0
+- Rebuilt for x265
+
+* Sun Nov 03 2019 Leigh Scott <leigh123linux(a)googlemail.com> - 1.5.1-1
+- Update to 1.5.1
+
+* Fri Aug 09 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.4.0-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Tue Jul 02 2019 Nicolas Chauvet <kwizart(a)gmail.com> - 1.4.0-3
+- Rebuilt for x265
+
+* Mon Mar 04 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.4.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Feb 28 2019 Leigh Scott <leigh123linux(a)googlemail.com> - 1.4.0-1
+- Update to 1.4.0
+
+* Thu Jan 03 2019 Leigh Scott <leigh123linux(a)googlemail.com> - 1.3.2-2
+- Rebuild for new x265 for el7
+
+* Thu Nov 29 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 1.3.2-1
+- First build
+
diff --git a/sources b/sources
index e69de29..7821299 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libheif-1.15.1.tar.gz) =
966a95dacc12722d2dd37d449125c3df08f9e9be76ec2dc6762866bf285442c33836046df884b50cc14c799dfdcc1d5c9b16e4f9f36a2dbaf422df089756a234