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
|
|
|
#
|
2024-01-19 12:34:40 +01:00
|
|
|
# Copyright (c) 2024 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-04-19 01:32:20 +02:00
|
|
|
# The git repo is a hodgepodge.
|
2022-12-23 09:01:40 +01:00
|
|
|
# Most recent tag is 1.5.4, but that is outdated.
|
|
|
|
# CMakeLists.txt's project() line contains 1.5.5, but this is outdated too.
|
2024-10-08 18:07:51 +02:00
|
|
|
# The SPIR-V version is 1.6.4 (include/spirv/unified1/spirv.core.grammar.json)
|
2022-04-19 01:32:20 +02:00
|
|
|
# They add "SDK" tags that reflect the Vulkan version (1.3),
|
2024-10-08 18:07:51 +02:00
|
|
|
# and the independently increasing toolchain release number (296).
|
2022-04-19 01:32:20 +02:00
|
|
|
|
2016-06-12 19:13:05 +02:00
|
|
|
Name: spirv-headers
|
2024-10-08 18:07:51 +02:00
|
|
|
Version: 1.6.4+sdk296
|
|
|
|
%define innerver 1.3.296
|
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
|
2023-10-27 06:01:53 +02:00
|
|
|
Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-%innerver.tar.gz
|
2024-10-08 18:07:51 +02:00
|
|
|
Patch1: 0001-Add-SPV_EXT_optnone-449.patch
|
|
|
|
Patch2: 0002-Reserve-SPIR-V-enums-for-MediaTek-451.patch
|
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++
|
2021-11-11 20:40:14 +01:00
|
|
|
BuildRequires: pkg-config
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2021-05-05 11:35:12 +02:00
|
|
|
%prep
|
2024-03-10 11:18:29 +01:00
|
|
|
%autosetup -n SPIRV-Headers-vulkan-sdk-%innerver -p1
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%build
|
2021-11-11 21:13:13 +01:00
|
|
|
%cmake
|
2020-10-05 19:59:27 +02:00
|
|
|
%cmake_build
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%install
|
2021-11-11 21:13:13 +01:00
|
|
|
%cmake_install
|
2017-02-20 18:47:39 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%_includedir/spirv/
|
2021-11-11 21:13:13 +01:00
|
|
|
%_datadir/cmake/
|
|
|
|
%_datadir/pkgconfig/*.pc
|
2019-09-28 06:33:56 +02:00
|
|
|
%license LICENSE
|
2016-06-12 19:13:05 +02:00
|
|
|
|
|
|
|
%changelog
|