[info=21182b598991f48c866bdbca31d6392d9338465b9d257bcbb25d4c07e94f60be]

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-volk?expand=0&rev=12
This commit is contained in:
Jan Engelhardt 2024-06-27 08:34:25 +00:00 committed by Git OBS Bridge
commit 7f0862a390
8 changed files with 161 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1715969060
commit: 21182b598991f48c866bdbca31d6392d9338465b9d257bcbb25d4c07e94f60be
url: https://src.opensuse.org/pool/vulkan-volk
revision: factory

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:934f0bb7a70ec67e949853c3466147e845b61b451af1b748e24e59305a8010f8
size 256

21
shared.diff Normal file
View File

@ -0,0 +1,21 @@
From: Jan Engelhardt <jengelh@inai.de>
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
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>

BIN
vulkan-sdk-1.3.283.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

22
vulkan-volk.changes Normal file
View File

@ -0,0 +1,22 @@
-------------------------------------------------------------------
Thu May 16 12:28:23 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- Update to release SDK-1.3.280.0
* No changelog was provided
-------------------------------------------------------------------
Tue Feb 27 10:23:31 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add more Conflict markers against libvolk.
-------------------------------------------------------------------
Fri Jan 19 11:00:52 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Initial package (version SDK-1.3.275.0) for build.opensuse.org
- Add shared.diff

84
vulkan-volk.spec Normal file
View File

@ -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