diff --git a/libuna.spec b/libuna.spec index 290ec28..43462a1 100644 --- a/libuna.spec +++ b/libuna.spec @@ -106,7 +106,11 @@ grep ' local' config.log && exit 1 %install %make_install -rm -f "%buildroot/%_libdir"/*.la +b="%buildroot" +rm -f "$b/%_libdir"/*.la +%if "@BUILD_FLAVOR@" == "mini" +rm -Rf "$b/%_bindir" "$b/%_mandir/man1" +%endif %post -n %lname%psuffix -p /sbin/ldconfig %postun -n %lname%psuffix -p /sbin/ldconfig