89 lines
2.7 KiB
RPMSpec
89 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package gmmlib
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global somajor 12
|
|
%global libname libigdgmm%{somajor}
|
|
Name: gmmlib
|
|
Version: 22.5.2
|
|
Release: 0
|
|
Summary: Intel Graphics Memory Management Library Package
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/intel/gmmlib
|
|
Source0: %{url}/archive/intel-gmmlib-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
BuildRequires: c++_compiler
|
|
BuildRequires: cmake
|
|
BuildRequires: pkgconfig
|
|
ExclusiveArch: %{ix86} x86_64 %{x86_64}
|
|
|
|
%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 -n %{libname}
|
|
Summary: Intel Graphics Memory Management Library development package
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n %{libname}
|
|
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.
|
|
|
|
This package contains shared library.
|
|
|
|
%package devel
|
|
Summary: Intel Graphics Memory Management Library development package
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libname} = %{version}
|
|
Provides: libigdgmm-devel = %{version}
|
|
Obsoletes: libigdgmm-devel < %{version}
|
|
|
|
%description devel
|
|
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.
|
|
|
|
This package provides development files.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-intel-%{name}-%{version}
|
|
|
|
%build
|
|
chmod a-x LICENSE.md
|
|
%cmake -DCMAKE_BUILD_TYPE=Release
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files -n %{libname}
|
|
%license LICENSE.md
|
|
%{_libdir}/libigdgmm.so.%{somajor}*
|
|
|
|
%files devel
|
|
%{_includedir}/igdgmm
|
|
%{_libdir}/libigdgmm.so
|
|
%{_libdir}/pkgconfig/igdgmm.pc
|
|
|
|
%changelog
|