%define package_name spirv-headers %global build_branch master %global build_repo https://github.com/KhronosGroup/SPIRV-Headers %global version_file https://raw.githubusercontent.com/KhronosGroup/SPIRV-Headers/{}/CMakeLists.txt %global version_tag_regex reg_beg ([0-9.]+[0-9]) reg_end %define version_string 1.5.4 %define commit f027d53ded7e230e008d37c8b47ede7cd308e19d %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commit_date 20201227 %global gitrel .%{commit_date}.%{shortcommit} Name: %{package_name} Summary: Header files from the SPIR-V registry Version: %{version_string} Release: 0.2%{?gitrel}%{?dist} License: MIT URL: %{build_repo} Source0: %{build_repo}/archive/%{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 #force downloading the project, seems that copr dist-cache is poisoned with bogus archive curl -Lo %{_sourcedir}/%{commit}.tar.gz %{build_repo}/archive/%{commit}.tar.gz %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 * 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