From a65f4c2e5b8669bc66c3d205b8511913c94d0cf1ba0d359e3a34c42ae8bdac54 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 27 Nov 2022 10:28:10 +0000 Subject: [PATCH] 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 --- libuna.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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