2016-02-17 12:08:27 +01:00
|
|
|
#
|
|
|
|
# spec file for package glslang
|
|
|
|
#
|
2018-02-08 00:02:23 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-02-17 12:08:27 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-03-08 01:43:18 +01:00
|
|
|
%define version_unconverted 6.2.2604
|
2016-05-03 08:58:18 +02:00
|
|
|
|
2016-02-17 12:08:27 +01:00
|
|
|
Name: glslang
|
2018-03-08 01:43:18 +01:00
|
|
|
Version: 6.2.2604
|
2016-02-17 12:08:27 +01:00
|
|
|
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/
|
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
2017-08-07 20:26:10 +02:00
|
|
|
Patch1: nodate.diff
|
2016-02-17 12:08:27 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: OpenGL and OpenGL ES shader front end and validator
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
spirv-remap is a utility to improve compression of SPIR-V binary
|
|
|
|
files via entropy reduction, plus optional stripping of debug
|
|
|
|
information and load/store optimization. It transforms SPIR-V to
|
|
|
|
SPIR-V, remapping IDs. The resulting modules have an increased ID
|
|
|
|
range (IDs are not as tightly packed around zero), but will compress
|
|
|
|
better when multiple modules are compressed together, since
|
|
|
|
compressor's dictionary can find better cross module commonality.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-08-07 20:26:10 +02:00
|
|
|
%patch -P 1 -p1
|
2016-02-17 12:08:27 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2016-02-17 17:55:35 +01:00
|
|
|
b="%buildroot"
|
2016-02-17 12:08:27 +01:00
|
|
|
%cmake_install
|
2016-02-17 17:55:35 +01:00
|
|
|
mkdir -p "$b/%_includedir"
|
2016-02-17 18:38:33 +01:00
|
|
|
cp -a SPIRV glslang "$b/%_includedir/"
|
2016-02-18 23:11:12 +01:00
|
|
|
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 "{}" "+"
|
2016-05-06 13:36:57 +02:00
|
|
|
cp build/StandAlone/libglslang-default-resource-limits.so "$b/%_libdir/"
|
2016-02-17 12:08:27 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/gls*
|
|
|
|
%_bindir/spirv*
|
|
|
|
%_libdir/*.a
|
2016-05-06 13:36:57 +02:00
|
|
|
%_libdir/*resource*.so
|
2016-02-17 18:38:33 +01:00
|
|
|
%_includedir/*
|
2016-02-17 12:08:27 +01:00
|
|
|
|
|
|
|
%changelog
|