%global commit fd277f36c0539cc63876166fea71a7cef2204c72 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: rocminfo Version: 1.0.0 Release: 1%{?dist} Summary: ROCm system info utility License: NCSA URL: https://github.com/RadeonOpenCompute/rocminfo Source0: https://github.com/RadeonOpenCompute/rocminfo/archive/1.0.0.tar.gz Patch0: 0001-Fix-rocm-runtime-libdir.patch Patch1: 0001-Use-CXXFLAGS-defined-in-the-environment.patch Patch2: 0001-Convert-rocm-agent-enumerator-to-python3.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: rocm-runtime-devel # We need python3-devel for pathfix.py BuildRequires: python3-devel %description ROCm system info utility %prep %autosetup -n %{name}-%{version} -p1 pathfix.py -i %{__python3} rocm_agent_enumerator %build mkdir build cd build %cmake .. -DROCM_DIR=/usr %make_build %install cd build mkdir -p %{buildroot}%{_bindir} install -m 0755 rocm_agent_enumerator %{buildroot}%{_bindir} install -m 0755 rocminfo %{buildroot}%{_bindir} %files %doc README.md %license License.txt %{_bindir}/rocm_agent_enumerator %{_bindir}/rocminfo %changelog * Mon Mar 05 2018 Tom Stellard - 0.0.1-0.2.20180220gitfd277f3 - Add epel support * Tue Feb 20 2018 Tom Stellard - 0.0.1-0.1.20180220gitfd277f3 - Import snapshot from git