diff options
-rw-r--r-- | packaging/vulkan-validation-layers.manifest | 5 | ||||
-rw-r--r-- | packaging/vulkan-validation-layers.spec | 64 |
2 files changed, 69 insertions, 0 deletions
diff --git a/packaging/vulkan-validation-layers.manifest b/packaging/vulkan-validation-layers.manifest new file mode 100644 index 000000000..97e8c3134 --- /dev/null +++ b/packaging/vulkan-validation-layers.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/vulkan-validation-layers.spec b/packaging/vulkan-validation-layers.spec new file mode 100644 index 000000000..54b6c0b1e --- /dev/null +++ b/packaging/vulkan-validation-layers.spec @@ -0,0 +1,64 @@ +Name: vulkan-validation-layers +Version: 1.1.92 +Release: 0 +Summary: Vulkan validation layers +Group: Graphics & UI Framework/GL +License: Apache-2.0 +Source: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: cmake +BuildRequires: python3 +BuildRequires: vulkan-headers = %{version} +BuildRequires: glslang-devel +BuildRequires: spirv-tools +BuildRequires: spirv-tools-devel +BuildRequires: vulkan-loader-devel +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(wayland-server) +BuildRequires: pkgconfig(wayland-egl) + +%define BUILD_TYPE Debug + +%description +This project provides the Vulkan validation layers. + +%package devel +Summary: Development files for %{name} +Requires: vulkan-headers + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q + +%build +cp %{SOURCE1001} . +export CFLAGS="$CFLAGS -w" +cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} \ + -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DBUILD_WSI_WAYLAND_SUPPORT=ON \ + -DGLSLANG_INSTALL_DIR=%{_bindir} -DBUILD_LAYERS=ON \ + -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/vulkan \ + -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir} +make + +%install +rm -rf %{buildroot} +%make_install + +%remove_docs + +%files +%manifest %{name}.manifest +%license LICENSE.txt +%defattr(-,root,root,-) +%{_datadir}/vulkan/explicit_layer.d/*.json +%{_libdir}/libVkLayer_*.so + +%files devel +%{_includedir}/vulkan/ + + |