Build for TW

Signed-off-by: Tom Rix <Tom.Rix@amd.com>
This commit is contained in:
2024-11-11 11:04:04 -08:00
parent 3657a5d62c
commit 1f3373abfc

View File

@@ -35,7 +35,11 @@
Name: rocsparse
Version: %{rocm_version}
%if 0%{?is_opensuse} || 0%{?rhel} && 0%{?rhel} < 10
Release: 1%{?dist}
%else
Release: %autorelease
%endif
Summary: SPARSE implementation for ROCm
Url: https://github.com/ROCm/%{upstreamname}
License: MIT
@@ -102,6 +106,11 @@ for gpu in %{rocm_gpu_list}
do
module load rocm/$gpu
%cmake \
-DCMAKE_CXX_COMPILER=hipcc \
-DCMAKE_C_COMPILER=hipcc \
-DCMAKE_LINKER=%rocmllvm_bindir/ld.lld \
-DCMAKE_AR=%rocmllvm_bindir/llvm-ar \
-DCMAKE_RANLIB=%rocmllvm_bindir/llvm-ranlib \
-DCMAKE_BUILD_TYPE=%build_type \
-DCMAKE_PREFIX_PATH=%{rocmllvm_cmakedir}/.. \
-DCMAKE_SKIP_RPATH=ON \
@@ -140,9 +149,12 @@ find %{buildroot} -name '%{name}io-*' | sed -f br.sed >> %{name}.test
find %{buildroot} -name '%{name}_*' | sed -f br.sed >> %{name}.test
%endif
if [ -f %{buildroot}%{_prefix}/share/doc/rocsparse/LICENSE.md ]; then
rm %{buildroot}%{_prefix}/share/doc/rocsparse/LICENSE.md
fi
%files -f %{name}.files
%license LICENSE.md
%exclude %{_docdir}/%{name}/LICENSE.md
%files devel -f %{name}.devel
%doc README.md
@@ -153,4 +165,10 @@ find %{buildroot} -name '%{name}_*' | sed -f br.sed >> %{name}.test
%endif
%changelog
%if 0%{?is_opensuse}
* Sun Nov 10 2024 Tom Rix <Tom.Rix@amd.com> - 6.2.1-1
- Stub for tumbleweed
%else
%autochangelog
%endif