forked from pool/glslang
Accepting request 631836 from X11:Wayland
- Update to new upstream release 7.8.2853 OBS-URL: https://build.opensuse.org/request/show/631836 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glslang?expand=0&rev=10
This commit is contained in:
commit
c5a8c8cbfa
7
_service
7
_service
@ -2,9 +2,10 @@
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">git://github.com/KhronosGroup/glslang</param>
|
||||
<!-- minor part in glslang/Include/revision.h -->
|
||||
<param name="revision">a51525059f3f264c2337ae72997ca4e7ad7e17d0</param>
|
||||
<param name="versionformat">6.2.2604</param>
|
||||
<!-- minor part also in glslang/Include/revision.h -->
|
||||
<param name="revision">e7df8e0b76af2fb9f58124be6b95688e5dbcdb7a</param>
|
||||
<param name="parent-tag">7.8.2853</param>
|
||||
<param name="versionformat">7.8.2853.g@TAG_OFFSET@</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eb73b76b77bfa2442348418bfcac480f5eb807e70d706ac0a32ca504599e5019
|
||||
size 1317756
|
3
glslang-7.8.2853.g9.tar.xz
Normal file
3
glslang-7.8.2853.g9.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e49be2cc513162cddad001f8caa5868631fe87cb6b2fa6d91f37d8c4569aa334
|
||||
size 1364904
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 24 07:02:34 UTC 2018 - jengelh@inai.de
|
||||
|
||||
- Update to new upstream release 7.8.2853
|
||||
* Link/SPV: Correct symbol IDs on merging ASTs to a single coherent space.
|
||||
* Add missing OpExtension SPV_EXT_descriptor_indexing for dynamic indexing
|
||||
capabilities.
|
||||
* GLSL/Vulkan: Warn about arrays of arrays of resources that need bindings.
|
||||
* GLSL/SPV: Implement SPV_EXT_descriptor_indexing and
|
||||
GL_EXT_nonuniform_qualifier.
|
||||
* Implement GL_NV_shader_subgroup_partitioned.
|
||||
* Add support for GL_NV_shader_noperspective_interpolation.
|
||||
- Add ver.diff.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 8 00:39:46 UTC 2018 - jengelh@inai.de
|
||||
|
||||
|
44
glslang.spec
44
glslang.spec
@ -16,10 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%define version_unconverted 6.2.2604
|
||||
%define version_unconverted 7.8.2853.g9
|
||||
|
||||
Name: glslang
|
||||
Version: 6.2.2604
|
||||
Version: 7.8.2853.g9
|
||||
Release: 0
|
||||
Summary: OpenGL and OpenGL ES shader front end and validator
|
||||
License: BSD-3-Clause
|
||||
@ -28,24 +28,35 @@ Url: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
|
||||
|
||||
Source: %name-%version.tar.xz
|
||||
Patch1: nodate.diff
|
||||
Patch2: ver.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake >= 2.8
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
%description
|
||||
glslang 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.
|
||||
glslang is a compiler front end for the OpenGL ES and OpenGL shading
|
||||
languages. It implements a strict interpretation of the
|
||||
specifications for these languages.
|
||||
|
||||
%package -n libglslang-suse1
|
||||
Summary: OpenGL and OpenGL ES shader front end implementation
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libglslang-suse1
|
||||
glslang is a 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: OpenGL and OpenGL ES shader front end and validator
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libglslang-suse1 = %version
|
||||
|
||||
%description devel
|
||||
glslang 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.
|
||||
glslang is a compiler front end for the OpenGL ES and OpenGL shading
|
||||
languages. It implements a strict interpretation of the
|
||||
specifications for these languages.
|
||||
|
||||
spirv-remap is a utility to improve compression of SPIR-V binary
|
||||
files via entropy reduction, plus optional stripping of debug
|
||||
@ -56,11 +67,11 @@ better when multiple modules are compressed together, since
|
||||
compressor's dictionary can find better cross module commonality.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P 1 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake
|
||||
# Trim -Wl,--no-undefined for now (https://github.com/KhronosGroup/glslang/issues/1484)
|
||||
%cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -73,12 +84,23 @@ ln -s SPIRV/spirv.hpp "$b/%_includedir/"
|
||||
find "$b/%_includedir/" -type f -exec chmod a-x "{}" "+"
|
||||
cp build/StandAlone/libglslang-default-resource-limits.so "$b/%_libdir/"
|
||||
|
||||
%post -n libglslang-suse1 -p /sbin/ldconfig
|
||||
%postun -n libglslang-suse1 -p /sbin/ldconfig
|
||||
|
||||
%files -n libglslang-suse1
|
||||
%defattr(-,root,root)
|
||||
%_libdir/*.so.suse1*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_bindir/gls*
|
||||
%_bindir/spirv*
|
||||
%_libdir/*.a
|
||||
%_libdir/*resource*.so
|
||||
%_libdir/libHLSL.so
|
||||
%_libdir/libSPIRV.so
|
||||
%_libdir/libSPVRemapper.so
|
||||
%_libdir/libglslang.so
|
||||
%_includedir/*
|
||||
|
||||
%changelog
|
||||
|
66
ver.diff
Normal file
66
ver.diff
Normal file
@ -0,0 +1,66 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2018-08-25 15:28:25.894943233 +0200
|
||||
|
||||
Unversioned libraries suck!
|
||||
|
||||
---
|
||||
SPIRV/CMakeLists.txt | 2 ++
|
||||
StandAlone/CMakeLists.txt | 1 +
|
||||
glslang/CMakeLists.txt | 1 +
|
||||
hlsl/CMakeLists.txt | 1 +
|
||||
4 files changed, 5 insertions(+)
|
||||
|
||||
Index: glslang-7.8.2853.g9/SPIRV/CMakeLists.txt
|
||||
===================================================================
|
||||
--- glslang-7.8.2853.g9.orig/SPIRV/CMakeLists.txt
|
||||
+++ glslang-7.8.2853.g9/SPIRV/CMakeLists.txt
|
||||
@@ -42,12 +42,14 @@ if(ENABLE_NV_EXTENSIONS)
|
||||
endif(ENABLE_NV_EXTENSIONS)
|
||||
|
||||
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
||||
+set_target_properties(SPIRV PROPERTIES SOVERSION suse1)
|
||||
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
||||
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
target_include_directories(SPIRV PUBLIC ..)
|
||||
|
||||
if (ENABLE_SPVREMAPPER)
|
||||
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
||||
+ set_target_properties(SPVRemapper PROPERTIES SOVERSION suse1)
|
||||
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
|
||||
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
Index: glslang-7.8.2853.g9/StandAlone/CMakeLists.txt
|
||||
===================================================================
|
||||
--- glslang-7.8.2853.g9.orig/StandAlone/CMakeLists.txt
|
||||
+++ glslang-7.8.2853.g9/StandAlone/CMakeLists.txt
|
||||
@@ -1,5 +1,6 @@
|
||||
add_library(glslang-default-resource-limits
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ResourceLimits.cpp)
|
||||
+set_target_properties(glslang-default-resource-limits PROPERTIES SOVERSION suse1)
|
||||
set_property(TARGET glslang-default-resource-limits PROPERTY FOLDER glslang)
|
||||
set_property(TARGET glslang-default-resource-limits PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
Index: glslang-7.8.2853.g9/glslang/CMakeLists.txt
|
||||
===================================================================
|
||||
--- glslang-7.8.2853.g9.orig/glslang/CMakeLists.txt
|
||||
+++ glslang-7.8.2853.g9/glslang/CMakeLists.txt
|
||||
@@ -81,6 +81,7 @@ set(HEADERS
|
||||
# set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp)
|
||||
|
||||
add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
|
||||
+set_target_properties(glslang PROPERTIES SOVERSION suse1)
|
||||
set_property(TARGET glslang PROPERTY FOLDER glslang)
|
||||
set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
target_link_libraries(glslang OGLCompiler OSDependent)
|
||||
Index: glslang-7.8.2853.g9/hlsl/CMakeLists.txt
|
||||
===================================================================
|
||||
--- glslang-7.8.2853.g9.orig/hlsl/CMakeLists.txt
|
||||
+++ glslang-7.8.2853.g9/hlsl/CMakeLists.txt
|
||||
@@ -18,6 +18,7 @@ set(HEADERS
|
||||
hlslParseables.h)
|
||||
|
||||
add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
||||
+set_target_properties(HLSL PROPERTIES SOVERSION suse1)
|
||||
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
||||
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
Loading…
Reference in New Issue
Block a user