From 45514d69137793416a3820658025489b0b878940 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 30 Jan 2018 11:45:16 +0100 Subject: [PATCH] use macro for ldconfig scriptlets --- gpsd.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gpsd.spec b/gpsd.spec index 66de106..7ea8172 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -243,14 +243,10 @@ desktop-file-install \ # Don't restart the service %systemd_postun -%post libs -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %if %{with_qt} -%post qt -p /sbin/ldconfig - -%postun qt -p /sbin/ldconfig +%ldconfig_scriptlets qt %endif %files