65 lines
1.4 KiB
RPMSpec
65 lines
1.4 KiB
RPMSpec
%global commit 4f7b471f1a66b6d06462cd4ba57628cc0cd087d7
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
Name: spirv-headers
|
|
Version: 1.5.5
|
|
Release: %autorelease
|
|
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
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: cmake3
|
|
BuildRequires: ninja-build
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
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}
|
|
|
|
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}
|
|
chmod a-x include/spirv/1.2/spirv.py
|
|
|
|
|
|
%build
|
|
%cmake3 -DCMAKE_INSTALL_LIBDIR=%{_lib} -GNinja
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_includedir}/spirv/
|
|
%{_datadir}/cmake/SPIRV-Headers/*.cmake
|
|
%{_datadir}/pkgconfig/SPIRV-Headers.pc
|
|
|
|
%changelog
|
|
%autochangelog
|