%define sdkver 1.3.246.1 Name: glslang Version: 12.1.0+%{sdkver} Release: 1%{?dist} Summary: OpenGL and OpenGL ES shader front end and validator License: BSD and GPLv3+ and ASL 2.0 URL: https://github.com/KhronosGroup/%{name} Source0: %url/archive/sdk-%{sdkver}.tar.gz#/%{name}-sdk-%{sdkver}.tar.gz Patch1: glslang-default-resource-limits_staticlib.patch # Patch to build against system spirv-tools (rebased locally) #Patch3: https://patch-diff.githubusercontent.com/raw/KhronosGroup/glslang/pull/1722.patch#/0001-pkg-config-compatibility.patch Patch3: 0001-pkg-config-compatibility.patch BuildRequires: cmake3 %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: ninja-build BuildRequires: spirv-tools-devel = 2023.1+%{sdkver} %description %{name} is the official reference compiler front end for the OpenGL ES and OpenGL shading languages. It implements a strict interpretation of the specifications for these languages. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{name} is the official reference compiler front end for the OpenGL ES and OpenGL shading languages. It implements a strict interpretation of the specifications for these languages. %prep %autosetup -p1 -n %{name}-sdk-%{sdkver} # Fix rpmlint warning on debuginfo find . -name '*.h' -or -name '*.cpp' -or -name '*.hpp'| xargs chmod a-x %build %if 0%{?rhel} == 7 . /opt/rh/devtoolset-8/enable %endif %cmake -DBUILD_SHARED_LIBS=OFF %cmake_build %install %cmake_install # we don't want them in here rm -rf %{buildroot}%{_includedir}/SPIRV %ifnarch s390x ppc64 %check pushd Test ./runtests localResults ../%{_vpath_builddir}/StandAlone/glslangValidator ../%{_vpath_builddir}/StandAlone/spirv-remap popd %endif # Install libglslang-default-resource-limits.a #install -pm 0644 %{_vpath_builddir}/StandAlone/libglslang-default-resource-limits.a %{buildroot}%{_libdir}/ %files %doc README.md README-spirv-remap.txt %{_bindir}/glslangValidator %{_bindir}/spirv-remap %files devel %{_includedir}/glslang/ %{_libdir}/libHLSL.a %{_libdir}/libOGLCompiler.a %{_libdir}/libOSDependent.a %{_libdir}/libSPIRV.a %{_libdir}/libSPVRemapper.a %{_libdir}/libglslang.a %{_libdir}/libGenericCodeGen.a %{_libdir}/libMachineIndependent.a %{_libdir}/libglslang-default-resource-limits.a %{_libdir}/pkgconfig/glslang.pc %{_libdir}/pkgconfig/spirv.pc %{_libdir}/cmake/* %changelog * Thu May 18 2023 Jean-Marc Liger - 12.1.0+1.3.246.1-1 - Update to 12.1.0 + sdk 1.3.246.1 (14e5a04) - Rebuild for COPR EL7, EL8 and EL9 * Sat Feb 18 2023 Jean-Marc Liger - 12.0.0+1.3.239.0-1 - Update to 12.0.0 + sdk 1.3.239.0 (ca8d07d) - Rebuild for COPR EL7, EL8 and EL9 * Fri Nov 11 2022 Jean-Marc Liger - 11.12.0+1.3.231.1-1 - Update to 1.3.231.1 sdk - Rebuild for COPR EL7, EL8 and EL9 * Wed Sep 21 2022 Jean-Marc Liger - 11.11.0+1.3.224.1-1 - Update to 1.3.224.1 sdk - Rebuild for COPR EL7, EL8 and EL9 * Sat Aug 06 2022 Jean-Marc Liger - 11.10.0+1.3.216.0-1 - Update to 1.3.216.0 sdk - Rebuild for COPR EL7, EL8 and EL9 * Tue Apr 26 2022 Jean-Marc Liger - 11.9.0-1.20220422.git06ac141 - Latest snapshot used in 1.3.211 sdk - Rebuild for COPR EL7 and EL8 * Tue Feb 01 2022 Jean-Marc Liger - 11.7.1-1.20220122.git6624e13 - Latest snapshot used in 1.3.204 sdk - Rebuild for COPR EL7 and EL8 * Mon Nov 29 2021 Jean-Marc Liger - 11.7.0-1.20211115.git7141f89 - Latest snapshot used in 1.2.200 sdk - Rebuild for COPR EL7 and EL8 * Sun Oct 24 2021 Jean-Marc Liger - 11.6.0-2.20211008.gitb9ba4c5 - Latest snapshot used in 1.2.196 sdk - Rebuild for COPR EL7 and EL8 * Tue Sep 07 2021 Dave Airlie - 11.6.0-1.20210825.git2fb89a0 - Latest snapshot used in 1.2.189 sdk * Thu Jul 22 2021 Fedora Release Engineering - 11.5.0-2.20210623.gitae2a562 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Dave Airlie - 11.5.0-1 - Latest snapshot used in 1.2.182 sdk * Tue May 18 2021 Dave Airlie - 11.0.0-4.20201208.gitc594de2 - Latest snapshot used in 1.2.162 sdk * Tue Jan 26 2021 Fedora Release Engineering - 11.0.0-3.20201104.gitd550beb - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 04 2020 Dave Airlie - 11.0.0-2 - Latest upstream snapshot * Wed Aug 05 2020 Dave Airlie - 11.0.0-1 - Latest upstream snapshot * Tue Aug 04 2020 Dave Airlie - 8.13.3559-5 - Use cmake macros. * Sat Aug 01 2020 Fedora Release Engineering - 8.13.3559-4.2020421.gitc9b28b9 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 8.13.3559-3.2020421.gitc9b28b9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Apr 22 2020 Dave Airlie - 8.13.3559-2 - Update to latest git snapshot * Wed Jan 29 2020 Dave Airlie - 8.13.3559-1 - Update to latest git snapshot * Tue Jan 28 2020 Fedora Release Engineering - 7.13.3496-3.20191102.git7f77b2e - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Dec 19 2019 Leigh Scott - 7.13.3496-2.20191102.git7f77b2e - Add patch for 'Fix a couple relative header paths in header' * Wed Nov 13 2019 Dave Airlie - 7.13.3496-1 - Latest upstream snapshot for validation layers build * Sat Aug 03 2019 Dave Airlie - 7.11.3214-3 - Latest upstream snapshot for validation layers build * Thu Jul 25 2019 Fedora Release Engineering - 7.11.3214-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 10 2019 Robert-André Mauchin - 7.11.3214-1 - Release 7.11.3214 - Add patch to build against system spirv-tools * Fri Mar 29 2019 Dave Airlie - 3.1-0.13.20190329.gite0d59bb - Update for vulkan 1.1.101.0 * Tue Feb 12 2019 Dave Airlie - 3.1-0.12.20190212.git05d12a9 - Update for vulkan 1.1.92.0 * Thu Jan 31 2019 Fedora Release Engineering - 3.1-0.11.20180727.gite99a268 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Aug 07 2018 Leigh Scott - 3.1-0.10.20180727.gite99a268 - Update for vulkan 1.1.82.0 * Fri Jul 13 2018 Fedora Release Engineering - 3.1-0.9.20180416.git3bb4c48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Apr 23 2018 Leigh Scott - 3.1-0.8.20180416.git3bb4c48 - Update for vulkan 1.1.73.0 * Wed Mar 07 2018 Adam Williamson - 3.1-0.7.20180205.git2651cca - Rebuild to fix GCC 8 mis-compilation See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") * Fri Feb 09 2018 Leigh Scott - 3.1-0.6.20180205.git2651cca - Update for vulkan 1.0.68.0 * Fri Feb 09 2018 Leigh Scott - 3.1-0.5.20171028.git715c353 - Use ninja to build * Wed Feb 07 2018 Fedora Release Engineering - 3.1-0.4.20171028.git715c353 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 03 2018 Leigh Scott - 3.1-0.3.20171028.git715c353 - Exclude s390x and ppc64 from check section * Wed Jan 03 2018 Leigh Scott - 3.1-0.2.20171028.git715c353 - Add check section to run tests - Split binaries into main package * Thu Jul 13 2017 Leigh Scott - 3.1-0.1.20171028.git715c353 - First build