%global commit ae8c52e5603d2afdcf33a75d9bfe42914541d9be %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global debug_package %{nil} Name: rocm-cmake Version: 0.1 Release: 0.3%{?dist} Summary: rocm cmake modules License: MIT URL: https://github.com/RadeonOpenCompute/rocm-cmake Source0: https://github.com/RadeonOpenCompute/rocm-cmake/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: cmake %description rocm cmake modules %prep %autosetup -n rocm-cmake-%{commit} -p1 %build mkdir build cd build %cmake .. -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr %install cd build cmake --build . --target install mkdir -p %{buildroot}/%{_libdir}/cmake/rocm # Move cmake files to standard location. mv %{buildroot}/%{_datadir}/rocm/cmake/* %{buildroot}%{_libdir}/cmake/rocm %files %doc README.md %{_libdir}/cmake/rocm %changelog * Fri Feb 16 2018 Tom Stellard - 0.1-0.3 - Install cmake files to _libdir/cmake/rocm * Thu Feb 15 2018 Tom Stellard - 0.1-0.2 - Initial version