%global commit0 4e3435c615753b5325f8a6312b52e48a0b5f30fa %global date 20250529 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) #global tag %{version} Name: egl-wayland2 Version: 1.0%{!?tag:~%{date}git%{shortcommit0}} Release: 1%{?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: gcc BuildRequires: cmake BuildRequires: meson #BuildRequires: libtool BuildRequires: pkgconfig(egl) >= 1.5 BuildRequires: pkgconfig(eglexternalplatform) >= 1.2 BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl-backend) >= 3 # Explicit synchronization since 1.34: 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. %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 LICENSE %{_libdir}/libnvidia-egl-wayland2.so.1 %{_libdir}/libnvidia-egl-wayland2.so.1.0.0 %{_datadir}/egl/egl_external_platform.d/09_nvidia_wayland2.json %files devel %{_libdir}/libnvidia-egl-wayland2.so %changelog * Mon Jun 02 2025 xxxx - 1.0~20250529git4e3435c - initial package of egl-wayland2 latest snapshot