%global build_repo https://github.com/KhronosGroup/SPIRV-Headers %global latest_data %(git ls-remote %{build_repo} | grep -P 'refs/tags/[0-9.]+' | sort -Vrk 2 | head -1) %global numeric_ver %(echo %{latest_data} | grep -oP 'tags/.*' | grep -oP '[0-9.]+') %global commit_date %(date +"%Y%m%d") %global rel_build %{commit_date}%{?dist} Name: spirv-headers Version: %{numeric_ver} Release: %{rel_build} Summary: Header files from the SPIR-V registry License: MIT URL: %{build_repo} Source0: %url/archive/%{version}/%{name}-%{version}.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-%{version} 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 * Sun Aug 04 2019 Mihai Vultur - Implement some version autodetection to reduce maintenance work. * Mon Jun 10 03:08:22 CEST 2019 Robert-André Mauchin - 1.4.1-1 - Release 1.4.1 * Thu Mar 07 2019 Dave Airlie - 1.2-0.12.20190307.git03a0815 - Update to latest version * Mon Feb 04 2019 Dave Airlie - 1.2-0.11.20190125.git8bea0a2 - Update to latest version * Sun Feb 03 2019 Fedora Release Engineering - 1.2-0.10.20180703.gitff684ff - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Oct 20 2018 Leigh Scott - 1.2-0.9.20180703.gitff684ff - Revert last commit * Sat Oct 20 2018 Leigh Scott - 1.2-0.8.20180919.gitd5b2e12 - Update for SPIRV-Tools-2018.5 * Mon Jul 23 2018 Leigh Scott - 1.2-0.7.20180703.gitff684ff - Update for SPIRV-Tools-2018.4 * Sat Jul 14 2018 Fedora Release Engineering - 1.2-0.6.20180405.git12f8de9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Apr 24 2018 Leigh Scott - 1.2-0.5.20180405.git12f8de9 - Update for vulkan 1.0.73.0 * Fri Feb 09 2018 Leigh Scott - 1.2-0.4.20180201.gitce30920 - Update for vulkan 1.0.68.0 * Fri Feb 09 2018 Fedora Release Engineering - 1.2-0.3.20171015.git0610978 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 22 2018 Leigh Scott - 1.2-0.2.20171015.git0610978 - fix rpmlint error * Thu Jul 13 2017 Leigh Scott - 1.2-0.1.20171015.git0610978 - First build