2024-05-28 08:09:26 +00:00
|
|
|
%global commit 4f7b471f1a66b6d06462cd4ba57628cc0cd087d7
|
2023-03-17 16:58:28 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
2018-01-02 23:01:14 +00:00
|
|
|
|
|
|
|
Name: spirv-headers
|
2022-02-15 21:01:50 +00:00
|
|
|
Version: 1.5.5
|
2022-11-09 02:47:21 +00:00
|
|
|
Release: %autorelease
|
2018-01-02 23:01:14 +00:00
|
|
|
Summary: Header files from the SPIR-V registry
|
|
|
|
|
|
|
|
License: MIT
|
2022-06-16 20:26:38 +00:00
|
|
|
URL: https://github.com/KhronosGroup/SPIRV-Headers/
|
2023-03-17 16:58:28 +00:00
|
|
|
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
2018-01-02 23:01:14 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2023-01-31 03:40:28 +00:00
|
|
|
BuildRequires: cmake3
|
2023-01-31 03:50:53 +00:00
|
|
|
BuildRequires: ninja-build
|
2023-01-31 03:40:28 +00:00
|
|
|
BuildRequires: gcc
|
2023-01-31 03:57:20 +00:00
|
|
|
BuildRequires: gcc-c++
|
2023-01-31 03:40:28 +00:00
|
|
|
|
2018-01-02 23:01:14 +00:00
|
|
|
%description
|
|
|
|
%{summary}
|
2019-06-10 15:38:54 +00:00
|
|
|
|
2018-01-02 23:01:14 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%{summary}
|
2019-06-10 15:38:54 +00:00
|
|
|
|
2018-01-02 23:01:14 +00:00
|
|
|
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 fil
|
|
|
|
|
|
|
|
%prep
|
2023-03-17 16:58:28 +00:00
|
|
|
%autosetup -n SPIRV-Headers-%{commit}
|
2018-01-09 12:17:47 +00:00
|
|
|
chmod a-x include/spirv/1.2/spirv.py
|
2018-01-02 23:01:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2023-01-31 03:40:28 +00:00
|
|
|
%cmake3 -DCMAKE_INSTALL_LIBDIR=%{_lib} -GNinja
|
2023-01-31 03:33:00 +00:00
|
|
|
%cmake_build
|
2018-01-02 23:01:14 +00:00
|
|
|
|
|
|
|
%install
|
2023-01-31 03:33:00 +00:00
|
|
|
%cmake_install
|
2018-01-02 23:01:14 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_includedir}/spirv/
|
2023-01-31 03:33:00 +00:00
|
|
|
%{_datadir}/cmake/SPIRV-Headers/*.cmake
|
|
|
|
%{_datadir}/pkgconfig/SPIRV-Headers.pc
|
2018-01-02 23:01:14 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-11-09 02:47:21 +00:00
|
|
|
%autochangelog
|