2008-11-06 15:29:34 +01:00
|
|
|
#
|
2011-12-01 08:36:10 +01:00
|
|
|
# spec file for package gnuchess
|
|
|
|
#
|
2014-10-07 20:49:11 +02:00
|
|
|
# Copyright (c) 2014 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
|
2014-10-07 20:49:11 +02:00
|
|
|
Version: 6.1.2
|
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
|
|
|
|
Source4: gnuchess.6
|
2011-04-15 14:14:20 +02:00
|
|
|
Source5: xgnuchess
|
|
|
|
BuildRequires: bison
|
2012-02-04 15:48:05 +01:00
|
|
|
BuildRequires: expect
|
2011-04-15 14:14:20 +02:00
|
|
|
BuildRequires: flex
|
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
|
2012-10-28 09:51:15 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2011-04-15 14:14:20 +02:00
|
|
|
%make_install
|
2012-10-28 09:51:15 +01:00
|
|
|
%else
|
2014-10-07 20:49:11 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2012-10-28 09:51:15 +01:00
|
|
|
%endif
|
2011-04-15 14:14:20 +02:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man6
|
|
|
|
cp %{SOURCE4} %{buildroot}%{_mandir}/man6
|
|
|
|
# install xgnuchess
|
|
|
|
install -m 755 %{SOURCE5} %{buildroot}/%{_bindir}
|
2014-10-07 20:49:11 +02:00
|
|
|
%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
|
|
|
|
|
|
|
|
%changelog
|