diff --git a/13.1.1.tar.gz b/glslang-13.1.1.tar.gz similarity index 100% rename from 13.1.1.tar.gz rename to glslang-13.1.1.tar.gz diff --git a/glslang.changes b/glslang.changes index 1f580fb..e762efe 100644 --- a/glslang.changes +++ b/glslang.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 2 13:44:22 UTC 2023 - Hillwood Yang + +- Fix include dirs for headers of SPIRV and StandAlone. According to the setting + in %{_libdir}/cmake/glslang/glslang-targets.cmake, headers of SPIRV and + StandAlone should be installed in %{_includedir}/External + ------------------------------------------------------------------- Sun Oct 22 02:09:01 UTC 2023 - Jan Engelhardt diff --git a/glslang.spec b/glslang.spec index 4b1e86b..8bd1fd8 100644 --- a/glslang.spec +++ b/glslang.spec @@ -25,7 +25,7 @@ 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 -Source: https://github.com/KhronosGroup/glslang/archive/%version.tar.gz +Source: https://github.com/KhronosGroup/glslang/archive/%version/%{name}-%{version}.tar.gz Source3: baselibs.conf BuildRequires: bison BuildRequires: cmake >= 3.14.0 @@ -112,8 +112,10 @@ pushd "$b" ) | sort >"$od/devel.files" popd -mkdir -p "$b/%_includedir" -cp -a SPIRV StandAlone glslang "$b/%_includedir/" +mkdir -p "$b/%_includedir/External/" +cp -a glslang "$b/%_includedir/" +cp -a SPIRV StandAlone "$b/%_includedir/External/" +ln -sf "%_includedir/External/SPIRV" "$b/%_includedir/" find "$b/%_includedir/" -type f ! -iname "*.h" -a ! -iname "*.hpp" -print -delete ln -s SPIRV/spirv.hpp "$b/%_includedir/" find "$b/%_includedir/" -type f -exec chmod a-x "{}" "+"