File phalanx.spec of Package phalanx
#
# spec file for package phalanx (Version 22)
#
# Copyright (c) 2005 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://www.suse.de/feedback/
#
# norootforbuild
Name: phalanx
URL: http://dusan.freeshell.org/phalanx/
License: GPL
Group: Amusements/Games/Board/Chess
Provides: chess_backend
Autoreqprov: on
Version: 22
Release: 512
Source: phalanx-22.tar.bz2
Patch0: Phalanx-XXII.diff
Patch1: Phalanx-XXII-strings.patch
Patch2: phalanx-gcc4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A Chess Program
%description
A smart chess playing program which uses opening book.
Authors:
--------
Dusan Dobes <dobes@math.muni.cz>
%prep
%setup -q -n Phalanx-XXII
%patch0 -p1
%patch1
%patch2
%build
make CFLAGS="$RPM_OPT_FLAGS"
%install
install -d $RPM_BUILD_ROOT/usr/bin/
install -d $RPM_BUILD_ROOT/usr/share/phalanx/
install -m 0755 {x,}phalanx $RPM_BUILD_ROOT/usr/bin/
install -m 0644 eco.phalanx pbook.phalanx sbook.phalanx $RPM_BUILD_ROOT/usr/share/phalanx
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING HISTORY README
/usr/share/phalanx
/usr/bin/*
%changelog -n phalanx
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jun 16 2005 - meissner@suse.de
- use RPM_OPT_FLAGS
* Mon Apr 18 2005 - mcihar@suse.de
- fix for current gcc
* Mon Jan 12 2004 - adrian@suse.de
- let rpm strip
* Mon Sep 15 2003 - adrian@suse.de
- Provide general "chess_backend" alias
* Tue May 13 2003 - mcihar@suse.cz
- added %%defattr(-,root,root)
* Thu Nov 21 2002 - mcihar@suse.cz
- bzipped sources
- fixed multiline string
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Mon Nov 20 2000 - pblaha@suse.cz
- create this pakage