Scriptlets replaced with new systemd macros (#850134)
This commit is contained in:
parent
c3cbe4484c
commit
d2fc75538b
19
gpm.spec
19
gpm.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A mouse server for the Linux console
|
Summary: A mouse server for the Linux console
|
||||||
Name: gpm
|
Name: gpm
|
||||||
Version: 1.20.6
|
Version: 1.20.6
|
||||||
Release: 24%{?dist}
|
Release: 25%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.nico.schottelius.org/software/gpm/
|
URL: http://www.nico.schottelius.org/software/gpm/
|
||||||
@ -115,9 +115,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
if [ "$1" -ge 1 ]; then
|
%systemd_post gpm.service
|
||||||
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
if [ -e %{_infodir}/gpm.info.gz ]; then
|
if [ -e %{_infodir}/gpm.info.gz ]; then
|
||||||
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
|
||||||
@ -130,10 +128,7 @@ fi
|
|||||||
|
|
||||||
%preun
|
%preun
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_preun gpm.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
/bin/systemctl try-restart gpm.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
if [ $1 = 0 -a -e %{_infodir}/gpm.info.gz ]; then
|
if [ $1 = 0 -a -e %{_infodir}/gpm.info.gz ]; then
|
||||||
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir || :
|
||||||
@ -141,10 +136,7 @@ fi
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
if [ $1 = 0 ]; then
|
%systemd_postun_with_restart gpm.service
|
||||||
/bin/systemctl --no-reload gpm.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop gpm.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%triggerun -- gpm < 1.20.6-17
|
%triggerun -- gpm < 1.20.6-17
|
||||||
@ -183,6 +175,9 @@ fi
|
|||||||
%{_libdir}/libgpm.a
|
%{_libdir}/libgpm.a
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user