Name: intel-gmmlib
Version: 19.4.1
Release: 1%{?dist}
Summary: Intel Graphics Memory Management Library
License: MIT and BSD
URL: https://github.com/intel/gmmlib
Source0: %{url}/archive/%{name}-%{version}.tar.gz
# This package relies on intel asm
ExclusiveArch: x86_64 i686
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
%description
The Intel Graphics Memory Management Library provides device specific
and buffer management for the Intel Graphics Compute Runtime for OpenCL
and the Intel Media Driver for VAAPI.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n gmmlib-intel-gmmlib-%{version}
# Fix license perm
chmod -x LICENSE.md README.rst
# Fix source code perm
find Source -name "*.cpp" -exec chmod -x {} ';'
find Source -name "*.h" -exec chmod -x {} ';'
%build
mkdir build
pushd build
%cmake \
-DRUN_TEST_SUITE:BOOL=False \
..
%make_build
popd
%install
pushd build
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
popd
%ldconfig_scriptlets
%files
%license LICENSE.md
%doc README.rst
%{_libdir}/libigdgmm.so.11*
%files devel
%{_includedir}/igdgmm
%{_libdir}/libigdgmm.so
# We don't use the static library
%exclude %{_libdir}/libgmm_umd.a
%{_libdir}/pkgconfig/igdgmm.pc
%changelog
* Thu Jan 09 2020 Nicolas Chauvet <kwizart@gmail.com> - 19.4.1-1
- Update to 19.4.1
* Thu Dec 19 2019 Nicolas Chauvet <kwizart@gmail.com> - 19.3.4-1
- Update to 19.3.4
* Thu Sep 19 2019 Nicolas Chauvet <kwizart@gmail.com> - 19.3.2-1
- Update to 19.3.2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Jul 05 2019 Nicolas Chauvet <kwizart@gmail.com> - 19.2.3-1
- Update to 19.2.3
* Fri May 10 2019 Nicolas Chauvet <kwizart@gmail.com> - 19.1.2-1
- Update to 19.1.2
* Sat Apr 06 2019 Nicolas Chauvet <kwizart@gmail.com> - 19.1.1-1
- Update to 19.1.1
* Thu Feb 14 2019 Nicolas Chauvet <kwizart@gmail.com> - 18.4.1-1
- Update to 18.4.1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Oct 08 2018 Nicolas Chauvet <kwizart@gmail.com> - 18.3.0-1
- Initial spec file