Jan Engelhardt 2016-02-17 16:55:35 +00:00 committed by Git OBS Bridge
parent d7d55cf2e0
commit e1b56e25cf

View File

@ -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