!24 add build_cross to avoid install linuxconsoletools in self-build

From: @zppzhangpan 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
This commit is contained in:
openeuler-ci-bot 2023-03-27 06:30:24 +00:00 committed by Gitee
commit 22effd15d4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: gpm Name: gpm
Version: 1.20.7 Version: 1.20.7
Release: 26 Release: 27
Summary: The gpm package contains a mouse server for the console and xterm Summary: The gpm package contains a mouse server for the console and xterm
License: GPLv2 and GPLv2+ with exceptions and GPLv3+ and Verbatim and Copyright only License: GPLv2 and GPLv2+ with exceptions and GPLv3+ and Verbatim and Copyright only
URL: https://www.nico.schottelius.org/software/gpm/ URL: https://www.nico.schottelius.org/software/gpm/
@ -20,7 +20,9 @@ Patch6002: fix-build-fail-on-gcc-10.patch
Requires(post): systemd systemd-sysv info Requires(post): systemd systemd-sysv info
Requires(preun): systemd info Requires(preun): systemd info
Requires(postun): systemd Requires(postun): systemd
%if 0%{?build_cross} == 0
Requires: linuxconsoletools Requires: linuxconsoletools
%endif
BuildRequires: autoconf automake bison gawk libtool libcap-ng-devel ncurses-devel sed systemd texinfo BuildRequires: autoconf automake bison gawk libtool libcap-ng-devel ncurses-devel sed systemd texinfo
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
@ -113,6 +115,9 @@ fi
%{_mandir}/man?/* %{_mandir}/man?/*
%changelog %changelog
* Mon Mar 27 2023 zhangpan <zhangpan103@h-partners.com.com> - 1.20.7-27
- add build_cross to avoid install linuxconsoletools in self-build
* Tue Sep 06 2022 wangkerong <wangkerong@h-partners.com.com> - 1.20.7-26 * Tue Sep 06 2022 wangkerong <wangkerong@h-partners.com.com> - 1.20.7-26
- Add ExecStartPost option to gpm.service for solve error message when gpm service start - Add ExecStartPost option to gpm.service for solve error message when gpm service start