%define sdkver 1.3.246.1 Name: spirv-tools Version: 2023.1+%{sdkver} Release: 1%{?dist} Summary: API and commands for processing SPIR-V modules License: ASL 2.0 URL: https://github.com/KhronosGroup/SPIRV-Tools Source0: %url/archive/sdk-%{sdkver}.tar.gz#/SPIRV-Tools-sdk-%{sdkver}.tar.gz BuildRequires: cmake3 BuildRequires: ninja-build %if 0%{?rhel} == 7 BuildRequires: devtoolset-8-gcc BuildRequires: devtoolset-8-gcc-c++ BuildRequires: python36-devel %else BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: python3-devel %endif BuildRequires: python3-rpm-macros BuildRequires: spirv-headers-devel = 1.6.1+%{sdkver} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description The package includes an assembler, binary module parser, disassembler, and validator for SPIR-V. %package libs Summary: Library files for %{name} Provides: %{name}-libs%{?_isa} = %{version} %description libs library files for %{name} %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Development files for %{name} %prep %autosetup -p1 -n SPIRV-Tools-sdk-%{sdkver} %build %if 0%{?rhel} == 7 . /opt/rh/devtoolset-8/enable %endif %cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DSPIRV-Headers_SOURCE_DIR=%{_prefix} \ -DPYTHON_EXECUTABLE=%{__python3} \ -DSPIRV_TOOLS_BUILD_STATIC=OFF \ -GNinja %cmake_build %install %cmake_install %ldconfig_scriptlets libs %files %license LICENSE %doc README.md CHANGES %{_bindir}/spirv-as %{_bindir}/spirv-cfg %{_bindir}/spirv-dis %{_bindir}/spirv-lesspipe.sh %{_bindir}/spirv-link %{_bindir}/spirv-lint %{_bindir}/spirv-opt %{_bindir}/spirv-reduce %{_bindir}/spirv-val %files libs %{_libdir}/libSPIRV-Tools-diff.so %{_libdir}/libSPIRV-Tools-link.so %{_libdir}/libSPIRV-Tools-lint.so %{_libdir}/libSPIRV-Tools-opt.so %{_libdir}/libSPIRV-Tools.so %{_libdir}/libSPIRV-Tools-reduce.so %{_libdir}/libSPIRV-Tools-shared.so %files devel %{_includedir}/spirv-tools/ %{_libdir}/cmake/* %{_libdir}/pkgconfig/SPIRV-Tools-shared.pc %{_libdir}/pkgconfig/SPIRV-Tools.pc %changelog * Mon May 15 2023 Jean-Marc Liger - 2023.1+1.3.246.1-1 - Update to 2023.1+1.3.246.1 for SPIR-V 2023.1 and 1.3.246.1 SDK Version (44d72a9) * Validate version 5 of clspv reflection * Fix undef behaviour in hex float parsing * Sat Feb 18 2023 Jean-Marc Liger - 2023.1+1.3.239.0-1 - Update to 2023.1+1.3.239.0 for SPIR-V 2023.1 and 1.3.239.0 SDK Version (63de608) * Only validate full layout in Vulkan environments * Prevent eliminating case constructs in block merging * Add pass to eliminate dead output components * Add support for tesc, tese and geom to EliminateDead*Components * Add option to ADCE to remove output variables from interface * Validate version 5 of clspv reflection * Fix undef behaviour in hex float parsing - Rebuild for COPR EL7, EL8 and EL9 * Wed Sep 21 2022 Jean-Marc Liger - 2022.4+1.3.231.1-1 - Update to 2022.3+1.3.231.1 for SPIR-V 2022.4 and 1.3.231.1 SDK Version * Add structs to eliminate dead input components * spirv-val: Add SPV_KHR_ray_tracing storage class * Improve algorithm to reorder blocks in a function * spirv-val: Add initial SPV_EXT_mesh_shader validation * spirv-val: Add SPV_ARM_core_builtins validation * Support Narrow Types in BitCast Folding Rule - Rebuild for COPR EL7, EL8 and EL9 * Wed Sep 21 2022 Jean-Marc Liger - 2022.3+1.3.224.1-1 - Update to 2022.3+1.3.224.1 for SPIR-V 2022.3 and 1.3.224.1 SDK Version * spirv-val: Add support for SPV_AMD_shader_early_and_late_fragment_tests * Avoid replacing access chain with OOB access * Avoid undefined divide-by-0 * Fixed crash unrolling loops with residual iterations * Fix segfault in `SpirvTools::Disassemble` when printing * Avoid undefined behaviour when getting debug opcode * spirv-val: Add Vulkan decoration interface * Implement SPV_NV_bindless_texture related changes * spirv-val: Add SPV_KHR_ray_tracing instructions - Rebuild for COPR EL7, EL8 and EL9 * Sat Aug 06 2022 Jean-Marc Liger - 2022.2+1.3.216.0-1 - Update to 2022.2+1.3.216.0 for SPIR-V 1.6.1 and 1.3.216.0 SDK Version * Add folding rule to generate Fma instructions * Add support for SPV_KHR_subgroup_rotate * spirv-val: Add CullMaskKHR support * Add SPV_KHR_fragment_shader_barycentric support * Add more folding for composite instructions * spirv-val: Add PerVertexKHR * Fold multiply and subtraction into FMA with negation - Rebuild for COPR EL7, EL8 and EL9 * Tue Apr 26 2022 Jean-Marc Liger - 2022.2-1 - Update to 2022.2 for SPIR-V 1.6.1 and 1.3.211 SDK Version * Handle propagation of arrays with decorations * spirv-opt: Add OpExecutionModeId support * Support SPV_KHR_uniform_group_instructions * Introduce spirv-diff * Wed Feb 02 2022 Jean-Marc Liger - 2022.1-1 - Update to 2022-1 for SPIR-V 1.6 and 1.3.204 SDK Version - Rebuild for COPR EL7 and EL8 * Mon Nov 29 2021 Jean-Marc Liger - 2021.5-1.20211008.git4b092d2 - Update to 1.2.200 SDK Version - Rebuild for COPR EL7 and EL8 * Mon Oct 18 2021 Jean-Marc Liger - 2021.4-1.20211008.git35fd0e1 - Update to 1.2.196 SDK Version - Rebuild for COPR EL7 and EL8 * Tue Sep 07 2021 Dave Airlie - 2021.3-1.20210825.git1fbed83 - Update to 1.2.189.0 SDK Version * Fri Jul 23 2021 Fedora Release Engineering - 2021.2-2.20210619.git5dd2f76 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Dave Airlie - 2021.2-1 - Update to 1.2.182.0 SDK Version * Tue May 18 2021 Dave Airlie - 2021.1-1 - Update to 1.2.176.1 SDK version * Thu Jan 28 2021 Dave Airlie - 2020.5-5 - Update to 1.2.162.0 SDK version * Wed Jan 27 2021 Fedora Release Engineering - 2020.5-4.20201031.gitf7da527 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Dec 04 2020 Jeff Law - 2020.5-3.20201031.gitf7da5277 - Fix undesirable strncpy call to instead use memcpy to avoid gcc-11 diagnostic * Mon Nov 02 2020 Dave Airlie - 2020.5-2.20201031.gitf7da5277 - update to latest spirv-tools * Tue Aug 04 2020 Dave Airlie - 2029.5-1.20200803.git92a71657 - update to latest spirv-tools * Wed Jul 29 2020 Fedora Release Engineering - 2019.5-3.20200421.git67f4838 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Apr 22 2020 Dave Airlie - 2019.5-2 - git snapshot for newer glslang/validation layers * Wed Jan 29 2020 Dave Airlie - 2019.5-1 - git snapshot for newer glslang/validation layers * Tue Nov 12 2019 Dave Airlie - 2019.4-1 - git snapshot for newer glslang/validation layers * Thu Aug 01 2019 Dave Airlie - 2019.4-0.1 - git snapshot to let newer vulkan validation layers build - stats removed upstream * Fri Jul 26 2019 Fedora Release Engineering - 2019.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 10 2019 Robert-André Mauchin - 2019.3-1 - Release 2019.3 * Thu Mar 07 2019 Dave Airlie - 2019.1-2 - Add patch to let vulkan-validation-layers build * Mon Feb 04 2019 Dave Airlie - 2019.1-1 - Update to 2019.1 release * Sun Feb 03 2019 Fedora Release Engineering - 2018.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jul 23 2018 Leigh Scott - 2018.4-1 - Update to 2018.4 release * Sat Jul 14 2018 Fedora Release Engineering - 2018.3.0-0.3.20180407.git26a698c - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 25 2018 Dave Airlie - 2018.3.0-0.2.20180407.git26a698c - Move to python3 and drop the simplejson buildreq. * Tue Apr 24 2018 Leigh Scott - 2018.3.0-0.1.20180407.git26a698c - Bump version to 2018.3.0 to match .pc files * Tue Apr 24 2018 Leigh Scott - 2018.1-0.4.20180407.git26a698c - Bump provides to 2018.3.0 * Tue Apr 24 2018 Leigh Scott - 2018.1-0.3.20180407.git26a698c - Update for vulkan 1.1.73.0 * Wed Feb 14 2018 Leigh Scott - 2018.1-0.2.20180205.git9e19fc0 - Add isa to the provides * Fri Feb 09 2018 Leigh Scott - 2018.1-0.1.20180205.git9e19fc0 - Fix version - Fix pkgconfig file - Add version provides to -libs package * Fri Feb 09 2018 Leigh Scott - 2016.7-0.5.20180205.git9e19fc0 - Update for vulkan 1.0.68.0 - Try building as shared object - Split libs into -libs subpackage * Fri Feb 09 2018 Leigh Scott - 2016.7-0.4.20171023.git5834719 - Use ninja to build * Mon Jan 22 2018 Leigh Scott - 2016.7-0.3.20171023.git5834719 - Add python prefix to fix the stupid Bodhi tests * Wed Jan 03 2018 Leigh Scott - 2016.7-0.2.20171023.git5834719 - Split binaries into main package * Thu Jul 13 2017 Leigh Scott - 2016.7-0.1.20171023.git5834719 - First build