Files
rocm-systems/RPM/libhsakmt.spec
T
Kent Russell 6ceed7def3 libhsakmt - Add make option to package thunk as RPM
Add an option to libhsakmt to allow the thunk to be packaged as an RPM.
The default will remain being built as-is, but this can now be packaged
as an RPM by using "make src rpm" . build_thunk.sh will be modified to
reflect this new option.

Change-Id: I38e03d10cfb5035bdf0a87635a784c47a709a5b6
2015-10-29 07:49:13 -04:00

31 lines
629 B
RPMSpec

%define name libhsakmt
%define version 1.6.0
%define thunkroot %{getenv:THUNK_ROOT}
Name: %{name}
Version: %{version}
Release: 1
Summary: Thunk libraries for AMD KFD
Group: System Environment/Libraries
License: Advanced Micro Devices Inc.
%description
This package includes the libhsakmt (Thunk) libraries
for AMD KFD
%prep
%setup -T -D -c -n %{name}
%install
mkdir -p $RPM_BUILD_ROOT
cp -R %{thunkroot}/build/rpm/libhsakmt/usr $RPM_BUILD_ROOT
find $RPM_BUILD_ROOT \! -type d | sed "s|$RPM_BUILD_ROOT||"> fw.list
%clean
rm -rf $RPM_BUILD_ROOT
%files -f fw.list
%defattr(-,root,root,-)