From 82e3ee01b6a8921cc0d213fdbfebaf83e534a7399694c943d9daa93735cfa5d7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 19 Jan 2024 11:01:27 +0000 Subject: [PATCH] - Initial package (version 1.3.275.0) for build.opensuse.org OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-volk?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + shared.diff | 20 ++++++++++ vulkan-sdk-1.3.275.0.tar.gz | 3 ++ vulkan-volk.changes | 5 +++ vulkan-volk.spec | 80 +++++++++++++++++++++++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 shared.diff create mode 100644 vulkan-sdk-1.3.275.0.tar.gz create mode 100644 vulkan-volk.changes create mode 100644 vulkan-volk.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/shared.diff b/shared.diff new file mode 100644 index 0000000..d2dd842 --- /dev/null +++ b/shared.diff @@ -0,0 +1,20 @@ +From: Jan Engelhardt +Date: 2024-01-19 11:52:08.473079444 +0100 + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: volk-vulkan-sdk-1.3.275.0/CMakeLists.txt +=================================================================== +--- volk-vulkan-sdk-1.3.275.0.orig/CMakeLists.txt ++++ volk-vulkan-sdk-1.3.275.0/CMakeLists.txt +@@ -31,7 +31,7 @@ endif() + # Static library + + if(NOT VOLK_HEADERS_ONLY OR VOLK_INSTALL) +- add_library(volk STATIC volk.h volk.c) ++ add_library(volk SHARED volk.h volk.c) + add_library(volk::volk ALIAS volk) + target_include_directories(volk PUBLIC + $ diff --git a/vulkan-sdk-1.3.275.0.tar.gz b/vulkan-sdk-1.3.275.0.tar.gz new file mode 100644 index 0000000..a6205c4 --- /dev/null +++ b/vulkan-sdk-1.3.275.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b68d24e139190e49e5eafd72894f6e85c80472b8745bddc6ef91d6bf339df813 +size 60947 diff --git a/vulkan-volk.changes b/vulkan-volk.changes new file mode 100644 index 0000000..f86c93f --- /dev/null +++ b/vulkan-volk.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jan 19 11:00:52 UTC 2024 - Jan Engelhardt + +- Initial package (version 1.3.275.0) for build.opensuse.org +- Add shared.diff diff --git a/vulkan-volk.spec b/vulkan-volk.spec new file mode 100644 index 0000000..889ead6 --- /dev/null +++ b/vulkan-volk.spec @@ -0,0 +1,80 @@ +# +# spec file for package vulkan-volk +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: vulkan-volk +Version: 1.3.275.0 +Release: 0 +Summary: Meta loader for the Vulkan API +License: MIT +Group: Development/Libraries/C and C++ +URL: https://github.com/zeux/volk +Source: https://github.com/zeux/volk/archive/refs/tags/vulkan-sdk-%version.tar.gz +Patch1: shared.diff +BuildRequires: cmake +BuildRequires: c_compiler +BuildRequires: python3-base +BuildRequires: pkgconfig(vulkan) + +%description +A meta loader for Vulkan. + +%package -n libvolk +Summary: Meta loader for the Vulkan API +Group: System/Libraries + +%description -n libvolk +volk is a meta loader for Vulkan. It loads entrypoints required to +use Vulkan by means of dlopen-ing libvulkan.so.1. volk simplifies the +use of Vulkan extensions by loading all associated entrypoints. volk +enables loading Vulkan entrypoints directly from the driver which can +increase performance by skipping loader dispatch overhead. + +%package devel +Summary: Headers for the Vulkan meta loader +Group: Development/Libraries/C and C++ + +%description devel +Headers needed for programs to utilize the Vulkan VOLK meta loader. + +%prep +%autosetup -p1 -n volk-vulkan-sdk-%version + +%build +# Minimal re-versioning so rpm detects upgrades at least. Might change later. +sv="$PWD/lib.v" +ver=$(echo %version | cut -d+ -f1) +echo "VOLK_$ver { global: *; };" >"$sv" +%cmake -DVOLK_INSTALL=ON \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--version-script=$sv" +%cmake_build + +%install +%cmake_install + +%post -n libvolk -p /sbin/ldconfig +%postun -n libvolk -p /sbin/ldconfig + +%files -n libvolk +%_libdir/libvolk.so + +%files devel +%_includedir/volk* +%_libdir/cmake/ +%doc LICENSE.md README.md + +%changelog