From d2fc75538bcdfdcf5c9adeecade3e2b523ce5690 Mon Sep 17 00:00:00 2001 From: Jaromir Capik Date: Sep 24 2012 16:33:49 +0000 Subject: Scriptlets replaced with new systemd macros (#850134) --- diff --git a/gpm.spec b/gpm.spec index e3a6110..4d3faf4 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: 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 - 1.20.6-25 +- Scriptlets replaced with new systemd macros (#850134) + * Thu Jul 19 2012 Fedora Release Engineering - 1.20.6-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild