Stefan Dirsch
205bb60fa5
0002-Fix-the-include-path-for-drm_fourcc.h.patch 0003-Fix-a-declaration-after-code.patch 0004-egl-swap-provide-damage-rectangles-to-wl_surface.patch 0005-Use-INT32_MAX-for-wl_surface_damage.patch 0006-egl-wayland-Accept-device-name-from-either-wl_drm-or.patch 0007-egl-wayland-fix-device-name-case-where-only-wl_drm-e.patch 0008-Add-ICD-json-file.patch 0009-egl-wayland-Fix-roundtrip-eating-wl_drm-events-in-ge.patch * apply latest fixes including adding ICD json file; related: https://github.com/openSUSE/nvidia-driver-G06/issues/26 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libnvidia-egl-wayland?expand=0&rev=27
118 lines
4.3 KiB
RPMSpec
118 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package libnvidia-egl-wayland
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define so_ver 1
|
|
%define lname libnvidia-egl-wayland%{so_ver}
|
|
%define rname egl-wayland
|
|
Name: libnvidia-egl-wayland
|
|
Version: 1.1.16
|
|
Release: 0
|
|
Summary: The EGLStream-based Wayland external platform
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/NVIDIA/egl-wayland
|
|
Source0: https://github.com/NVIDIA/egl-wayland/archive/%{version}/%{rname}-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
Patch1: 0001-egl-wayland-bump-version-to-1.1.17.patch
|
|
Patch2: 0002-Fix-the-include-path-for-drm_fourcc.h.patch
|
|
Patch3: 0003-Fix-a-declaration-after-code.patch
|
|
Patch4: 0004-egl-swap-provide-damage-rectangles-to-wl_surface.patch
|
|
Patch5: 0005-Use-INT32_MAX-for-wl_surface_damage.patch
|
|
Patch6: 0006-egl-wayland-Accept-device-name-from-either-wl_drm-or.patch
|
|
Patch7: 0007-egl-wayland-fix-device-name-case-where-only-wl_drm-e.patch
|
|
Patch8: 0008-Add-ICD-json-file.patch
|
|
Patch9: 0009-egl-wayland-Fix-roundtrip-eating-wl_drm-events-in-ge.patch
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: meson >= 0.50
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(eglexternalplatform) >= 1.1
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
BuildRequires: pkgconfig(wayland-egl-backend) >= 3
|
|
BuildRequires: pkgconfig(wayland-protocols)
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
|
BuildRequires: pkgconfig(wayland-server)
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
%description
|
|
This is an implementation of a EGL External Platform library to add client-side
|
|
Wayland support to EGL on top of EGLDevice and EGLStream families of extensions.
|
|
|
|
This library implements an EGL External Platform interface to work along with
|
|
EGL drivers that support the external platform mechanism.
|
|
|
|
%package -n %{lname}
|
|
Summary: The EGLStream-based Wayland external platform
|
|
Group: System/Libraries
|
|
|
|
%description -n %{lname}
|
|
This is an implementation of a EGL External Platform library to add client-side
|
|
Wayland support to EGL on top of EGLDevice and EGLStream families of extensions.
|
|
|
|
This library implements an EGL External Platform interface to work along with
|
|
EGL drivers that support the external platform mechanism.
|
|
|
|
%package -n libnvidia-egl-wayland-devel
|
|
Summary: Development package for %{name}
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{lname} = %{version}-%{release}
|
|
|
|
%description -n libnvidia-egl-wayland-devel
|
|
This is an implementation of a EGL External Platform library to add client-side
|
|
Wayland support to EGL on top of EGLDevice and EGLStream families of extensions.
|
|
|
|
This library implements an EGL External Platform interface to work along with
|
|
EGL drivers that support the external platform mechanism.
|
|
|
|
This package provides headers and libraries required to build software
|
|
using %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{rname}-%{version} -p1
|
|
|
|
%build
|
|
export LDFLAGS="-Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?_lto_cflags}"
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%files -n %{lname}
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_libdir}/libnvidia-egl-wayland.so.%{so_ver}*
|
|
%{_datadir}/wayland-eglstream/
|
|
%dir %{_datadir}/egl
|
|
%dir %{_datadir}/egl/egl_external_platform.d
|
|
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
|
|
|
|
%files -n libnvidia-egl-wayland-devel
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_libdir}/libnvidia-egl-wayland.so
|
|
%{_libdir}/pkgconfig/wayland-eglstream.pc
|
|
%{_datadir}/pkgconfig/wayland-eglstream-protocols.pc
|
|
|
|
%changelog
|