From d1e55e44baeed9e6ea73a7e09dfa5915e40ecb9e Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Feb 23 2018 17:34:55 +0000 Subject: Fix build for epel7 --- diff --git a/hsakmt.spec b/hsakmt.spec index 0c49f2b..a6c1103 100644 --- a/hsakmt.spec +++ b/hsakmt.spec @@ -3,7 +3,7 @@ Name: hsakmt Version: 1.0.6 -Release: 4.20171026git%{shortcommit}%{?dist} +Release: 5.20171026git%{shortcommit}%{?dist} Summary: AMD's HSA thunk library License: MIT @@ -18,6 +18,13 @@ ExclusiveArch: x86_64 aarch64 BuildRequires: cmake BuildRequires: pciutils-devel +%if 0%{?epel} == 7 +# We still the original cmake package on epel, because it provides the +# %%cmake macro. +BuildRequires: cmake3 +%global __cmake %{_bindir}/cmake3 +%endif + %description This package includes the libhsakmt (Thunk) libraries for AMD KFD @@ -60,6 +67,9 @@ cd build %{_includedir}/libhsakmt/linux/kfd_ioctl.h %changelog +* Fri Feb 23 2018 Tom Stellard - 1.0.6-5.20171026git172d101 +- Fix build for epel7 + * Mon Feb 12 2018 Tom Stellard - 1.0.6-4.20171026git172d101 - Fix build flag injection - rhbz#1543787