2016-06-12 19:13:05 +02:00
|
|
|
#
|
2017-02-02 11:34:18 +01:00
|
|
|
# spec file for package spirv-headers
|
2016-06-12 19:13:05 +02:00
|
|
|
#
|
2021-02-10 15:16:55 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-06-12 19:13:05 +02: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-11-10 13:11:42 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-12 19:13:05 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: spirv-headers
|
2021-02-10 16:26:27 +01:00
|
|
|
Version: 1.5.4.g8
|
2016-06-12 19:13:05 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Machine-readable files from the SPIR-V registry
|
2016-06-13 12:20:18 +02:00
|
|
|
License: MIT
|
2016-06-12 19:13:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-28 06:33:56 +02:00
|
|
|
URL: https://github.com/KhronosGroup/SPIRV-Headers
|
2016-06-12 19:13:05 +02:00
|
|
|
|
2020-08-12 09:30:28 +02:00
|
|
|
#Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/%version.tar.gz
|
|
|
|
Source: SPIRV-Headers-%version.tar.xz
|
2016-06-12 19:13:05 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: cmake >= 2.8
|
2017-02-20 18:47:39 +01:00
|
|
|
BuildRequires: fdupes
|
2016-06-12 19:13:05 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
%description
|
|
|
|
This repository contains machine-readable files from the SPIR-V
|
|
|
|
registry. This includes:
|
|
|
|
|
|
|
|
* Header files for various languages.
|
|
|
|
* JSON files describing the grammar for the SPIR-V core instruction
|
|
|
|
set, and for the GLSL.std.450 extended instruction set.
|
|
|
|
* The XML registry file.
|
|
|
|
|
2019-09-28 06:31:16 +02:00
|
|
|
%prep
|
2019-09-28 06:33:56 +02:00
|
|
|
%autosetup -n SPIRV-Headers-%version
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
# Because Khronos does not know what DESTDIR is.
|
|
|
|
%cmake -DCMAKE_INSTALL_PREFIX="%buildroot/%_prefix"
|
2020-10-05 19:59:27 +02:00
|
|
|
%cmake_build
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build/
|
|
|
|
make install-headers
|
|
|
|
popd
|
2017-02-20 18:47:39 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%_includedir/spirv/
|
2019-09-28 06:33:56 +02:00
|
|
|
%license LICENSE
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%changelog
|