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