From e1b56e25cf8144a2c8a596c962d82f330412f5591a2169f06074fac0afb25e86 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 17 Feb 2016 16:55:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/glslang?expand=0&rev=3 --- glslang.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/glslang.spec b/glslang.spec index 9f5ee74..832415a 100644 --- a/glslang.spec +++ b/glslang.spec @@ -60,16 +60,21 @@ compressor's dictionary can find better cross module commonality. make %{?_smp_mflags} %install +b="%buildroot" %cmake_install if test "%_lib" != lib; then - mkdir -p "%buildroot/%_libdir" - mv "%buildroot/%_prefix/lib"/*.a "%buildroot/%_libdir/" + mkdir -p "$b/%_libdir" + mv "$b/%_prefix/lib"/*.a "$b/%_libdir/" fi +mkdir -p "$b/%_includedir" +cp -a glslang "$b/%_includedir/" +find "$b/%_includedir/" -type f ! -iname "*.h" -delete %files devel %defattr(-,root,root) %_bindir/gls* %_bindir/spirv* %_libdir/*.a +%_includedir/glslang/ %changelog