From c748be771d8cb9f1518ea06da8f9ac07c09802ccc68be46dec6d4c1c0354c7a5 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 8 Oct 2024 17:07:33 +0000 Subject: [PATCH] [info=64452ce857c3874cb18a82b9e1fb00bab87a27d0222953746f61b05a91248c8c] OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-volk?expand=0&rev=14 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + _scmsync.obsinfo | 4 ++ build.specials.obscpio | 3 ++ shared.diff | 21 ++++++++++ vulkan-sdk-1.3.290.0.tar.gz | 3 ++ vulkan-sdk-1.3.296.0.tar.gz | 3 ++ vulkan-volk.changes | 34 +++++++++++++++ vulkan-volk.spec | 84 +++++++++++++++++++++++++++++++++++++ 9 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 shared.diff create mode 100644 vulkan-sdk-1.3.290.0.tar.gz create mode 100644 vulkan-sdk-1.3.296.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/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..0b807c5 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1728407237 +commit: 64452ce857c3874cb18a82b9e1fb00bab87a27d0222953746f61b05a91248c8c +url: https://src.opensuse.org/jengelh/vulkan-volk +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..99698b3 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:290ea98f0ad21c2c8ad657c2dc8bd7ded8932f81822cf14dd4d8f9b994e694a6 +size 256 diff --git a/shared.diff b/shared.diff new file mode 100644 index 0000000..bb82787 --- /dev/null +++ b/shared.diff @@ -0,0 +1,21 @@ +From: Jan Engelhardt +Date: 2024-01-19 11:52:08.473079444 +0100 + +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Index: volk-vulkan-sdk-1.3.280.0/CMakeLists.txt +=================================================================== +--- volk-vulkan-sdk-1.3.280.0.orig/CMakeLists.txt ++++ volk-vulkan-sdk-1.3.280.0/CMakeLists.txt +@@ -31,7 +31,8 @@ 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) ++ set_target_properties(volk PROPERTIES OUTPUT_NAME "volk-@PACKAGE_VERSION@") + add_library(volk::volk ALIAS volk) + target_include_directories(volk PUBLIC + $ diff --git a/vulkan-sdk-1.3.290.0.tar.gz b/vulkan-sdk-1.3.290.0.tar.gz new file mode 100644 index 0000000..f2bb2fa --- /dev/null +++ b/vulkan-sdk-1.3.290.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb6a6d616c0f2bbd5d180da982a6d92a0948581cec937de69f17883980c6ca06 +size 62571 diff --git a/vulkan-sdk-1.3.296.0.tar.gz b/vulkan-sdk-1.3.296.0.tar.gz new file mode 100644 index 0000000..728609e --- /dev/null +++ b/vulkan-sdk-1.3.296.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ffd0e81e29688f4abaa39e598937160b098228f37503903b10d481d4862ab85 +size 63986 diff --git a/vulkan-volk.changes b/vulkan-volk.changes new file mode 100644 index 0000000..d097c3f --- /dev/null +++ b/vulkan-volk.changes @@ -0,0 +1,34 @@ +------------------------------------------------------------------- +Tue Oct 8 16:37:59 UTC 2024 - Jan Engelhardt + +- Update to release SDK-1.3.296.0 + * Support new function pointers added by v296 + +------------------------------------------------------------------- +Tue Jul 23 05:21:31 UTC 2024 - Jan Engelhardt + +- Update to release SDK-1.3.290.0 + * Version bump only + +------------------------------------------------------------------- +Thu May 16 12:28:23 UTC 2024 - Jan Engelhardt + +- Update to release SDK-1.3.283.0 + * Ignore pedantic check on function pointer cast for GCC + +------------------------------------------------------------------- +Thu Mar 21 09:00:18 UTC 2024 - Jan Engelhardt + +- Update to release SDK-1.3.280.0 + * No changelog was provided + +------------------------------------------------------------------- +Tue Feb 27 10:23:31 UTC 2024 - Jan Engelhardt + +- Add more Conflict markers against libvolk. + +------------------------------------------------------------------- +Fri Jan 19 11:00:52 UTC 2024 - Jan Engelhardt + +- Initial package (version SDK-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..214b405 --- /dev/null +++ b/vulkan-volk.spec @@ -0,0 +1,84 @@ +# +# 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 +%define lname libvolk-1_3_296 +Version: 1.3.296 +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.0.tar.gz +Patch1: shared.diff +BuildRequires: c_compiler +BuildRequires: cmake +BuildRequires: python3-base +BuildRequires: pkgconfig(vulkan) >= %version + +%description +A meta loader for Vulkan. + +%package -n %lname +Summary: Meta loader for the Vulkan API +Group: System/Libraries +Conflicts: volk-devel + +%description -n %lname +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++ +Requires: %lname = %version-%release +# -lvolk is logically ambiguous, so block this package mix even +# if the filesets do not overlap at all times. +# https://github.com/zeux/volk/issues/166 +Conflicts: volk-devel + +%description devel +Headers needed for programs to utilize the Vulkan VOLK meta loader. + +%prep +%autosetup -p1 -n volk-vulkan-sdk-%version.0 +perl -i -lpe 's{\@PACKAGE_VERSION\@}{%version}g' CMakeLists.txt + +%build +%cmake -DVOLK_INSTALL=ON +%cmake_build + +%install +%cmake_install +ln -s libvolk-%version.so "%buildroot/%_libdir/libvolk.so" + +%ldconfig_scriptlets -n %lname + +%files -n %lname +%_libdir/libvolk-%version.so + +%files devel +%_includedir/volk* +%_libdir/cmake/ +%_libdir/libvolk.so +%doc LICENSE.md README.md + +%changelog