66 lines
1.5 KiB
RPMSpec
66 lines
1.5 KiB
RPMSpec
%global upstreamname hipBLAS-common
|
|
%global rocm_release 6.4
|
|
%global rocm_patch 0
|
|
%global rocm_version %{rocm_release}.%{rocm_patch}
|
|
|
|
Name: hipblas-common
|
|
Version: %{rocm_version}
|
|
Release: 1%{?dist}
|
|
Summary: Common files shared by hipBLAS and hipBLASLt
|
|
Url: https://github.com/ROCm/%{upstreamname}
|
|
License: MIT
|
|
|
|
Source0: %{url}/archive/rocm-%{rocm_version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: rocm-cmake
|
|
|
|
# Only headers, cmake infra
|
|
BuildArch: noarch
|
|
# Only x86_64 works right now:
|
|
ExclusiveArch: x86_64
|
|
|
|
# Problem on SUSE, nothing really to compile so turn jobs off
|
|
%global _smp_mflags %{nil}
|
|
|
|
%description
|
|
%summary
|
|
|
|
%package devel
|
|
Summary: Libraries and headers for %{name}
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
%description devel
|
|
%{summary}
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{upstreamname}-rocm-%{version}
|
|
|
|
%build
|
|
%cmake -DCMAKE_INSTALL_LIBDIR=share \
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
if [ -f %{buildroot}%{_prefix}/share/doc/hipblas-common/LICENSE.md ]; then
|
|
rm %{buildroot}%{_prefix}/share/doc/hipblas-common/LICENSE.md
|
|
fi
|
|
|
|
%files devel
|
|
%license LICENSE.md
|
|
%{_includedir}/%{name}
|
|
%{_datadir}/cmake/%{name}
|
|
|
|
%changelog
|
|
* Sat Apr 19 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.0-1
|
|
- Update to 6.4.0
|
|
|
|
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
|
|
* Tue Dec 10 2024 Tom Rix <Tom.Rix@amd.com> - 6.3.0-1
|
|
- Initial package
|
|
|