File gnushogi.spec of Package gnushogi
#
# spec file for package gnushogi (Version 1.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: gnushogi
BuildRequires: bison flex ncurses-devel xorg-x11 xorg-x11-devel
License: GPL v2 or later
Group: Amusements/Games/Board/Chess
Provides: gshogi xshogi
Obsoletes: gshogi xshogi
PreReq: %install_info_prereq
AutoReqProv: on
Version: 1.3
Release: 584
Summary: Japanese Version of Chess
Url: ftp://ftp.gnu.org/pub/gnu/gnushogi/
Source: gnushogi-%{version}.tar.bz2
Patch0: gnushogi-%{version}-prototypes.patch
Patch1: gnushogi-%{version}-fsigned-char.patch
Patch2: gnushogi-%{version}-uninitialized.patch
Patch3: gnushogi-%{version}-texinfo.patch
Patch4: gnushogi-%{version}-destdir.patch
Patch5: gnushogi-%{version}-autoconf.patch
Patch6: gnushogi-%{version}-gcc4.1fix.patch
Patch7: gnushogi-%{version}-strip.patch
Patch8: gnushogi-%{version}-array.patch
Patch9: gnushogi-1.3-destbufferoverflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Gnushogi plays a game of Japanese chess (shogi) against the user or it
plays against itself. Gnushogi is an modified version of the gnuchess
program. It has a simple alphanumeric board display or it can use the
xshogi program under the X Window System.
Authors:
--------
John Stanback, Matthias Mutz <mutz@fmi.uni-passau.de>
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%build
%{suse_update_config -f}
autoreconf -f -i -v
export CFLAGS="$RPM_OPT_FLAGS -I."
export CXXFLAGS="$RPM_OPT_FLAGS -I."
%configure
make LCURSES=-lncurses
make -C doc info
%install
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}/man6/ INFODIR=%{_infodir} install
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
/usr/lib/gnushogi/
/usr/bin/*
%doc %{_mandir}/man*/*
%doc %{_infodir}/*
%doc doc/BOOKFILES ChangeLog CONTRIB COPYING NEWS README doc/shogi.rules doc/tutorial1.gam doc/tutorial2.gam
%changelog
* Wed Oct 08 2008 crrodriguez@suse.de
- fix buffer overflow
* Fri Mar 30 2007 ro@suse.de
- added ncurses-devel,flex,bison to buildreq
* Tue Feb 13 2007 anicka@suse.cz
- fix [#243009], array subscript is above array bounds
(-array.patch)
* Fri May 26 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 07 2005 anicka@suse.cz
- fix uninitialized variables in genmove.c
- fix for gcc 4. (bug #136790)
* Tue Jun 28 2005 anicka@suse.cz
- compile without -fsigned-char
- split patches into tematic files
* Thu Apr 14 2005 mcihar@suse.cz
- fix compilation
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Mar 03 2003 ro@suse.de
- add info dir entry
* Mon Feb 10 2003 mcihar@suse.cz
- used %%install_info macro (fixes bug #23418)
* Mon Dec 02 2002 ro@suse.de
- include errno.h where needed
* Wed Jun 12 2002 mcihar@suse.cz
- updated to 1.3:
* gnushogi is now only one executable.
* Merged xshogi into the gnushogi source tree.
* Added texinfo documentation.
- merged with xshogi
* Mon Mar 12 2001 schwab@suse.de
- Fix missing include.
* Wed Nov 29 2000 vinil@suse.cz
- renamed from gshogi to gnushogi
- source bzip2ed
* Tue May 23 2000 vinil@suse.cz
- /usr/share/doc path fixed
* Tue Apr 18 2000 vinil@suse.cz
- buildroot added
- some docs included
* Thu Jan 20 2000 ro@suse.de
- specfile cleanup
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.