vulkan-tools/vulkan-tools.spec

66 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package vulkan
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define version_unconverted 1.1.91.g3
Name: vulkan-tools
Version: 1.1.91.g3
Release: 0
Summary: Reference ICD loader for Vulkan
License: MIT
Group: Development/Libraries/C and C++
URL: http://www.khronos.org/
#Git-URL: https://github.com/KhronosGroup/Vulkan-Tools
Source: Vulkan-Tools-%version.tar.xz
Patch1: 0001-build-add-missing-wayland-client-search-path-for-moc.patch
BuildRequires: cmake >= 2.8.11
BuildRequires: gcc-c++ >= 4.8
BuildRequires: glslang-devel
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkg-config
BuildRequires: python3-base
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
Obsoletes: vulkan < %version-%release
Provides: vulkan = %version-%release
%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 Khronos official Vulkan tools and utilities.
%prep
%setup -qn Vulkan-Tools-%version
%patch -P 1 -p1
%build
mkdir -p glslang/bin
ln -sv /usr/bin/glslangValidator glslang/bin/
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%files
%_bindir/*
%changelog