374b558
%global commit 172d101e103ae1dd6e1ed52aa708b65ba63e386d
374b558
%global shortcommit %(c=%{commit}; echo ${c:0:7})
374b558
fedb63e
Name:           hsakmt
374b558
Version:        1.0.6
e494a27
Release:        6.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
3ca2952
Patch3:         0001-Use-CFLAGS-and-LDFLAGS-specified-in-environment-vari.patch
374b558
18dda65
ExclusiveArch: x86_64 aarch64
Igor Gnatenko a9501ca
BuildRequires:  gcc
Igor Gnatenko a9501ca
BuildRequires:  gcc-c++
374b558
BuildRequires: cmake
374b558
BuildRequires: pciutils-devel
2ed2aee
d1e55e4
%if 0%{?epel} == 7
d1e55e4
# We still the original cmake package on epel, because it provides the
d1e55e4
# %%cmake macro.
d1e55e4
BuildRequires: cmake3
d1e55e4
%global __cmake %{_bindir}/cmake3
d1e55e4
%endif
d1e55e4
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
e494a27
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-6.20171026git172d101
e494a27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e494a27
d1e55e4
* Fri Feb 23 2018 Tom Stellard <tstellar@redhat.com> - 1.0.6-5.20171026git172d101
d1e55e4
- Fix build for epel7
d1e55e4
3ca2952
* Mon Feb 12 2018 Tom Stellard <tstellar@redhat.com> - 1.0.6-4.20171026git172d101
3ca2952
- Fix build flag injection
3ca2952
- rhbz#1543787
3ca2952
18dda65
* Fri Feb 09 2018 Tom Stellard <tstellar@redhat.com> - 1.0.6-3.20171026git172d101
18dda65
- Build for aarch64
18dda65
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