commit 7f0862a3904b17f29513bc77b404599be84bdc6444c03b798dc6ea9f09c06774 Author: Jan Engelhardt Date: Thu Jun 27 08:34:25 2024 +0000 [info=21182b598991f48c866bdbca31d6392d9338465b9d257bcbb25d4c07e94f60be] OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-volk?expand=0&rev=12 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..8b10a10 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1715969060 +commit: 21182b598991f48c866bdbca31d6392d9338465b9d257bcbb25d4c07e94f60be +url: https://src.opensuse.org/pool/vulkan-volk +revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..d60cf7d --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:934f0bb7a70ec67e949853c3466147e845b61b451af1b748e24e59305a8010f8 +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.283.0.tar.gz b/vulkan-sdk-1.3.283.0.tar.gz new file mode 100644 index 0000000..b2502ed --- /dev/null +++ b/vulkan-sdk-1.3.283.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:872035f1f26c53b218632a3a8dbccbd276710aaabafb9bb1bc1a6c0633ee6aab +size 62563 diff --git a/vulkan-volk.changes b/vulkan-volk.changes new file mode 100644 index 0000000..852c0b7 --- /dev/null +++ b/vulkan-volk.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +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..510cad8 --- /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_283_0 +Version: 1.3.283.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: c_compiler +BuildRequires: cmake +BuildRequires: python3-base +BuildRequires: pkgconfig(vulkan) + +%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 +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