File knights.spec of Package knights
#
# spec file for package knights (Version 0.6)
#
# Copyright (c) 2007 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: knights
BuildRequires: kdelibs3-devel kdesdk3 kdesdk3-translate
%if %suse_version < 1010
BuildRequires: kdelibs3-doc
%endif
License: GPL-2.0-or-later
Group: Amusements/Games/Board/Chess
Summary: A Nice, Themeable Chess Front-End
Version: 0.6
Release: 722.2
Url: http://knights.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %name-%version.tar.bz2
Patch0: %name.diff
Source1: %name-themepack-0.5.9.tar.bz2
Patch2: use-penguin-theme.diff
Patch3: kdemm.diff
Patch4: castle-crash.diff
Requires: chess_backend
%description
Knights is a themeable chess front-end. You can play against the crafty
engine or via an Internet server.
Authors:
--------
Troy Corbin Jr. <tcorbin@users.sourceforge.net>
some themes from:
Asif Ali Rizwaan <maarizwan@hotmail.NOSPAM.com>
%prep
%setup -q -b 1
%patch -P 0
%patch -P 2
%if %suse_version > 930
%patch -P 3
%endif
%patch -P 4
touch `find .`
. /etc/opt/kde3/common_options
update_admin
%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?jobs:-j %jobs}
%install
. /etc/opt/kde3/common_options
make DESTDIR=${RPM_BUILD_ROOT} install
cp ${RPM_BUILD_DIR}/%{name}-themepack*/* ${RPM_BUILD_ROOT}/opt/kde3/share/apps/knights/themes/
rm -rf $RPM_BUILD_ROOT/opt/kde3/share/applnk/Amusement/Boards/knights.desktop
# move to the right place
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/applications/kde
mv $RPM_BUILD_ROOT/opt/kde3/share/applnk/Games/Board/knights.desktop $RPM_BUILD_ROOT/opt/kde3/share/applications/kde/knights.desktop
%find_lang %name
%clean
rm -rf ${RPM_BUILD_ROOT}
%files -f %name.lang
%defattr(-,root,root)
%doc README AUTHORS INSTALL ChangeLog COPYING CreatingThemes
/opt/kde3/bin/knights
/opt/kde3/share/apps/knights
/opt/kde3/share/icons/??color
/opt/kde3/share/mimelnk/*/*
/opt/kde3/share/appl*/*/knights.desktop
%changelog