%global upstreamname rocm-core %global rocm_release 6.0 %global rocm_patch 0 %global rocm_version %{rocm_release}.%{rocm_patch} Name: rocm-core Version: %{rocm_version} Release: %autorelease 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 Patch0: 0001-prepare-rocm-core-cmake-for-fedora.patch BuildRequires: cmake BuildRequires: clang # 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 %files %license copyright %{_libdir}/lib%{name}.so.* %files devel %{_includedir}/rocm_version.h %{_libdir}/lib%{name}.so %changelog %autochangelog