2008-11-06 15:29:34 +01:00
|
|
|
#
|
2011-12-01 08:36:10 +01:00
|
|
|
# spec file for package gnuchess
|
|
|
|
#
|
2015-01-18 22:11:20 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2008-11-06 15:29:34 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-01 08:36:10 +01:00
|
|
|
|
2008-11-06 15:29:34 +01:00
|
|
|
Name: gnuchess
|
2015-01-18 22:11:20 +01:00
|
|
|
Version: 6.2.1
|
2012-02-04 15:48:05 +01:00
|
|
|
Release: 0
|
2011-12-01 08:36:10 +01:00
|
|
|
Summary: GNU Chess Program
|
2014-10-07 20:49:11 +02:00
|
|
|
License: GPL-3.0+
|
2008-11-06 15:29:34 +01:00
|
|
|
Group: Amusements/Games/Board/Chess
|
2012-10-26 13:17:09 +02:00
|
|
|
Url: http://www.gnu.org/software/chess/
|
2014-10-07 20:49:11 +02:00
|
|
|
Source0: http://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz
|
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.
|
2011-12-01 08:36:10 +01:00
|
|
|
Source1: book_1.02.pgn.bz2
|
|
|
|
#Source2: book.dat.bz2
|
2008-11-06 15:29:34 +01:00
|
|
|
Source3: genbook.sh
|
2011-04-15 14:14:20 +02:00
|
|
|
Source5: xgnuchess
|
2015-01-18 22:11:20 +01:00
|
|
|
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
|
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
|
2012-02-04 15:48:05 +01:00
|
|
|
BuildRequires: readline-devel
|
2011-12-01 08:36:10 +01:00
|
|
|
Requires(post): info
|
2014-10-07 20:49:11 +02:00
|
|
|
Requires(preun): info
|
|
|
|
Recommends: xboard
|
2011-04-15 14:14:20 +02:00
|
|
|
Provides: chess_backend
|
|
|
|
Provides: gchess
|
2008-11-06 15:29:34 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
A worthy chess opponent that runs in text mode. Find an X11 interface
|
|
|
|
in the xboard package.
|
|
|
|
|
|
|
|
%prep
|
2011-04-15 14:14:20 +02:00
|
|
|
%setup -q
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%build
|
2011-04-15 14:14:20 +02:00
|
|
|
%configure
|
2011-12-01 08:36:10 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
sed -i 's/^Book[[:space:]]*=[[:space:]]*false/Book = true/;s/^OwnBook[[:space:]]=[[:space:]]*false/OwnBook = true/' src/gnuchess.ini
|
|
|
|
sh %{SOURCE3} %{SOURCE1}
|
2008-11-06 15:29:34 +01:00
|
|
|
|
|
|
|
%install
|
2014-10-07 20:49:11 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%find_lang %{name}
|
2008-11-06 15:29:34 +01:00
|
|
|
|
2011-12-01 08:36:10 +01:00
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ] ; then
|
2014-10-07 20:49:11 +02:00
|
|
|
if [ -f %{_infodir}/%{name}.info.gz ] ; then
|
2011-12-01 08:36:10 +01:00
|
|
|
%install_info --info-dir=%{_infodir} --delete %{_infodir}/%{name}.info.gz
|
|
|
|
fi
|
|
|
|
fi
|
2008-11-06 15:29:34 +01:00
|
|
|
|
2014-10-07 20:49:11 +02:00
|
|
|
%files -f %{name}.lang
|
2008-11-06 15:29:34 +01:00
|
|
|
%defattr(-,root,root)
|
2011-12-01 08:36:10 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
2011-04-15 14:14:20 +02:00
|
|
|
%{_bindir}/*
|
2008-11-06 15:29:34 +01:00
|
|
|
%{_mandir}/man*/*
|
2011-12-01 08:36:10 +01:00
|
|
|
%{_infodir}/gnuchess.info.gz
|
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
|