File scid.spec of Package scid
#
# spec file for package scid (Version 3.6.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: scid
BuildRequires: gcc-c++ tk-devel xorg-x11-devel
Summary: A chess database application
License: GPL v2 or later
Group: Amusements/Games/Board/Chess
Requires: tk
AutoReqProv: on
Version: 3.6.1
Release: 158
Url: http://scid.sourceforge.net
Source: %{name}-%{version}.tar.bz2
#Patch0: %{name}-%{version}-tcl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Scid can perform many different searches, such as for particular
players, a certain opening position, material searches, and pattern
searches such as isolated pawns. It is very fast, because it uses its
own efficient format, but it can convert games to and from PGN, the
standard format for chess game files.
Scid can use a chess engine such as Crafty to analyze games and also
has a "tree" mode where it automatically shows all moves played from
the current position, their opening codes, success rates, etc.
Authors:
--------
Shane Hudson <shane@cosc.canterbury.ac.nz>
%prep
%setup -q
#%patch0
%build
TCL_VERSION=$(echo 'puts [package require Tcl]' | tclsh)
TCL_VERSION=8.5
./configure \
BINDIR=/usr/bin \
SHAREDIR=/usr/share/scid \
TCL_LIBRARY="-ltcl$TCL_VERSION" \
TK_LIBRARY="-ltk$TCL_VERSION -ltcl$TCL_VERSION"
make OPTIMIZE="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc CHANGES COPYING README THANKS
/usr/share/scid/
/usr/bin/*
%changelog
* Mon Apr 07 2008 ro@suse.de
- hardcode tcl version for the moment to fix build
* Sun Oct 29 2006 meissner@suse.de
- use RPM_OPT_FLAGS
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Mar 03 2004 mcihar@suse.cz
- update to 3.6.1
* Mon Feb 23 2004 mcihar@suse.cz
- update to 3.5
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Mon Sep 22 2003 ro@suse.de
- do not provuide phalanx
* Mon Jul 28 2003 ro@suse.de
- added tk-devel to neededforbuild
* Tue May 27 2003 mcihar@suse.cz
- move binaries to /usr/bin
* Thu Feb 06 2003 mcihar@suse.cz
- updated to 3.4
* Scid now has its own built-in analysis engine called Scidlet;
you can still use other WinBoard-compatible engines for
analysis in Scid, of course.
* New Player Finder window.
* More improvements to the Tablebase window.
* Moves on the main window chessboard are now animated.
* Lots of small user interface improvements.
* Added support for entering null (empty) moves in games.
* Mon Aug 19 2002 ro@suse.de
- add "-DUSE_NON_CONST" to cflags for new tcl
* Fri Jul 12 2002 max@suse.de
- Patching Makefile.conf and using configure instead of
patching Makefile, so that the Tcl/Tk version can be
detected at build time.
* Thu Jun 13 2002 mcihar@suse.cz
- updated to 3.3:
* New "Piece Tracker" tool, new "Filter Graph" window
* Maintenance window: new "Strip PGN tags" operation that finds
extra PGN tags and allows the user to remove all instances of
a particular unwanted tag.
* Added "Load Random Game" menu command in the Game menu.
* Extended search capabilities
* Improved reading of annotations in PGN.
* Removed limitation of game to 128 moves.
* Improved the look of piece images in the chessboard.
* Wed Apr 24 2002 pmladek@suse.cz
- used macro %%{_lib} to fix for lib64
* Tue Jan 29 2002 pmladek@suse.cz
- updated to version 3.1
* Wed Dec 05 2001 pmladek@suse.cz
- updated on version 3.0:
* new database format
* new "Bookmarks" feature
* new "Tip of the day" window
* most window locations and sizes are now saved in the options file
when "Save Options" is selected.
* tree window: New "Best games" window
* 12 new user-settable "flags" for marking games with various chess
characteristics.
- added tk to Requires
- fixed to load spelling.ssp
* Mon Jun 25 2001 pblaha@suse.cz
- update on 2.5
* Wed May 30 2001 pblaha@suse.cz
- update on 2.4
- rewrite URL
* Thu May 10 2001 mfabian@suse.de
- bzip2 sources
* Tue Jan 16 2001 pblaha@suse.cz
- create this package