- Produce and install support header files [boo#1175024]
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=57
This commit is contained in:
parent
92e209ad16
commit
2d1db96608
27
ver.diff
Normal file
27
ver.diff
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: 2020-08-19 13:21:33.156157310 +0200
|
||||||
|
|
||||||
|
We do not want static archives in openSUSE, so need to turn on SHARED mode.
|
||||||
|
As a result, a version needs to be added.
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: Vulkan-ValidationLayers-1.2.148/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- Vulkan-ValidationLayers-1.2.148.orig/CMakeLists.txt
|
||||||
|
+++ Vulkan-ValidationLayers-1.2.148/CMakeLists.txt
|
||||||
|
@@ -320,11 +320,12 @@ set(SCRIPTS_DIR "${PROJECT_SOURCE_DIR}/s
|
||||||
|
# files directly in layers.
|
||||||
|
|
||||||
|
add_library(VkLayer_utils
|
||||||
|
- STATIC
|
||||||
|
+ SHARED
|
||||||
|
layers/vk_layer_config.cpp
|
||||||
|
layers/vk_layer_extension_utils.cpp
|
||||||
|
layers/vk_layer_utils.cpp
|
||||||
|
layers/vk_format_utils.cpp)
|
||||||
|
+set_target_properties(VkLayer_utils PROPERTIES OUTPUT_NAME "VkLayer_utils-@PACKAGE_VERSION@")
|
||||||
|
target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers)
|
||||||
|
if(WIN32)
|
||||||
|
target_compile_definitions(VkLayer_utils PUBLIC _CRT_SECURE_NO_WARNINGS)
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 19 11:24:44 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Produce and install support header files [boo#1175024]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 9 10:10:53 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
Sun Aug 9 10:10:53 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
Name: vulkan-validationlayers
|
Name: vulkan-validationlayers
|
||||||
Version: 1.2.148
|
Version: 1.2.148
|
||||||
Release: 0
|
Release: 0
|
||||||
|
%define lname libVkLayer_utils-1_2_148
|
||||||
Summary: Validation layers for Vulkan
|
Summary: Validation layers for Vulkan
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
@ -26,6 +27,7 @@ URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers
|
|||||||
|
|
||||||
Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/v%version.tar.gz
|
Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/v%version.tar.gz
|
||||||
Source9: %name-rpmlintrc
|
Source9: %name-rpmlintrc
|
||||||
|
Patch1: ver.diff
|
||||||
BuildRequires: cmake >= 3.4
|
BuildRequires: cmake >= 3.4
|
||||||
BuildRequires: gcc-c++ >= 4.8
|
BuildRequires: gcc-c++ >= 4.8
|
||||||
BuildRequires: glslang-devel >= 8.13.3727
|
BuildRequires: glslang-devel >= 8.13.3727
|
||||||
@ -41,28 +43,59 @@ Conflicts: vulkan < 1.1
|
|||||||
Obsoletes: vulkan < 1.1
|
Obsoletes: vulkan < 1.1
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Vulkan is a 3D graphics and compute API providing cross-platform
|
Vulkan is a 3D graphics and compute API.
|
||||||
access to modern GPUs with low overhead and targeting realtime
|
|
||||||
graphics applications such as games and interactive media.
|
|
||||||
|
|
||||||
This package contains the Khronos official Vulkan validation layers.
|
This package contains the Khronos official Vulkan validation layers.
|
||||||
|
|
||||||
|
%package -n %lname
|
||||||
|
Summary: Vulkan validation layer utility library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %lname
|
||||||
|
Vulkan is a 3D graphics and compute API.
|
||||||
|
|
||||||
|
This package contains a utility library.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Vulkan validation layer support files
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %lname = %version
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Vulkan is a 3D graphics and compute API.
|
||||||
|
|
||||||
|
This package contains support files for the VkLayer utility library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Vulkan-ValidationLayers-%version
|
%autosetup -n Vulkan-ValidationLayers-%version
|
||||||
|
perl -i -pe 's{\@PACKAGE_VERSION\@}{%version}' CMakeLists.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%limit_build -m 2000
|
%limit_build -m 2000
|
||||||
%cmake -DGLSLANG_INSTALL_DIR="%_bindir" -DSPIRV_HEADERS_INSTALL_DIR="%_includedir"
|
%cmake -DGLSLANG_INSTALL_DIR="%_bindir" \
|
||||||
|
-DSPIRV_HEADERS_INSTALL_DIR="%_includedir" \
|
||||||
|
-DBUILD_LAYER_SUPPORT_FILES=ON
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
# no header files
|
# no header files
|
||||||
rm -f "%buildroot/%_libdir"/*.a
|
#rm -f "%buildroot/%_libdir"/*.a
|
||||||
|
ln -sv libVkLayer_utils-%version.so "%buildroot/%_libdir/libVkLayer_utils.so"
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%_libdir/libVkLayer*.so
|
%_libdir/libVkLayer_khr*.so
|
||||||
%_datadir/vulkan/
|
%_datadir/vulkan/
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%_libdir/libVkLayer_utils*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%_includedir/*
|
||||||
|
%_libdir/libVkLayer_utils.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user