%global commit 63e1062a194750b354d48be8c16750d7a4d0dc4e %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commit_date 20170516 %global gitrel .%{commit_date}.git%{shortcommit} Name: spirv-headers Version: 1.2 Release: 0.1%{?gitrel}%{?dist} Summary: Header files from the SPIR-V registry License: MIT URL: https://github.com/KhronosGroup Source0: %url/SPIRV-Headers/archive/%{commit}.tar.gz#/%{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} %build %install mkdir -p %buildroot%{_includedir}/ mv include/* %buildroot%{_includedir}/ %files devel %license LICENSE %doc README.md %{_includedir}/spirv/ %changelog * Thu Jul 13 2017 Leigh Scott - 1.2-0.1.20170516.git63e1062 - First build