374b558
%global commit 172d101e103ae1dd6e1ed52aa708b65ba63e386d
374b558
%global shortcommit %(c=%{commit}; echo ${c:0:7})
374b558
fedb63e
Name:           hsakmt
374b558
Version:        1.0.6
6df588c
Release:        2.20171026git%{shortcommit}%{?dist}
2ed2aee
Summary:        AMD's HSA thunk library
2ed2aee
374b558
License:        MIT
374b558
URL:            https://github.com/RadeonOpenCompute/ROCm
ca0726a
Source0:        https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/%{commit}/lib%{name}-%{shortcommit}.tar.gz
374b558
Patch0:         0001-Fix-install-targets.patch
374b558
Patch1:         0001-CMakeLists-Set-the-correct-default-version.patch
6df588c
Patch2:         0001-Fix-build-with-gcc-8.patch
374b558
374b558
ExclusiveArch: x86_64
374b558
BuildRequires: cmake
374b558
BuildRequires: pciutils-devel
2ed2aee
2ed2aee
%description
374b558
This package includes the libhsakmt (Thunk) libraries
374b558
for AMD KFD
374b558
2ed2aee
2ed2aee
%package devel
2ed2aee
Summary: AMD HSA thunk library development package
374b558
Requires: %{name}%{?_isa} = %{version}-%{release}
2ed2aee
2ed2aee
%description devel
2ed2aee
Development library for hsakmt.
2ed2aee
2ed2aee
%prep
374b558
%autosetup -n  ROCT-Thunk-Interface-%{commit} -p1
2ed2aee
2ed2aee
%build
374b558
mkdir build
374b558
cd build
2ed2aee
374b558
%cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
374b558
%make_build
2ed2aee
2ed2aee
%install
374b558
cd build
374b558
%make_install
2ed2aee
2ed2aee
%post -p /sbin/ldconfig
2ed2aee
%postun -p /sbin/ldconfig
2ed2aee
2ed2aee
%files
374b558
%doc README.md
374b558
%license LICENSE.md
374b558
%{_libdir}/libhsakmt.so.%{version}
374b558
%{_libdir}/libhsakmt.so.1
2ed2aee
2ed2aee
%files devel
374b558
%{_libdir}/libhsakmt.so
374b558
%{_includedir}/libhsakmt/hsakmt.h
374b558
%{_includedir}/libhsakmt/hsakmttypes.h
374b558
%{_includedir}/libhsakmt/linux/kfd_ioctl.h
2ed2aee
2ed2aee
%changelog
6df588c
* Mon Feb 05 2018 Tom Stellard <tstellar@redhat.com> - 1.0.6-2.20171026git172d101
6df588c
- Fix build with gcc 8
6df588c
374b558
* Thu Oct 26 2017 Tom Stellard <tstellar@redhat.com> - 1.0.6-1.20171026git172d101
374b558
- Update with latest code from https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface
374b558
27e8f38
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-9
27e8f38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
27e8f38
99ae3e1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
99ae3e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
99ae3e1
a46504b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
a46504b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a46504b
2720cfb
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
2720cfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2720cfb
7e55b92
* Fri Nov 13 2015 Oded Gabbay <oded.gabbay@gmail.com> 1.0.0-5
7e55b92
- Don't build for arm and i686
7e55b92
fedb63e
* Fri Nov 13 2015 Oded Gabbay <oded.gabbay@gmail.com> 1.0.0-4
fedb63e
- Rename package back to hsakmt
fedb63e
2ed2aee
* Sun Nov 1 2015 Oded Gabbay <oded.gabbay@gmail.com> 1.0.0-3
2ed2aee
- Rename package to libhsakmt
2ed2aee
2ed2aee
* Thu Oct 29 2015 Oded Gabbay <oded.gabbay@gmail.com> 1.0.0-2
2ed2aee
- Changed doc to license
2ed2aee
- Added GPLv2 to license
2ed2aee
- Changed RPM_BUILD_ROOT to {buildroot}
2ed2aee
2ed2aee
* Sat Oct 24 2015 Oded Gabbay <oded.gabbay@gmail.com> 1.0.0-1
2ed2aee
- Initial release of hsakmt, ver. 1.0.0
374b558