Scriptlets replaced with new systemd macros (#850134)

This commit is contained in:
Jaromir Capik 2012-09-24 18:33:49 +02:00
parent c3cbe4484c
commit d2fc75538b

View File

@ -1,7 +1,7 @@
Summary: A mouse server for the Linux console
Name: gpm
Version: 1.20.6
Release: 24%{?dist}
Release: 25%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://www.nico.schottelius.org/software/gpm/
@ -115,9 +115,7 @@ rm -rf %{buildroot}
%post
%ifnarch s390 s390x
if [ "$1" -ge 1 ]; then
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
fi
%systemd_post gpm.service
%endif
if [ -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
@ -130,10 +128,7 @@ fi
%preun
%ifnarch s390 s390x
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart gpm.service >/dev/null 2>&1 || :
fi
%systemd_preun gpm.service
%endif
if [ $1 = 0 -a -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir || :
@ -141,10 +136,7 @@ fi
%postun
%ifnarch s390 s390x
if [ $1 = 0 ]; then
/bin/systemctl --no-reload gpm.service > /dev/null 2>&1 || :
/bin/systemctl stop gpm.service > /dev/null 2>&1 || :
fi
%systemd_postun_with_restart gpm.service
%endif
%triggerun -- gpm < 1.20.6-17
@ -183,6 +175,9 @@ fi
%{_libdir}/libgpm.a
%changelog
* Mon Sep 17 2012 Václav Pavlín <vpavlin@redhat.com> - 1.20.6-25
- Scriptlets replaced with new systemd macros (#850134)
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.6-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild