forked from pool/vulkan-volk
- 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
This commit is contained in:
commit
82e3ee01b6
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
20
shared.diff
Normal file
20
shared.diff
Normal file
@ -0,0 +1,20 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
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
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
BIN
vulkan-sdk-1.3.275.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
vulkan-sdk-1.3.275.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
5
vulkan-volk.changes
Normal file
5
vulkan-volk.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 19 11:00:52 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Initial package (version 1.3.275.0) for build.opensuse.org
|
||||
- Add shared.diff
|
80
vulkan-volk.spec
Normal file
80
vulkan-volk.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user