Fix build --with check on SUSE
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
This commit is contained in:
@@ -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 <eich@suse.com> - 6.4.0-6
|
||||
- Fix dependencies on SUSE when 'check' is enabled.
|
||||
|
||||
* Thu Aug 14 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.0-5
|
||||
- change --with test to --with check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user