%global commit 1384036ea24a9bc38a5c684dac5122d5e3431ae6 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global git_date 20250521T231943Z %global tag 0 %global clean_tag %(echo %{tag} | sed 's/^v//') Name: vk-hdr-layer Version: %{clean_tag}^%{git_date}.g%{shortcommit} Release: %autorelease Summary: Implements HDR vulkan extensions in Wayland compositors that support it. # SPDX License: GPL-3.0-only URL: https://github.com/Zamundaaa/VK_hdr_layer Source0: %{url}/archive/%{commit}.tar.gz BuildRequires: gcc-c++ BuildRequires: meson BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(vulkan) BuildRequires: pkgconfig(vkroots) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-scanner) Recommends: mesa-dri-drivers Recommends: mesa-vulkan-drivers %description The %{name} package contains the VK_hdr_layer Vulkan layer which implements HDR vulkan extensions in Wayland compositors that support it. %prep %autosetup -n VK_hdr_layer-%{commit} -p1 %build MESON_OPTIONS=( --wrap-mode=nofallback ) %meson "${MESON_OPTIONS[@]}" %meson_build %install %meson_install %files %{_libdir}/libVkLayer_hdr_wsi.so %{_datadir}/vulkan/implicit_layer.d/VkLayer_hdr_wsi.*.json %changelog %autochangelog