Use ninja to build

This commit is contained in:
leigh123linux 2018-02-09 12:29:27 +00:00
parent a9c708dcc0
commit 6dfd4a16e1

View File

@ -5,7 +5,7 @@
Name: glslang
Version: 3.1
Release: 0.4%{?gitrel}%{?dist}
Release: 0.5%{?gitrel}%{?dist}
Summary: OpenGL and OpenGL ES shader front end and validator
License: BSD and GPLv3+ and ASL 2.0
@ -17,6 +17,7 @@ Patch2: glslang_tests.patch
BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: ninja-build
%description
%{name} is the official reference compiler front end for the OpenGL
@ -42,12 +43,13 @@ find . -name '*.h' -or -name '*.cpp' -or -name '*.hpp'| xargs chmod a-x
pushd build
%cmake3 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_SKIP_RPATH:BOOL=yes ..
%{make_build}
-DCMAKE_SKIP_RPATH:BOOL=yes \
-GNinja ..
%{ninja_build}
popd
%install
%{make_install} -C build
%{ninja_install} -C build
%ifnarch s390x ppc64
%check
@ -76,6 +78,9 @@ install -pm 0644 build/StandAlone/libglslang-default-resource-limits.a %{buildro
%{_libdir}/libglslang-default-resource-limits.a
%changelog
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.5.20171028.git715c353
- Use ninja to build
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-0.4.20171028.git715c353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild