From 957c671e6c771ada5216af707178780e46a37214e64395e37859ea071b0bce4e Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Fri, 15 Apr 2022 20:19:14 +0000 Subject: [PATCH] - Add relevant %post{,un} sections - Add another rpmlint filter OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=499 --- libguestfs.changes | 6 ++++++ libguestfs.rpmlintrc | 1 + libguestfs.spec | 9 +++++++++ 3 files changed, 16 insertions(+) diff --git a/libguestfs.changes b/libguestfs.changes index 1c6ed05..f917c65 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 13 22:37:33 UTC 2022 - Hans-Peter Jansen + +- Add relevant %post{,un} sections +- Add another rpmlint filter + ------------------------------------------------------------------- Wed Apr 13 20:48:37 UTC 2022 - Hans-Peter Jansen diff --git a/libguestfs.rpmlintrc b/libguestfs.rpmlintrc index 052edf9..df5509c 100644 --- a/libguestfs.rpmlintrc +++ b/libguestfs.rpmlintrc @@ -1,5 +1,6 @@ addFilter("shlib-policy-nonversioned-dir") addFilter("shlib-policy-missing-lib") +addFilter("shlib-policy-name-error") # This script is supposed to be run from within the appliance only addFilter("non-executable-script /usr/share/virt-p2v/launch-virt-p2v") addFilter("non-standard-group Development/Languages") diff --git a/libguestfs.spec b/libguestfs.spec index 8b2b903..c77c2c2 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -535,6 +535,9 @@ Requires: %{name} = %{version}-%{release} %{name}-man-pages-uk contains Ukrainian (uk) man pages for %{name}. +%post -n %{name} -p /sbin/ldconfig +%postun -n %{name} -p /sbin/ldconfig + %files -f %{name}.lang %license README COPYING %{_bindir}/guestfish @@ -611,6 +614,9 @@ for %{name}. %{_libdir}/ocaml/guestfs/*.mli %{_mandir}/man3/guestfs-ocaml.3* +%post -n perl-Sys-Guestfs -p /sbin/ldconfig +%postun -n perl-Sys-Guestfs -p /sbin/ldconfig + %files -n perl-Sys-Guestfs %{perl_vendorarch}/* %doc perl/examples/*.pl @@ -635,6 +641,9 @@ for %{name}. %{_libdir}/lua %{_mandir}/man3/guestfs-lua.3* +%post -n %{name}-gobject -p /sbin/ldconfig +%postun -n %{name}-gobject -p /sbin/ldconfig + %files gobject %{_libdir}/libguestfs-gobject-1.0.so.0* %{_libdir}/girepository-1.0/Guestfs-1.0.typelib