File phalanx.spec of Package phalanx

#
# spec file for package phalanx (Version 22)
#
# Copyright (c) 2009 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:           phalanx
Url:            http://sourceforge.net/projects/phalanx
License:        GPL v2 or later
Group:          Amusements/Games/Board/Chess
Provides:       chess_backend
AutoReqProv:    on
Version:        22
Release:        646
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
* 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
openSUSE Build Service is sponsored by