Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 522a8b219d | |||
| 39b86760c0 |
21
rocjpeg.spec
21
rocjpeg.spec
@@ -38,7 +38,7 @@
|
||||
|
||||
Name: %{rocjpeg_name}
|
||||
Version: %{rocm_version}
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: A high-performance jpeg decode library for AMD’s GPUs
|
||||
|
||||
Url: https://github.com/ROCm/rocJPEG
|
||||
@@ -56,11 +56,18 @@ BuildRequires: rocm-runtime-devel
|
||||
BuildRequires: rocm-rpm-macros
|
||||
|
||||
%if %{with check}
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: ffmpeg
|
||||
BuildRequires: libavcodec-devel
|
||||
BuildRequires: libavformat-devel
|
||||
BuildRequires: Mesa-libva
|
||||
%else
|
||||
BuildRequires: ffmpeg-free
|
||||
BuildRequires: libavcodec-free-devel
|
||||
BuildRequires: libavformat-free-devel
|
||||
BuildRequires: mesa-va-drivers
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with ninja}
|
||||
%if 0%{?fedora}
|
||||
@@ -106,12 +113,7 @@ sed -i "s|\(llvm/bin/clang++\)|\1 CACHE STRING \"ROCm Compiler path\"|" CMakeLis
|
||||
sed -i "s|/opt/amdgpu/include NO_DEFAULT_PATH|/usr/include|" cmake/FindLibva.cmake
|
||||
|
||||
# Fix up sample
|
||||
sed -i -e 's@${ROCM_PATH}/lib/llvm/bin/clang++@/usr/bin/hipcc@' samples/*/CMakeLists.txt
|
||||
sed -i -e 's@{ROCM_PATH}/lib@/usr/lib64@' samples/*/CMakeLists.txt test/CMakeLists.txt
|
||||
sed -i -e 's@{ROCM_PATH}/include/rocjpeg@/usr/include/rocjpeg@' samples/*/CMakeLists.txt test/CMakeLists.txt
|
||||
sed -i -e 's@set(ROCM_PATH /opt/rocm@set(__ROCM_PATH /opt/rocm@' samples/*/CMakeLists.txt test/CMakeLists.txt
|
||||
# Fix up test
|
||||
sed -i -e 's@{ROCM_PATH}/share@/usr/share@' test/CMakeLists.txt
|
||||
|
||||
# cpack cruft in the middle of the configure, this breaks TW
|
||||
sed -i -e 's@file(READ "/etc/os-release" OS_RELEASE)@#file(READ "/etc/os-release" OS_RELEASE)@' CMakeLists.txt
|
||||
@@ -127,7 +129,8 @@ sed -i -e 's@${LINK_LIBRARY_LIST} ${LIBVA_DRM_LIBRARY}@${LINK_LIBRARY_LIST} ${LI
|
||||
|
||||
%cmake %{cmake_generator} \
|
||||
-DCMAKE_CXX_COMPILER=hipcc \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_lib}
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
||||
-DROCM_PATH=%{_prefix}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
@@ -174,6 +177,10 @@ fi
|
||||
%{_datadir}/rocjpeg
|
||||
|
||||
%changelog
|
||||
* Sat Aug 15 2025 Egbert Eich <eich@suse.com> - 6.4.0-7
|
||||
- Fix dependencies on SUSE when 'check' is enabled.
|
||||
- Set ROCM_PATH instead of patching it.
|
||||
|
||||
* Thu Aug 14 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.0-6
|
||||
- change --with test to --with check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user