[gpm] Move scriptlet ldconfig calls from main package to -libs.
Ville Skyttä
scop at fedoraproject.org
Sun Dec 4 15:35:41 UTC 2011
commit af7adc65329ae5bdd57e5b60b7bad89bc32cbc9a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Dec 4 17:35:29 2011 +0200
Move scriptlet ldconfig calls from main package to -libs.
gpm.spec | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gpm.spec b/gpm.spec
index 73079ae..52fb47d 100644
--- a/gpm.spec
+++ b/gpm.spec
@@ -1,7 +1,7 @@
Summary: A mouse server for the Linux console
Name: gpm
Version: 1.20.6
-Release: 18%{?dist}
+Release: 19%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://www.nico.schottelius.org/software/gpm/
@@ -120,7 +120,6 @@ fi
if [ -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
fi
-/sbin/ldconfig
%ifnarch s390 s390x
%triggerun -- gpm < 1.20.6-15
@@ -146,7 +145,6 @@ if [ $1 = 0 ]; then
/bin/systemctl --no-reload gpm.service > /dev/null 2>&1 || :
/bin/systemctl stop gpm.service > /dev/null 2>&1 || :
%endif
-/sbin/ldconfig
%triggerun -- gpm < 1.20.6-17
%{_bindir}/systemd-sysv-convert --save gpm >/dev/null 2>&1 ||:
@@ -154,6 +152,10 @@ if [ $1 = 0 ]; then
/sbin/chkconfig --del gpm >/dev/null 2>&1 || :
/bin/systemctl try-restart gpm.service >/dev/null 2>&1 || :
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
%files
%defattr(-,root,root,-)
%doc BUGS COPYING README TODO
@@ -181,6 +183,9 @@ if [ $1 = 0 ]; then
%{_libdir}/libgpm.a
%changelog
+* Sun Dec 4 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.20.6-19
+- Move scriptlet ldconfig calls from main package to -libs.
+
* Fri Aug 05 2011 Nikola Pajkovsky <npajkovs at redhat.com> 1.20.6-18
- unpackaged files (do not install t-mouse.el)
More information about the scm-commits
mailing list