diff --git a/spirv-headers-dc77030acc9c6fe7ca21fff54c5a9d7b532d7da6.tar.gz b/spirv-headers-dc77030acc9c6fe7ca21fff54c5a9d7b532d7da6.tar.gz new file mode 100644 index 0000000..b4ff686 Binary files /dev/null and b/spirv-headers-dc77030acc9c6fe7ca21fff54c5a9d7b532d7da6.tar.gz differ diff --git a/spirv-headers.spec b/spirv-headers.spec new file mode 100644 index 0000000..612c319 --- /dev/null +++ b/spirv-headers.spec @@ -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 - 1.5.1-2 +- Initial version.