Move scriptlet ldconfig calls from main package to -libs.

This commit is contained in:
Ville Skyttä 2011-12-04 17:35:29 +02:00
parent d004799d84
commit af7adc6532

View File

@ -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@iki.fi> - 1.20.6-19
- Move scriptlet ldconfig calls from main package to -libs.
* Fri Aug 05 2011 Nikola Pajkovsky <npajkovs@redhat.com> 1.20.6-18
- unpackaged files (do not install t-mouse.el)