From b4449855885a847560d15c9fa0267cbc47dccbfd Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:40:21 +0100 Subject: [PATCH] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- lvm2.spec | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lvm2.spec b/lvm2.spec index 4a0a100..9af47d2 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -436,9 +436,7 @@ Requires: device-mapper-event = %{?epoch}:%{device_mapper_version}-%{release} %description libs This package contains shared lvm2 libraries for applications. -%post libs -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files libs %{!?_licensedir:%global license %%doc} @@ -764,9 +762,7 @@ Requires: device-mapper = %{?epoch}:%{device_mapper_version}-%{release} %description -n device-mapper-libs This package contains the device-mapper shared library, libdevmapper. -%post -n device-mapper-libs -p /sbin/ldconfig - -%postun -n device-mapper-libs -p /sbin/ldconfig +%ldconfig_scriptlets -n device-mapper-libs %files -n device-mapper-libs %{!?_licensedir:%global license %%doc} @@ -819,9 +815,7 @@ Group: System Environment/Libraries This package contains the device-mapper event daemon shared library, libdevmapper-event. -%post -n device-mapper-event-libs -p /sbin/ldconfig - -%postun -n device-mapper-event-libs -p /sbin/ldconfig +%ldconfig_scriptlets -n device-mapper-event-libs %files -n device-mapper-event-libs %{!?_licensedir:%global license %%doc}