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 v2 or later
Group:          Amusements/Games/Board/Chess
Summary:        A Nice, Themeable Chess Front-End
Version:        0.6
Release:        555
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 
%patch0
%patch2
%if %suse_version > 930
%patch3
%endif
%patch4
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
%suse_update_desktop_file %name Game BoardGame
%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
* Mon Oct 08 2007 - stbinner@suse.de
- fix crash when doing castle move (#331755)
* Tue May 30 2006 - adrian@suse.de
- fix build for < 10.1
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 - stbinner@suse.de
- added GenericName to .desktop file
* Tue Aug 30 2005 - adrian@suse.de
- avoid aRts dependency for 10.0 and use KDEMM instead
* Tue Aug 23 2005 - adrian@suse.de
- go back to version 0.6 to get translations again
* Thu Apr 14 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Wed Apr 13 2005 - adrian@suse.de
- add kdelibs3-arts to nfb for now
* Mon Mar 07 2005 - coolo@suse.de
- fixing desktop file
* Sat Mar 05 2005 - adrian@suse.de
- compile fix for old disitrbutions
* Thu Feb 17 2005 - adrian@suse.de
- menu entry moved to xdg dir
* Mon Feb 07 2005 - adrian@suse.de
- update to version 0.6.4 beta
  (no translations for now)
* Thu Dec 16 2004 - coolo@suse.de
- fix unsermake install
* Tue Sep 14 2004 - adrian@suse.de
- remove mad from nfb
* Tue Mar 16 2004 - coolo@suse.de
- adding new translations (#31184)
* Wed Feb 25 2004 - hmacht@suse.de
- building as non-root-user
* Wed Jan 07 2004 - coolo@suse.de
- fix Makefile problems
* Wed Nov 05 2003 - ro@suse.de
- added mad,mad-devel to neededforbuild
* Mon Sep 15 2003 - adrian@suse.de
- require general "chess_backend" alias instead of crafty
* Wed Sep 03 2003 - adrian@suse.de
- set default for computer time to 60 seconds
- workaround crafty hangup
* Tue Sep 02 2003 - sndirsch@suse.de
- fixed desktop category (now BoardGame instead of CardGame)
* Tue Jul 29 2003 - adrian@suse.de
- add Categories
* Tue Jul 22 2003 - coolo@suse.de
- don't chown
* Thu Jun 12 2003 - coolo@suse.de
- use %%find_lang
* Fri May 23 2003 - adrian@suse.de
- let it build again
* Wed May 21 2003 - adrian@suse.de
- update to version 0.6
* Mon Jan 20 2003 - adrian@suse.de
- remove linebreak
* Fri Jan 17 2003 - adrian@suse.de
- update to version 0.5.9
* Mon Nov 04 2002 - ro@suse.de
- removed alpha patch
- expanded neededforbuild for ogg/vorbis
* Thu Jul 04 2002 - adrian@suse.de
- fix #neededforbuild for >8.0
* Tue Jun 25 2002 - adrian@suse.de
- fix theme pack location
* Fri Jun 21 2002 - adrian@suse.de
- fix build for gcc 3.1
* Fri Jun 21 2002 - adrian@suse.de
- update to version 0.5.6
  * KDE 3 port
  * does not work with gcc 3.1 yet
* Fri May 24 2002 - adrian@suse.de
- use update_admin
* Thu May 23 2002 - ro@suse.de
- update admin directory and use common_options
* Mon Apr 15 2002 - coolo@suse.de
- fix for gcc 3.1
* Tue Feb 12 2002 - adrian@suse.de
- fix owner ship
* Mon Feb 11 2002 - adrian@suse.de
- remove extra themes (they are in the themes tar ball)
- use the lovely penguin theme as default theme
* Sun Feb 10 2002 - ro@suse.de
- tar option for bz2 is "j"
* Fri Feb 08 2002 - sf@suse.de
- updated to 0.5.4.1
- modified alpha.diff to fit to new version
* Thu Feb 07 2002 - sf@suse.de
- removed all 'inline' declarations as this seems not to work with gcc 3.x
  (for Alpha only)
* Sat Dec 29 2001 - adrian@suse.de
- update to version 0.5.1 (network games are possible now)
- fix group tag
* Wed Dec 19 2001 - adrian@suse.de
- update to version 0.5
* Thu Dec 06 2001 - adrian@suse.de
- initial package (version 0.4.9)
openSUSE Build Service is sponsored by