Rework -mini package to build but delete tools

Without system-libs.patch, tools will be built, and they will use the bundled
libcfile. But we do not need the tools at this stage anyway, so just leave them
deleted like before.

OBS-URL: https://build.opensuse.org/package/show/security:forensics/libuna?expand=0&rev=36
This commit is contained in:
Jan Engelhardt 2022-11-27 10:28:10 +00:00 committed by Git OBS Bridge
parent 1e7f89d98a
commit a65f4c2e5b

View File

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