From 3ddf6ddd7df67fc8cb65ebbed4f4517c12fd0805 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Tue, 19 Aug 2025 07:51:26 -0700 Subject: [PATCH] Fix build --with check on SUSE Signed-off-by: Tom Rix --- rocdecode.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/rocdecode.spec b/rocdecode.spec index 49dae0f..28497e4 100644 --- a/rocdecode.spec +++ b/rocdecode.spec @@ -38,7 +38,7 @@ Name: %{rocdecode_name} Version: %{rocm_version} -Release: 5%{?dist} +Release: 6%{?dist} Summary: High-performance video decode SDK for AMD GPUs Url: https://github.com/ROCm/rocDecode @@ -58,12 +58,20 @@ BuildRequires: rocm-runtime-devel BuildRequires: rocm-rpm-macros %if %{with check} +%if 0%{?suse_version} +BuildRequires: ffmpeg +BuildRequires: libavcodec-devel +BuildRequires: libavformat-devel +BuildRequires: libavutil-devel +BuildRequires: Mesa-libva +%else BuildRequires: ffmpeg-free BuildRequires: libavcodec-free-devel BuildRequires: libavformat-free-devel BuildRequires: libavutil-free-devel BuildRequires: mesa-va-drivers %endif +%endif %if %{with ninja} %if 0%{?fedora} @@ -139,6 +147,7 @@ if [ -f %{buildroot}%{_prefix}/share/doc/packages/%{name}-asan/LICENSE ]; then rm %{buildroot}%{_prefix}/share/doc/packages/%{name}-asan/LICENSE fi +# Need to install the sample first %if %{with check} %check %ctest @@ -155,6 +164,9 @@ fi %exclude %{_datadir}/rocdecode/samples %changelog + * Sat Aug 16 2025 Egbert Eich - 6.4.0-6 + - Fix dependencies on SUSE when 'check' is enabled. + * Thu Aug 14 2025 Tom Rix - 6.4.0-5 - change --with test to --with check