Last active
March 5, 2023 23:26
-
-
Save estelsmith/782877dcf5c0c8cd5dc471072025966d to your computer and use it in GitHub Desktop.
intel-gmmlib specfile for almalinux 9.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%undefine __cmake_in_source_build | |
Name: intel-gmmlib | |
Version: 22.3.3 | |
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 | |
%cmake \ | |
-DRUN_TEST_SUITE:BOOL=False | |
%cmake_build | |
%install | |
%cmake_install | |
%ldconfig_scriptlets | |
%files | |
%license LICENSE.md | |
%doc README.rst | |
%{_libdir}/libigdgmm.so.12* | |
%files devel | |
%{_includedir}/igdgmm | |
%{_libdir}/libigdgmm.so | |
# We don't use the static library | |
%exclude %{_libdir}/libgmm_umd.a | |
%{_libdir}/pkgconfig/igdgmm.pc | |
%changelog | |
* Sun Mar 05 2023 Estel Smith <[email protected]> - 22.3.3-1 | |
- Build it mahself |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment