%global commit0 fd63ba3a6b12790aee34e05b8ac4c613f00417b6 %global date 20260918 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) #global tag %{version} Name: egl-wayland Version: 1.1.23%{!?tag:~%{date}git%{shortcommit0}} Release: %autorelease Summary: EGLStream-based Wayland external platform License: MIT URL: https://github.com/NVIDIA/%{name} %if 0%{?tag:1} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %else Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz %endif Patch0: egl-wayland-PR198.patch BuildRequires: cmake BuildRequires: meson BuildRequires: libtool BuildRequires: pkgconfig(egl) >= 1.5 BuildRequires: pkgconfig(eglexternalplatform) >= 1.1 BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl-backend) >= 3 # Explicit synchronization since 1.34: BuildRequires: pkgconfig(wayland-protocols) >= 1.34 BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(wayland-server) # Required for directory ownership Requires: libglvnd-egl%{?_isa} %description 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 devel Summary: EGLStream-based Wayland external platform development files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel 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 contains development files. %prep %if 0%{?tag:1} %autosetup -p1 %else %autosetup -p1 -n %{name}-%{commit0} %endif %build %meson %meson_build %install %meson_install find %{buildroot} -name '*.la' -delete %files %doc README.md %license COPYING %{_libdir}/libnvidia-egl-wayland.so.1 %{_libdir}/libnvidia-egl-wayland.so.1.* %{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json %files devel %{_datadir}/pkgconfig/wayland-eglstream-protocols.pc %{_datadir}/wayland-eglstream/ %{_libdir}/libnvidia-egl-wayland.so %{_libdir}/pkgconfig/wayland-eglstream.pc %changelog %autochangelog