%global commit0 1229d63517fc98dc624c00960f32c63872016c56 %global date 20250711 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) #global tag %{version} Name: egl-wayland2 Version: 1.0.0%{!?tag:~%{date}git%{shortcommit0}} Release: 2%{?dist} 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 BuildRequires: cmake BuildRequires: meson BuildRequires: libtool BuildRequires: pkgconfig(egl) >= 1.5 BuildRequires: pkgconfig(eglexternalplatform) >= 1.1 BuildRequires: pkgconfig(gbm) >= 21.2.0 BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl-backend) >= 3 BuildRequires: pkgconfig(wayland-protocols) >= 1.38 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. %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 rm -f %{buildroot}%{_libdir}/libnvidia-egl-wayland2.so %files %doc README.md %license LICENSE %{_libdir}/libnvidia-egl-wayland2.so.1 %{_libdir}/libnvidia-egl-wayland2.so.1.* %{_datadir}/egl/egl_external_platform.d/09_nvidia_wayland2.json %changelog * Thu Jul 24 2025 Simone Caronni - 1.0.0~20250711git1229d63-2 - Update to latest snapshot. * Thu Jun 26 2025 Simone Caronni - 1.0.0~20250602git4e3435c-1 - Update to latest snapshot. * Tue May 20 2025 Simone Caronni - 0.1~20250510gitc012bde-1 - Update to latest snapshot.