%global git_date 20241113 %global git_hash 45b3140 # version is in CMakeLists.txt %global git_ver 1.5.5 %global rel 1 %global dir_name SPIRV-Headers %global src_name %{dir_name}-%{git_date}-%{git_hash}.tar.xz Name: spirv-headers Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Header files from the SPIR-V registry License: MIT URL: https://github.com/KhronosGroup/SPIRV-Headers Source0: %{url}/%{src_name} 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 file %prep %autosetup -n %{dir_name} 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 %autochangelog