From 6383e6602bd7a0fe3d4d4c7f58e5366ee520961c Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Tue, 7 May 2024 11:11:02 +0200 Subject: [PATCH] rebuilt by autoport with build requirements: libsvt-av1-devel>=2.0.0-1mamba [release 1.17.6-2mamba;Fri May 03 2024] --- libheif-1.17.6-svt-av1-2.0.0.patch | 22 ++++++++++++++++++++++ libheif.spec | 9 ++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 libheif-1.17.6-svt-av1-2.0.0.patch diff --git a/libheif-1.17.6-svt-av1-2.0.0.patch b/libheif-1.17.6-svt-av1-2.0.0.patch new file mode 100644 index 0000000..e3f3374 --- /dev/null +++ b/libheif-1.17.6-svt-av1-2.0.0.patch @@ -0,0 +1,22 @@ +From a911b26a902c5f89fee2dc20ac4dfaafcb8144ec Mon Sep 17 00:00:00 2001 +From: Andrey Semashev +Date: Fri, 15 Mar 2024 17:46:48 +0300 +Subject: [PATCH] Fix compilation with libsvtav1 2.0.0. + +--- + libheif/plugins/encoder_svt.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libheif/plugins/encoder_svt.cc b/libheif/plugins/encoder_svt.cc +index 4597d7b8fc..1ff3bce2d5 100644 +--- a/libheif/plugins/encoder_svt.cc ++++ b/libheif/plugins/encoder_svt.cc +@@ -646,7 +646,7 @@ struct heif_error svt_encode_image(void* encoder_raw, const struct heif_image* i + + if (nclx) { + svt_config.color_description_present_flag = true; +-#if SVT_AV1_VERSION_MAJOR == 1 ++#if SVT_AV1_VERSION_MAJOR >= 1 + svt_config.color_primaries = static_cast(nclx->color_primaries); + svt_config.transfer_characteristics = static_cast(nclx->transfer_characteristics); + svt_config.matrix_coefficients = static_cast(nclx->matrix_coefficients); diff --git a/libheif.spec b/libheif.spec index bf11014..2eec3d1 100644 --- a/libheif.spec +++ b/libheif.spec @@ -1,6 +1,6 @@ Name: libheif Version: 1.17.6 -Release: 1mamba +Release: 2mamba Summary: An HEIF and AVIF file format decoder and encoder Group: System/Libraries Vendor: openmamba @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/strukturag/libheif Source: https://github.com/strukturag/libheif.git/v%{version}/libheif-%{version}.tar.bz2 +Patch0: libheif-1.17.6-svt-av1-2.0.0.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -26,7 +27,9 @@ BuildRequires: libwebp-devel BuildRequires: libx265-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END +BuildRequires: libsvt-av1-devel >= 2.0.0-1mamba BuildRequires: librav1e-devel +BuildRequires: libx265-devel >= 3.6 BuildRequires: cmake %description @@ -53,6 +56,7 @@ This package contains utility applications for %{name}. %prep %setup -q +%patch 0 -p1 -b .svt-av1-2.0.0 %build %cmake -d build \ @@ -103,6 +107,9 @@ This package contains utility applications for %{name}. %{_mandir}/man1/heif-*.1* %changelog +* Fri May 03 2024 Automatic Build System 1.17.6-2mamba +- rebuilt by autoport with build requirements: libsvt-av1-devel>=2.0.0-1mamba + * Wed Dec 20 2023 Automatic Build System 1.17.6-1mamba - automatic version update by autodist