summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layers/CMakeLists.txt2
-rw-r--r--packaging/vulkan-validation-layers.manifest5
-rw-r--r--packaging/vulkan-validation-layers.spec66
3 files changed, 72 insertions, 1 deletions
diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt
index 06b53ff9b..96a90ce54 100644
--- a/layers/CMakeLists.txt
+++ b/layers/CMakeLists.txt
@@ -420,7 +420,7 @@ if (UNIX)
configure_file(${INPUT_FILE} ${UNIX_INTERMEDIATE_FILE} @ONLY)
- install(FILES ${UNIX_INTERMEDIATE_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vulkan/explicit_layer.d RENAME ${OUTPUT_FILE_FINAL_NAME})
+ install(FILES ${UNIX_INTERMEDIATE_FILE} DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan/explicit_layer.d RENAME ${OUTPUT_FILE_FINAL_NAME})
endif()
if (WIN32)
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..7f8a32ab3
--- /dev/null
+++ b/packaging/vulkan-validation-layers.spec
@@ -0,0 +1,66 @@
+Name: vulkan-validation-layers
+Version: 1.2.179
+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: pkgconfig(SPIRV-Tools) = 2021.1.1
+BuildRequires: spirv-tools
+BuildRequires: vulkan-loader-devel
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: spirv-headers
+
+%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 -Wno-psabi"
+export CXXFLAGS="$CXXFLAGS -w -Wno-psabi"
+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} -DSPIRV_HEADERS_INSTALL_DIR=/usr/include/spirv \
+ -DUSE_ROBIN_HOOD_HASHING=OFF \
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/vulkan \
+ -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir}
+make -j8
+
+%install
+rm -rf %{buildroot}
+%make_install
+mkdir -p %{buildroot}%{_includedir}/vulkan
+cp -a ./layers/generated/*.h %{buildroot}%{_includedir}/vulkan
+%remove_docs
+
+%files
+%manifest %{name}.manifest
+%license LICENSE.txt
+%defattr(-,root,root,-)
+%{_datadir}/*
+%{_libdir}/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/vulkan/
+
+