%global git_date 20241112 %global git_hash df2ac1bb %global git_ver 1.3.301 %global rel 1 %global src_name Vulkan-Tools-%{git_date}-%{git_hash}.tar.xz Name: vulkan-tools Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Vulkan tools License: ASL 2.0 URL: https://github.com/KhronosGroup/Vulkan-Tools Source0: %{url}/%{src_name} BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake3 BuildRequires: glslang BuildRequires: ninja-build BuildRequires: python%{python3_pkgversion}-devel BuildRequires: vulkan-loader-devel BuildRequires: wayland-protocols-devel BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-cursor) BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xcb) BuildRequires: vulkan-headers BuildRequires: vulkan-volk Provides: vulkan-demos%{?_isa} = %{version}-%{release} Obsoletes: vulkan-demos < %{version}-%{release} %description Vulkan tools %prep %autosetup -n Vulkan-Tools -p1 %build #%%cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release -DGLSLANG_INSTALL_DIR=%{_prefix} #%%cmake3_build %cmake -DCMAKE_BUILD_TYPE=Release -DGLSLANG_INSTALL_DIR=%{_prefix} -DBUILD_CUBE=OFF %cmake_build %install #%%cmake3_install %cmake_install %files %license LICENSE.txt %doc README.md CONTRIBUTING.md %{_bindir}/* %changelog %autochangelog