Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev:desktop
intel-gmmlib
gmmlib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gmmlib.spec of Package intel-gmmlib
%define realname intel-gmmlib %define realver 22.3.19 %define srcext tar.gz %define so_ver 12 # Common info Name: libigdgmm%{?so_ver} Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: MIT Group: System/Libraries URL: https://github.com/intel/gmmlib Summary: Intel(R) Graphics Memory Management Library # Install-time parameters Provides: %{realname} = %{version}-%{release} # Build-time parameters BuildRequires: cmake >= 3.1 BuildRequires: ninja BuildRequires: gcc-c++ BuildRoot: %{_tmppath}/%{name}-root Source0: https://github.com/intel/gmmlib/archive/refs/tags/%{realname}-%{realver}%{?extraver}.%{srcext}#/%{realname}-%{realver}%{?extraver}.%{srcext} %description The Intel(R) Graphics Memory Management Library provides device specific and buffer management for the Intel(R) Graphics Compute Runtime for OpenCL(TM) and the Intel(R) Media Driver for VAAPI. %package -n libigdgmm-devel Group: Development/Languages/C and C++ Summary: Development files for Intel(R) Graphics Memory Management Library Requires: %{name} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: %{realname}-devel = %{version}-%{release} %description -n libigdgmm-devel The Intel(R) Graphics Memory Management Library provides device specific and buffer management for the Intel(R) Graphics Compute Runtime for OpenCL(TM) and the Intel(R) Media Driver for VAAPI. This package provides headers and libraries required for building software using the Intel(R) Graphics Memory Management Library. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n gmmlib-%{realname}-%{realver}%{?extraver} %{__chmod} a-x LICENSE.md README.rst # Build step (compile/build binaries, documentation, etc) %build _CFLAGS='%{optflags} %{?gcc_lto}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto}' _CMAKE_ARGS=( -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_C_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_VERBOSE_MAKEFILE=YES ) mkdir tmp_build cd tmp_build cmake ../Source/GmmLib/ \ -G Ninja \ "${_CMAKE_ARGS[@]}" \ \ -DGMMLIB_API_PATCH_VERSION=0 ninja -v %{?_smp_mflags} # Install built stuff %install DESTDIR=%{buildroot} ninja -v -C tmp_build install # Cleanup %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} # Files list %files %defattr(-,root,root) %license LICENSE.md %doc README.rst %{_libdir}/*.so.%{?so_ver}* %files -n libigdgmm-devel %defattr(-,root,root) %license LICENSE.md %doc README.rst %{_includedir}/igdgmm/ %{_libdir}/*.so %{_libdir}/pkgconfig/igdgmm.pc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor