Name: vulkan-tools Version: 1.3.261.1 Release: %autorelease Summary: Vulkan tools License: Apache-2.0 URL: https://github.com/KhronosGroup/Vulkan-Tools Source0: %url/archive/sdk-%{version}.tar.gz#/Vulkan-Tools-sdk-%{version}.tar.gz 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) Provides: vulkan-demos%{?_isa} = %{version}-%{release} Obsoletes: vulkan-demos < %{version}-%{release} %description Vulkan tools %prep %autosetup -n Vulkan-Tools-sdk-%{version} -p1 %build %cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release -DGLSLANG_INSTALL_DIR=%{_prefix} -DCUBE_WSI_SELECTION=DISPLAY %cmake3_build mv %{_vpath_builddir}/cube/vkcube %{_vpath_builddir}/cube/vkcube-display %cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release -DGLSLANG_INSTALL_DIR=%{_prefix} -DCUBE_WSI_SELECTION=XCB %cmake3_build %install %cmake3_install install -m 0755 %{_vpath_builddir}/cube/vkcube-display %{buildroot}%{_bindir}/vkcube-display %files %license LICENSE.txt %doc README.md CONTRIBUTING.md %{_bindir}/* %changelog %autochangelog