vulkan-validation-layers/vulkan-validation-layers.spec

67 lines
1.8 KiB
RPMSpec
Raw Normal View History

2018-06-26 16:56:57 +00:00
Name: vulkan-validation-layers
2023-11-20 07:51:29 +00:00
Version: 1.3.268.0
2022-11-09 06:54:35 +00:00
Release: %autorelease
2018-06-26 16:56:57 +00:00
Summary: Vulkan validation layers
2023-09-04 06:30:16 +00:00
License: Apache-2.0
2018-06-26 16:56:57 +00:00
URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers
2023-11-20 07:51:29 +00:00
Source0: %url/archive/vulkan-sdk-%{version}.tar.gz#/Vulkan-ValidationLayers-sdk-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
2018-06-26 16:56:57 +00:00
BuildRequires: cmake3
BuildRequires: glslang-devel
BuildRequires: ninja-build
BuildRequires: python%{python3_pkgversion}-devel
2018-06-26 16:56:57 +00:00
BuildRequires: spirv-tools-devel
2020-08-05 02:20:47 +00:00
BuildRequires: spirv-headers-devel
2022-11-09 07:13:49 +00:00
BuildRequires: vulkan-headers
2018-06-26 16:56:57 +00:00
BuildRequires: vulkan-loader-devel
2023-11-20 07:51:29 +00:00
BuildRequires: vulkan-utility-libraries-devel
2018-06-26 16:56:57 +00:00
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
%prep
2023-11-20 07:51:29 +00:00
%autosetup -p1 -n Vulkan-ValidationLayers-vulkan-sdk-%{version}
2018-06-26 16:56:57 +00:00
%build
2018-06-26 19:07:45 +00:00
# Decrease debuginfo verbosity to reduce memory consumption even more
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
2021-05-20 02:58:49 +00:00
%global optflags %(echo %{optflags} | sed 's/-O2 /-O1 /')
2018-08-07 13:15:54 +00:00
2020-08-05 01:57:01 +00:00
%cmake3 -DCMAKE_BUILD_TYPE=Release \
-DBUILD_WERROR=OFF \
2019-11-14 02:58:37 +00:00
-DGLSLANG_INSTALL_DIR=%{_prefix} \
2019-08-03 22:02:15 +00:00
-DBUILD_LAYER_SUPPORT_FILES:BOOL=ON \
2021-05-18 19:41:54 +00:00
-DUSE_ROBIN_HOOD_HASHING:BOOL=OFF \
2022-11-10 02:41:10 +00:00
-DSPIRV_HEADERS_INSTALL_DIR=%{_prefix} \
2022-11-09 07:35:33 +00:00
-DVULKAN_HEADERS_INSTALL_DIR=%{_prefix} \
2022-12-13 03:33:31 +00:00
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}
2021-05-20 02:58:49 +00:00
%cmake_build
2018-06-26 16:56:57 +00:00
%install
2020-08-05 01:57:01 +00:00
%cmake_install
2018-06-26 16:56:57 +00:00
%ldconfig_scriptlets
%files
2019-02-13 01:07:50 +00:00
%license LICENSE.txt
2023-11-20 07:51:29 +00:00
%doc README.md CONTRIBUTING.md
2018-06-26 16:56:57 +00:00
%{_datadir}/vulkan/explicit_layer.d/*.json
%{_libdir}/libVkLayer_*.so
%changelog
2022-11-09 06:54:35 +00:00
%autochangelog