[gpm] rhbz#753627 - Get an error message when installing the gpm package via yum
Nikola Pajkovsky
npajkovs at fedoraproject.org
Tue Jan 24 09:22:45 UTC 2012
commit ad01d347c30c5ae0d81cac9fc23db8003d793a4b
Author: Nikola Pajkovsky <npajkovs at redhat.com>
Date: Tue Jan 24 10:23:46 2012 +0100
rhbz#753627 - Get an error message when installing the gpm package via yum
Signed-off-by: Nikola Pajkovsky <npajkovs at redhat.com>
gpm.spec | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gpm.spec b/gpm.spec
index 2b63e70..f4a508f 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: 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 at 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 at lists.fedoraproject.org> - 1.20.6-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list