!1 Initial version

From: @vyloy
Reviewed-by: @jianminw
Signed-off-by: @jianminw
This commit is contained in:
openeuler-ci-bot 2020-10-13 15:37:21 +08:00 committed by Gitee
commit a8eb0c3c89
2 changed files with 59 additions and 0 deletions

59
spirv-headers.spec Normal file
View File

@ -0,0 +1,59 @@
%global commit dc77030acc9c6fe7ca21fff54c5a9d7b532d7da6
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20200121
%global gitrel .%{commit_date}.git%{shortcommit}
Name: spirv-headers
Version: 1.5.1
Release: 2%{?gitrel}%{?dist}
Summary: Header files from the SPIR-V registry
License: MIT
URL: https://github.com/KhronosGroup
Source0: %url/SPIRV-Headers/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch: noarch
%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
%install
mkdir -p %buildroot%{_includedir}/
mv include/* %buildroot%{_includedir}/
%files devel
%license LICENSE
%doc README.md
%{_includedir}/spirv/
%changelog
* Fri Oct 09 2020 Zhiyi Weng <zhiyi@iscas.ac.cn> - 1.5.1-2
- Initial version.