4 Commits

Author SHA256 Message Date
e310b3d9d4 Add missing runtime dependency to the SPIRV-Tools-opt development package
In the cmake support files provided by glslang, the mentioned package is
required, but was not listed as a runtime dependency of the glslang
development package.
2025-01-02 10:03:47 +01:00
00d092be3e glslang 15.1 2024-12-16 20:55:11 +01:00
fe753e3e5a glslang 15 2024-09-26 23:25:08 +02:00
b2956866ab glslang 14.3 (Synchronize with OBS) 2024-07-10 11:39:16 +02:00
4 changed files with 20 additions and 39 deletions

Binary file not shown.

BIN
15.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,20 +1,3 @@
-------------------------------------------------------------------
Thu Mar 13 16:47:27 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 15.2
* Emit error if using in/out with struct pointer
* Emit SPV_EXT_opacity_micromap if GL extension is present
* Support GL_NV_linear_swept_spheres, GLSL_EXT_nontemporal_keyword,
GL_NV_cluster_acceleration_structure, GL_NV_cooperative_vector,
GL_EXT_texture_offset_non_const, EXT_integer_dot_product
* Check SparseTextureOffset non-const parameters
* Revert cross-stage check for missing outputs
* Add support for OpTypeRayQueryKHR and
OpTypeAccelerationStructureKHR to SPVRemapper
- Make build recipe POSIX sh compatible
- Switch Leap compiler to gcc 13 following the rest of the
Vulkan stack
-------------------------------------------------------------------
Thu Jan 2 08:54:06 UTC 2025 - Ralf Habacker <ralf.habacker@freenet.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package glslang
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,29 +17,26 @@
%define lname libglslang15
%if 0%{?suse_version} < 1600
%define gcc_version 13
%endif
Name: glslang
Version: 15.2.0
Version: 15.1.0
Release: 0
Summary: OpenGL and OpenGL ES shader front end and validator
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
#Git-URL: https://github.com/KhronosGroup/glslang
# tag 15.2.0 missing in git as of 2025-03-13
%define rev 0018771b46c492e28ca916b00eda96093381a3b2
Source: https://github.com/KhronosGroup/glslang/archive/%rev.tar.gz
Source: https://github.com/KhronosGroup/glslang/archive/refs/tags/%version.tar.gz
Source3: baselibs.conf
BuildRequires: bison
BuildRequires: cmake >= 3.14.0
BuildRequires: fdupes
BuildRequires: gcc%{?gcc_version} >= 9
BuildRequires: gcc%{?gcc_version}-c++ >= 9
BuildRequires: python3-base
BuildRequires: spirv-tools-devel >= 2025.1~rc1
BuildRequires: spirv-tools-devel >= 2024.4~rc2
%if 0%{?suse_version} && 0%{?suse_version} < 1599
BuildRequires: gcc12-c++
%else
BuildRequires: c++_compiler
%endif
%description
glslang is a compiler front end for the OpenGL ES and OpenGL shading
@@ -89,17 +86,18 @@ This package contains additional headers that are not officially installed,
but which some downstream packages rely on.
%prep
%autosetup -n glslang-%rev -p1
%autosetup -p1
%build
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
# (gh#3052 #3311 #3312 #3593) -- supposedly handled better in
# glslang-15 and onwards, do watch for ABI breaks
#echo "V_%version { global: *; };" >/tmp/z.sym
%if 0%{?suse_version} && 0%{?suse_version} < 1599
export CC=gcc-12 CXX=g++-12
%endif
# Trim -Wl,--no-undefined for now (https://github.com/KhronosGroup/glslang/issues/1484)
%cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
-DCMAKE_C_COMPILER="gcc%{?gcc_version:-%{gcc_version}}" \
-DCMAKE_CXX_COMPILER="g++%{?gcc_version:-%{gcc_version}}" \
-DALLOW_EXTERNAL_SPIRV_TOOLS:BOOL=ON -DENABLE_OPT:BOOL=ON
%make_build
@@ -109,12 +107,12 @@ od="$PWD"
%cmake_install
b="%buildroot"
cd "$b"
pushd "$b"
(
find usr/include -mindepth 1 -type d -printf "%%%%dir /%p\n"
find usr/include "(" -type f -o -type l ")" -printf "/%p\n"
) | sort >"$od/devel.files"
cd -
popd
mkdir -p "$b/%_includedir/External/"
cp -a glslang "$b/%_includedir/"
@@ -122,12 +120,12 @@ cp -a SPIRV StandAlone "$b/%_includedir/External/"
find "$b/%_includedir/" -type f ! -iname "*.h" -a ! -iname "*.hpp" -print -delete
find "$b/%_includedir/" -type f -exec chmod a-x "{}" "+"
cd "$b"
pushd "$b"
(
find usr/include -mindepth 1 -type d -printf "%%%%dir /%p\n"
find usr/include "(" -type f -o -type l ")" -printf "/%p\n"
) | sort >"$od/devel_full.files"
cd -
popd
comm -13 "$od/devel.files" "$od/devel_full.files" >"$od/devel2.files"
# 3rd party programs use -lOSDependent (because pristine glslang shipped .a