rhbz#753627 - Get an error message when installing the gpm package via yum

Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
This commit is contained in:
Nikola Pajkovsky 2012-01-24 10:23:46 +01:00
parent da75653c5a
commit ad01d347c3

View File

@ -1,7 +1,7 @@
Summary: A mouse server for the Linux console
Name: gpm
Version: 1.20.6
Release: 20%{?dist}
Release: 21%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://www.nico.schottelius.org/software/gpm/
@ -15,7 +15,7 @@ Patch4: gpm-1.20.5-close-fds.patch
Patch5: gpm-1.20.1-weak-wgetch.patch
Patch6: gpm-1.20.6-libtool.patch
#Patch7: gpm-1.20.6-capability.patch
Requires(post): systemd-units systemd-sysv chkconfig info
Requires(post): systemd-units systemd-sysv info
Requires(preun): systemd-units info
Requires(postun): systemd-units
# this defines the library version that this package builds.
@ -112,7 +112,6 @@ rm -rf %{buildroot}
%post
%ifnarch s390 s390x
/sbin/chkconfig --add gpm
if [ "$1" -ge 1 ]; then
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
fi
@ -123,9 +122,7 @@ fi
%ifnarch s390 s390x
%triggerun -- gpm < 1.20.6-15
if /sbin/chkconfig --level 3 gpm ; then
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
fi
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
%endif
%preun
@ -144,12 +141,12 @@ fi
if [ $1 = 0 ]; then
/bin/systemctl --no-reload gpm.service > /dev/null 2>&1 || :
/bin/systemctl stop gpm.service > /dev/null 2>&1 || :
fi
%endif
%triggerun -- gpm < 1.20.6-17
%{_bindir}/systemd-sysv-convert --save gpm >/dev/null 2>&1 ||:
/bin/systemctl enable gpm.service >/dev/null 2>&1
/sbin/chkconfig --del gpm >/dev/null 2>&1 || :
/bin/systemctl try-restart gpm.service >/dev/null 2>&1 || :
%post libs -p /sbin/ldconfig
@ -183,6 +180,9 @@ if [ $1 = 0 ]; then
%{_libdir}/libgpm.a
%changelog
% Tue Jan 24 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.20.6-21
- 753627 - Get an error message when installing the gpm package via yum
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.6-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild