Matej Cepl
74cfd5d422
gnuchess 6.2.7 OBS-URL: https://build.opensuse.org/request/show/810478 OBS-URL: https://build.opensuse.org/package/show/games/gnuchess?expand=0&rev=31
84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package gnuchess
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gnuchess
|
|
Version: 6.2.7
|
|
Release: 0
|
|
Summary: GNU Chess Program
|
|
License: GPL-3.0-or-later
|
|
Group: Amusements/Games/Board/Chess
|
|
URL: https://www.gnu.org/software/chess/
|
|
Source0: http://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz
|
|
# WARNING: Don't forget to re-generate book.dat manually before submit!
|
|
# Simply remove the source and build, updated book will be generated.
|
|
Source1: book_1.02.pgn.bz2
|
|
#Source2: book.dat.bz2
|
|
Source3: genbook.sh
|
|
Source5: xgnuchess
|
|
Source6: http://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz.sig
|
|
Source7: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=chess&download=1#/gnuchess.keyring
|
|
BuildRequires: expect
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: readline-devel
|
|
Requires(post): info
|
|
Requires(preun): info
|
|
Suggests: xboard
|
|
Provides: chess_backend
|
|
Provides: gchess
|
|
|
|
%description
|
|
A worthy chess opponent that runs in text mode. Find an X11 interface
|
|
in the xboard package.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
%make_build
|
|
sed -i 's/^Book[[:space:]]*=[[:space:]]*false/Book = true/;s/^OwnBook[[:space:]]=[[:space:]]*false/OwnBook = true/' src/gnuchess.ini
|
|
sh %{SOURCE3} %{SOURCE1}
|
|
|
|
%install
|
|
%make_install
|
|
# install xgnuchess
|
|
install -m 755 %{SOURCE5} %{buildroot}/%{_bindir}
|
|
%find_lang %{name}
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%files -f %{name}.lang
|
|
%doc AUTHORS ChangeLog NEWS README TODO
|
|
%license COPYING
|
|
%{_bindir}/*
|
|
%{_mandir}/man*/*
|
|
%{_infodir}/gnuchess.info%{?ext_info}
|
|
%{_datadir}/gnuchess
|
|
%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
|
|
|
|
%changelog
|