From 3752cbcbdebed58753f7c8db177c8cb84d222f9e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 9 Aug 2011 17:15:05 +0200 Subject: [PATCH] fix ldconfig scriptlets --- gpsd.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gpsd.spec b/gpsd.spec index c6a54fe..65c283d 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -24,9 +24,8 @@ BuildRequires: desktop-file-utils Requires: %{name}-libs = %{version}-%{release} Requires: udev -Requires(post): /sbin/ldconfig systemd-units +Requires(post): systemd-units Requires(preun): systemd-units -Requires(postun): /sbin/ldconfig %description gpsd is a service daemon that mediates access to a GPS sensor @@ -139,7 +138,6 @@ rm -rf %{buildroot} %post -/sbin/ldconfig /bin/systemctl daemon-reload &> /dev/null if [ -f %{_initrddir}/%{name} ] && /sbin/chkconfig --level 3 %{name}; then /bin/systemctl enable %{name}.service &> /dev/null @@ -153,7 +151,10 @@ if [ $1 = 0 ]; then fi : -%postun -p /sbin/ldconfig +%post libs -p /sbin/ldconfig + + +%postun libs -p /sbin/ldconfig %files