2018-11-12 16:58:37 +01:00
|
|
|
#
|
2018-11-12 18:50:23 +01:00
|
|
|
# spec file for package vulkan-loader
|
2018-11-12 16:58:37 +01:00
|
|
|
#
|
2021-01-27 22:57:16 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-11-12 16:58:37 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-02 16:21:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-11-12 16:58:37 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-07-06 02:00:15 +02:00
|
|
|
# Prefer to go with just /^sdk-.*/ tags
|
2018-11-12 16:58:37 +01:00
|
|
|
%define lname libvulkan1
|
2019-12-27 12:04:44 +01:00
|
|
|
Name: vulkan-loader
|
2021-11-20 04:34:51 +01:00
|
|
|
Version: 1.2.198.0
|
2018-11-12 16:58:37 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Reference ICD loader for Vulkan
|
2018-11-23 13:42:00 +01:00
|
|
|
License: Apache-2.0
|
2019-10-26 13:43:21 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-28 06:49:58 +02:00
|
|
|
URL: https://github.com/KhronosGroup/Vulkan-Loader
|
2021-02-28 17:55:32 +01:00
|
|
|
Source: https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-%version.tar.gz
|
2018-11-23 17:41:22 +01:00
|
|
|
Source9: baselibs.conf
|
2019-06-04 12:22:02 +02:00
|
|
|
BuildRequires: cmake >= 3.4
|
2018-11-12 16:58:37 +01:00
|
|
|
BuildRequires: gcc-c++ >= 4.8
|
2019-12-27 12:04:44 +01:00
|
|
|
BuildRequires: pkgconfig
|
2019-03-26 01:46:34 +01:00
|
|
|
BuildRequires: python3-xml
|
2020-11-25 17:59:38 +01:00
|
|
|
BuildRequires: vulkan-headers >= %version
|
2018-12-02 16:21:28 +01:00
|
|
|
BuildRequires: pkgconfig(pciaccess)
|
2018-11-12 16:58:37 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
|
|
|
|
%description
|
|
|
|
Vulkan is a 3D graphics and compute API providing cross-platform
|
|
|
|
access to modern GPUs with low overhead and targeting realtime
|
|
|
|
graphics applications such as games and interactive media.
|
|
|
|
|
|
|
|
This package contains the reference ICD loader for Vulkan.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: The Vulkan 3D graphics and compute API
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
Vulkan is a 3D graphics and compute API providing cross-platform
|
|
|
|
access to modern GPUs with low overhead and targeting realtime
|
|
|
|
graphics applications such as games and interactive media.
|
|
|
|
|
|
|
|
%package -n vulkan-devel
|
|
|
|
Summary: Vulkan development package
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version-%release
|
2020-11-25 17:59:38 +01:00
|
|
|
Requires: vulkan-headers >= %version
|
2018-11-12 16:58:37 +01:00
|
|
|
|
|
|
|
%description -n vulkan-devel
|
|
|
|
Vulkan is a 3D graphics and compute API providing cross-platform
|
|
|
|
access to modern GPUs with low overhead and targeting realtime
|
|
|
|
graphics applications such as games and interactive media.
|
|
|
|
|
|
|
|
This subpackage contains the development headers for packages wanting
|
|
|
|
to make use of Vulkan.
|
|
|
|
|
|
|
|
%prep
|
2021-02-28 17:55:32 +01:00
|
|
|
%autosetup -p1 -n Vulkan-Loader-sdk-%version
|
2018-11-12 16:58:37 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DVulkanHeaders_INCLUDE_DIR:PATH="%_includedir" \
|
2020-12-17 10:59:31 +01:00
|
|
|
-DVulkanRegistry_DIR:PATH="%_datadir/vulkan/registry" \
|
|
|
|
-DLIB_SUFFIX:STRING=""
|
|
|
|
|
2019-12-27 12:04:44 +01:00
|
|
|
%cmake_build
|
2018-11-12 16:58:37 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libvulkan1
|
2018-11-12 18:56:12 +01:00
|
|
|
%license LICENSE.txt
|
2018-11-12 16:58:37 +01:00
|
|
|
%_libdir/libvulkan.so.1*
|
|
|
|
|
|
|
|
%files -n vulkan-devel
|
|
|
|
%_libdir/libvulkan.so
|
|
|
|
%_libdir/pkgconfig/vulkan.pc
|
|
|
|
|
|
|
|
%changelog
|