forked from pool/glslang
74 lines
2.4 KiB
RPMSpec
74 lines
2.4 KiB
RPMSpec
|
#
|
||
|
# spec file for package glslang
|
||
|
#
|
||
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: glslang
|
||
|
Version: 2.3.g244
|
||
|
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
|
||
|
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
|
||
|
|
||
|
%build
|
||
|
%cmake
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
%cmake_install
|
||
|
mkdir -p "%buildroot/%_libdir"
|
||
|
mv "%buildroot/%_prefix/lib"/*.a "%buildroot/%_libdir/"
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%_bindir/gls*
|
||
|
%_bindir/spirv*
|
||
|
%_libdir/*.a
|
||
|
|
||
|
%changelog
|