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:
parent
da75653c5a
commit
ad01d347c3
12
gpm.spec
12
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: 20%{?dist}
|
Release: 21%{?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/
|
||||||
@ -15,7 +15,7 @@ Patch4: gpm-1.20.5-close-fds.patch
|
|||||||
Patch5: gpm-1.20.1-weak-wgetch.patch
|
Patch5: gpm-1.20.1-weak-wgetch.patch
|
||||||
Patch6: gpm-1.20.6-libtool.patch
|
Patch6: gpm-1.20.6-libtool.patch
|
||||||
#Patch7: gpm-1.20.6-capability.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(preun): systemd-units info
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd-units
|
||||||
# this defines the library version that this package builds.
|
# this defines the library version that this package builds.
|
||||||
@ -112,7 +112,6 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
/sbin/chkconfig --add gpm
|
|
||||||
if [ "$1" -ge 1 ]; then
|
if [ "$1" -ge 1 ]; then
|
||||||
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
|
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
@ -123,9 +122,7 @@ fi
|
|||||||
|
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
%triggerun -- gpm < 1.20.6-15
|
%triggerun -- gpm < 1.20.6-15
|
||||||
if /sbin/chkconfig --level 3 gpm ; then
|
|
||||||
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
|
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
|
||||||
fi
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -144,12 +141,12 @@ fi
|
|||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/bin/systemctl --no-reload gpm.service > /dev/null 2>&1 || :
|
/bin/systemctl --no-reload gpm.service > /dev/null 2>&1 || :
|
||||||
/bin/systemctl stop 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
|
||||||
%{_bindir}/systemd-sysv-convert --save gpm >/dev/null 2>&1 ||:
|
%{_bindir}/systemd-sysv-convert --save gpm >/dev/null 2>&1 ||:
|
||||||
/bin/systemctl enable gpm.service >/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 || :
|
/bin/systemctl try-restart gpm.service >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
@ -183,6 +180,9 @@ if [ $1 = 0 ]; then
|
|||||||
%{_libdir}/libgpm.a
|
%{_libdir}/libgpm.a
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user