spirv-headers/spirv-headers.spec

65 lines
1.4 KiB
RPMSpec
Raw Normal View History

2024-05-28 08:09:26 +00:00
%global commit 4f7b471f1a66b6d06462cd4ba57628cc0cd087d7
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2018-01-02 23:01:14 +00:00
Name: spirv-headers
Version: 1.5.5
Release: %autorelease
2018-01-02 23:01:14 +00:00
Summary: Header files from the SPIR-V registry
License: MIT
URL: https://github.com/KhronosGroup/SPIRV-Headers/
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}
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}
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
%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
%autochangelog