File phalanx.spec of Package phalanx

# spec file for package phalanx
# Copyright (c) 2012 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

Name:           phalanx
Provides:       chess_backend
Version:        22
Release:        0
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
License:        GPL-2.0+
Group:          Amusements/Games/Board/Chess

A smart chess playing program which uses opening book.

    Dusan Dobes <>

%setup -q -n Phalanx-XXII
%patch0 -p1

make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}

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