%global upstreamname rocm-core %global rocm_release 6.3 %global rocm_patch 1 %global rocm_version %{rocm_release}.%{rocm_patch} Name: rocm-core Version: %{rocm_version} Release: 1%{?dist} Summary: A utility to get the ROCm release version 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++ # Only x86_64 works right now: ExclusiveArch: x86_64 %description %{summary} %package devel Summary: Libraries and headers for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary} %prep %autosetup -p1 -n %{upstreamname}-rocm-%{version} %build %cmake -DROCM_VERSION=%{rocm_version} %cmake_build %install %cmake_install rm -rf %{buildroot}/%{_prefix}/.info rm -rf %{buildroot}/%{_libdir}/rocmmod rm -rf %{buildroot}/%{_docdir}/*/LICENSE.txt rm -rf %{buildroot}/%{_libexecdir}/%{name} mv %{buildroot}/%{_includedir}/%{name}/*.h %{buildroot}/%{_includedir}/ rm -rf %{buildroot}/%{_includedir}/%{name} %files %license copyright %{_libdir}/lib%{name}.so.* %files devel %dir %{_libdir}/cmake/%{name} %{_includedir}/*.h %{_libdir}/lib%{name}.so %{_libdir}/cmake/%{name}/*.cmake %changelog * Thu Dec 26 2024 Tom Rix - 6.3.1-1 - Update to 6.3.1 * Tue Dec 10 2024 Tom Rix - 6.3.0-1 - Update to 6.3