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

79 lines
2.1 KiB
RPMSpec
Raw Normal View History

2018-06-26 16:56:57 +00:00
Name: vulkan-validation-layers
2023-07-06 03:11:31 +00:00
Version: 1.3.250.1
2022-11-09 06:54:35 +00:00
Release: %autorelease
2018-06-26 16:56:57 +00:00
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
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
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
2018-08-07 13:15:54 +00:00
%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}.
2018-06-26 16:56:57 +00:00
%prep
2018-08-07 13:15:54 +00:00
%autosetup -p1 -n Vulkan-ValidationLayers-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
2020-12-17 16:32:32 +00:00
%doc README.md CONTRIBUTING.md LAYER_CONFIGURATION.md
2018-06-26 16:56:57 +00:00
%{_datadir}/vulkan/explicit_layer.d/*.json
%{_libdir}/libVkLayer_*.so
2018-08-07 13:15:54 +00:00
%files devel
%{_includedir}/vulkan/
%{_libdir}/libVkLayer_utils.a
2018-06-26 16:56:57 +00:00
%changelog
2022-11-09 06:54:35 +00:00
%autochangelog