2008-11-06 15:29:34 +01:00
|
|
|
#
|
2011-12-01 08:36:10 +01:00
|
|
|
# spec file for package gnuchess
|
|
|
|
#
|
2022-02-18 14:31:07 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-12-01 08:36:10 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-04-20 15:36:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-11-06 15:29:34 +01:00
|
|
|
#
|
|
|
|
|
2011-12-01 08:36:10 +01:00
|
|
|
|
2008-11-06 15:29:34 +01:00
|
|
|
Name: gnuchess
|
2021-07-31 19:01:13 +02:00
|
|
|
Version: 6.2.9
|
2012-02-04 15:48:05 +01:00
|
|
|
Release: 0
|
2011-12-01 08:36:10 +01:00
|
|
|
Summary: GNU Chess Program
|
2020-04-20 15:36:10 +02:00
|
|
|
License: GPL-3.0-or-later
|
2008-11-06 15:29:34 +01:00
|
|
|
Group: Amusements/Games/Board/Chess
|
2020-04-20 15:36:10 +02:00
|
|
|
URL: https://www.gnu.org/software/chess/
|
2021-05-14 15:15:39 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz.sig
|
2008-11-06 15:29:34 +01:00
|
|
|
# WARNING: Don't forget to re-generate book.dat manually before submit!
|
|
|
|
# Simply remove the source and build, updated book will be generated.
|
2021-05-14 15:15:39 +02:00
|
|
|
Source2: book_1.02.pgn.bz2
|
2008-11-06 15:29:34 +01:00
|
|
|
Source3: genbook.sh
|
2021-05-14 15:15:39 +02:00
|
|
|
Source4: xgnuchess
|
|
|
|
Source5: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=chess&download=1#/gnuchess.keyring
|
2012-02-04 15:48:05 +01:00
|
|
|
BuildRequires: expect
|
2011-12-01 08:36:10 +01:00
|
|
|
BuildRequires: gcc-c++
|
2014-10-07 20:49:11 +02:00
|
|
|
BuildRequires: gettext-devel
|
2021-04-08 23:10:58 +02:00
|
|
|
BuildRequires: help2man
|
2012-02-04 15:48:05 +01:00
|
|
|
BuildRequires: readline-devel
|
2022-02-18 14:31:07 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
2011-12-01 08:36:10 +01:00
|
|
|
Requires(post): info
|
2021-04-08 23:10:58 +02:00
|
|
|
Requires(preun):info
|
2022-02-18 14:31:07 +01:00
|
|
|
%endif
|
2018-05-01 07:50:43 +02:00
|
|
|
Suggests: xboard
|
2011-04-15 14:14:20 +02:00
|
|
|
Provides: chess_backend
|
|
|
|
Provides: gchess
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A worthy chess opponent that runs in text mode. Find an X11 interface
|
|
|
|
in the xboard package.
|
|
|
|
|
|
|
|
%prep
|
2021-04-08 23:10:58 +02:00
|
|
|
%autosetup -p1
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%build
|
2011-04-15 14:14:20 +02:00
|
|
|
%configure
|
2020-04-20 15:36:10 +02:00
|
|
|
%make_build
|
2011-12-01 08:36:10 +01:00
|
|
|
sed -i 's/^Book[[:space:]]*=[[:space:]]*false/Book = true/;s/^OwnBook[[:space:]]=[[:space:]]*false/OwnBook = true/' src/gnuchess.ini
|
2021-05-14 15:15:39 +02:00
|
|
|
sh %{SOURCE3} %{SOURCE2}
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%install
|
2017-07-25 17:16:20 +02:00
|
|
|
%make_install
|
2015-01-18 22:16:02 +01:00
|
|
|
# install xgnuchess
|
2021-05-14 15:15:39 +02:00
|
|
|
install -m 755 %{SOURCE4} %{buildroot}/%{_bindir}
|
2014-10-07 20:49:11 +02:00
|
|
|
%find_lang %{name}
|
2008-11-06 15:29:34 +01:00
|
|
|
|
2022-02-18 14:31:07 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
2011-12-01 08:36:10 +01:00
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%preun
|
2018-05-01 07:50:43 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
2022-02-18 14:31:07 +01:00
|
|
|
%endif
|
2008-11-06 15:29:34 +01:00
|
|
|
|
2014-10-07 20:49:11 +02:00
|
|
|
%files -f %{name}.lang
|
2018-05-01 07:50:43 +02:00
|
|
|
%doc AUTHORS ChangeLog NEWS README TODO
|
|
|
|
%license COPYING
|
2011-04-15 14:14:20 +02:00
|
|
|
%{_bindir}/*
|
2008-11-06 15:29:34 +01:00
|
|
|
%{_mandir}/man*/*
|
2020-04-20 15:36:10 +02:00
|
|
|
%{_infodir}/gnuchess.info%{?ext_info}
|
2008-11-06 15:29:34 +01:00
|
|
|
%{_datadir}/gnuchess
|
2015-01-18 22:11:20 +01:00
|
|
|
%dir %{_datadir}/games/plugins
|
|
|
|
%dir %{_datadir}/games/plugins/logos
|
|
|
|
%{_datadir}/games/plugins/logos/%{name}.png
|
|
|
|
%dir %{_datadir}/games/plugins/xboard
|
|
|
|
%{_datadir}/games/plugins/xboard/%{name}.eng
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%changelog
|