#
# Conditional build:
- %bcond_with tests # build with tests
- #
+ %bcond_without tests # build with tests
-#
+
Summary: Khronos reference front-end for GLSL and ESSL
Summary(pl.UTF-8): Wzorcowy frontend GLSL i ESSL z projektu Khronos
Name: glslang
-Version: 7.11.3214
+Version: 7.12.3352
Release: 1
License: BSD-like
Group: Applications/Graphics
+ #Source0Download: https://github.com/KhronosGroup/glslang/releases
Source0: https://github.com/KhronosGroup/glslang/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 4699eeb6501bad8ed982a279fb827390
+# Source0-md5: b31bc89ffa86dbb5ab638c9c2a412302
Patch0: runtests.patch
+ Patch1: %{name}-system-spirv.patch
URL: https://github.com/KhronosGroup/glslang
BuildRequires: cmake >= 2.8.11
BuildRequires: bison
BuildRequires: libstdc++-devel >= 6:4.7
+ %{?with_tests:BuildRequires: spirv-tools-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary: Khronos reference front-end libraries for GLSL and ESSL
Summary(pl.UTF-8): Wzorcowe biblioteki frontendowe GLSL i ESSL z projektu Khronos
Group: Development/Libraries
+ Requires: %{name} = %{version}-%{release}
%description devel
A front-end libraries for programmatic parsing of GLSL/ESSL into an
%prep
%setup -q
%patch0 -p1
+ %patch1 -p1
%build
install -d build
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
- install build/StandAlone/libglslang-default-resource-limits.so $RPM_BUILD_ROOT%{_libdir}
-
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libHLSL.so
%attr(755,root,root) %{_libdir}/libSPIRV.so
%attr(755,root,root) %{_libdir}/libSPVRemapper.so
- %attr(755,root,root) %{_libdir}/libglslang-default-resource-limits.so
%attr(755,root,root) %{_libdir}/libglslang.so
+ %attr(755,root,root) %{_libdir}/libglslang-default-resource-limits.so
%files devel
%defattr(644,root,root,755)