Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libheif for openSUSE:Factory checked in at 2024-10-23 21:08:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libheif (Old) and /work/SRC/openSUSE:Factory/.libheif.new.26871 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libheif" Wed Oct 23 21:08:47 2024 rev:35 rq:1217016 version:1.18.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libheif/libheif.changes 2024-08-21 23:25:21.883955244 +0200 +++ /work/SRC/openSUSE:Factory/.libheif.new.26871/libheif.changes 2024-10-23 21:10:08.694358687 +0200 @@ -1,0 +2,7 @@ +Mon Oct 21 13:25:54 UTC 2024 - pgaj...@suse.com + +- build *-test subpackage with multibuild for running the test suite +- added sources + + _multibuild + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libheif.spec ++++++ --- /var/tmp/diff_new_pack.TVFYxz/_old 2024-10-23 21:10:09.210380110 +0200 +++ /var/tmp/diff_new_pack.TVFYxz/_new 2024-10-23 21:10:09.214380276 +0200 @@ -16,6 +16,15 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + %define gdk_pixbuf_binary_version 2.10.0 %bcond_with x265 %bcond_with kvazaar @@ -59,6 +68,9 @@ BuildRequires: pkgconfig(libde265) BuildRequires: pkgconfig(x265) %endif +%if %{with test} +BuildArch: noarch +%endif %description libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) file @@ -222,7 +234,12 @@ %autosetup -p1 %build +# https://github.com/strukturag/libheif/issues/1281 +sed -i '/add_libheif_test(encode)/d' tests/CMakeLists.txt %cmake \ +%if %{with test} + --preset=testing \ +%else -DWITH_AOM_DECODER=ON \ -DWITH_AOM_DECODER_PLUGIN=ON \ -DWITH_AOM_ENCODER=ON \ @@ -275,9 +292,19 @@ -DCMAKE_CXX_FLAGS="-pthread" \ %endif -DPLUGIN_DIRECTORY=%{_libexecdir}/libheif \ +%endif %nil %cmake_build +%if %{with test} +%check +cd build +export LD_LIBRARY_PATH=$(pwd)/libheif +make test +%endif + +%if !%{with test} + %install %cmake_install %if %{with x265} @@ -377,3 +404,5 @@ %{_mandir}/man1/heif-thumbnailer.1%{?ext_man} %endif +%endif + ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>