diff --git a/intel-gmmlib-22.3.10.tar.gz b/intel-gmmlib-22.3.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f5bb18ccf918cd4963050f1d08150bfb581102ef Binary files /dev/null and b/intel-gmmlib-22.3.10.tar.gz differ diff --git a/intel-gmmlib.spec b/intel-gmmlib.spec new file mode 100644 index 0000000000000000000000000000000000000000..87c57d89590407b39f4d8814ae780475efd0600a --- /dev/null +++ b/intel-gmmlib.spec @@ -0,0 +1,73 @@ +# Copyright (C) 2023 Intel Corporation +# SPDX-License-Identifier: MIT +# +# This package is downstreamed from Intel GPU RHEL9.2 Package repository: +# https://dgpu-docs.intel.com/driver/installation.html#rhel-install-steps + +%global pkg_name intel-gmmlib +%global lib_ver 22.3.10 +%global lib_rel 1 + +Name: %{pkg_name} +Version: %{lib_ver} +Release: %{lib_rel}%{?dist} +Summary: Intel Graphics Memory Management Library + +License: MIT +URL: https://github.com/intel/gmmlib +Source0: %{name}-%{version}.tar.gz + +# This package relies on intel asm +ExclusiveArch: x86_64 i686 + +BuildRequires: cmake +BuildRequires: make +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 -n %{name}-%{version} + +%build +mkdir build +pushd build +%cmake .. \ + -DRUN_TEST_SUITE:BOOL=False \ + -DCMAKE_BUILD_TYPE=Release +%make_build +popd + +%install +pushd build +%make_install +popd + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license LICENSE.md +%doc README.rst Security.md +%{_libdir}/libigdgmm.so.* + +%files devel +%{_includedir}/igdgmm +%{_libdir}/libigdgmm.so +%{_libdir}/pkgconfig/igdgmm.pc + +%changelog +* Fri Nov 17 2023 Aubrey Li - 22.3.10-1 +- Initial spec file