Name: vulkan-validation-layers Version: 1.3.239.0 Release: %autorelease Summary: Vulkan validation layers License: ASL 2.0 URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers Source0: %url/archive/sdk-%{version}.tar.gz#/Vulkan-ValidationLayers-sdk-%{version}.tar.gz Patch0: fix_shared.patch # it appears there is a warning with rawhide gcc Patch1: disable-werror.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake3 BuildRequires: glslang-devel BuildRequires: ninja-build BuildRequires: python%{python3_pkgversion}-devel BuildRequires: spirv-tools-devel BuildRequires: spirv-headers-devel BuildRequires: vulkan-headers BuildRequires: vulkan-loader-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) %description Vulkan validation layers %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: vulkan-headers %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 -n Vulkan-ValidationLayers-sdk-%{version} %build # Decrease debuginfo verbosity to reduce memory consumption even more %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %global optflags %(echo %{optflags} | sed 's/-O2 /-O1 /') %cmake3 -DCMAKE_BUILD_TYPE=Release \ -DBUILD_WERROR=OFF \ -DGLSLANG_INSTALL_DIR=%{_prefix} \ -DBUILD_LAYER_SUPPORT_FILES:BOOL=ON \ -DUSE_ROBIN_HOOD_HASHING:BOOL=OFF \ -DSPIRV_HEADERS_INSTALL_DIR=%{_prefix} \ -DVULKAN_HEADERS_INSTALL_DIR=%{_prefix} \ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} %cmake_build %install %cmake_install %ldconfig_scriptlets %files %license LICENSE.txt %doc README.md CONTRIBUTING.md LAYER_CONFIGURATION.md %{_datadir}/vulkan/explicit_layer.d/*.json %{_libdir}/libVkLayer_*.so %files devel %{_includedir}/vulkan/ %changelog %autochangelog