File boson.spec of Package boson
#
# spec file for package boson (Version 0.13)
#
# 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:           boson
BuildRequires:  SDL-devel cmake kdegames3 kdemultimedia3-devel lib3ds openal-devel python-devel
BuildRequires:  fdupes
%if 0%{?opensuse_bs}
%else
BuildRequires:  mad-devel
%endif
%if %suse_version < 1010
BuildRequires:  update-desktop-files
%endif
Url:            http://boson.eu.org
License:        GPL v2 or later
Group:          Amusements/Games/Strategy/Real Time
Summary:        OpenGL Real-Time Strategy Game like Command&Conquer(tm)
Version:        0.13
Release:        114
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-all-%{version}.tar.bz2
Patch0:         %name-cmake_adjust.patch
Patch1:         %name-gcc-4.2.patch
Patch2:         %name-stric_aliasing.patch
Patch3:         %name-gcc-4.3.patch
Autoreqprov:    on
%description
Boson is an OpenGL real-time strategy game with the feeling of
Command&Conquer(tm) or StarCraft(tm) and OpenGL support.
Authors:
--------
    --- Code ---
    Initial design and implementation                               Thomas Capricelli <orzel@kde.org>
    Core developer and maintainer                                   Andreas Beckermann <b_mann@gmx.de>
    Core developer                                                         Rivo Laks <rivolaks@hot.ee>
    Release coordinator                                                  Thomas Capricelli <orzel@kde.org>
    
    --- Multimedia ---
    Graphics of the main themes (earth, humans)             Benjamin Adler <BenniAdler@bigfoot.de>
    Music (progressive, jungle themes) and sounds           Nils Trzebin (http://www.rebellion-scs.de/boson/)
    Music ('soft' theme)                                                   Ludovic Grossard (http://perso.libertysurf.fr/grossard/boson/)
    Sound effects                                                           Timo Huebel <t.h@gmxpro.de>
    
    --- Other ---
    Webmaster, initial homepage, mailing-list maintainer    Thomas Capricelli <orzel@kde.org>
    Homepage design                                                      Rivo Laks <rivolaks@hot.ee> and Benjamin Adler <BenniAdler@bigfoot.de>
    Boson Handbook                                                       Felix Seeger <felix.seeger@gmx.de>
%prep
%setup -q -n %name-all-%version
%patch0 -b .orig
%patch1
%patch2
%patch3
%build
rm -f cmake/modules/boson/KDE3Macros.cmake
mkdir obj
cd obj
export QTDIR=/usr/lib/qt3
cmake -DCMAKE_INSTALL_PREFIX=/opt/kde3 ..
make %{?jobs:-j %jobs}
%install
cd obj
make DESTDIR=$RPM_BUILD_ROOT install
%if %suse_version < 1010
%suse_update_desktop_file boson-boson  Game StrategyGame
%else
%suse_update_desktop_file -G "C&C Clone" boson-boson  Game StrategyGame
%endif
%suse_update_desktop_file -u boson-boinfo Game StrategyGame
%suse_update_desktop_file -u boson-bounit Game StrategyGame
%fdupes -s $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/opt/kde3/bin/*
/opt/kde3/share/applications/kde/boson*.desktop
/opt/kde3/share/apps/boson
/opt/kde3/share/config/bo*
/opt/kde3/share/icons/hicolor/*/apps/boson.png
/opt/kde3/share/icons/hicolor/*/apps/boeditor.png
/opt/kde3/share/icons/hicolor/22x22/actions/bo_edit_height.png
/opt/kde3/%_lib/kde3/plugins
%changelog
* Thu Oct 04 2007 - stbinner@suse.de
- fix opensuse_bs variable check
* Tue Aug 21 2007 - lmichnovic@suse.cz
- fixed strict aliasing (*strict_aliasing.patch)
* Tue Aug 21 2007 - lmichnovic@suse.cz
- using fdupes
- renamed %%name.diff -> %%name-cmake_adjust.patch
  gcc-4.2.diff -> %%name-gcc-4.2.patch
* Sat Jun 09 2007 - dmueller@suse.de
- fix build against gcc 4.2
* Sun Jan 14 2007 - dmueller@suse.de
- fix build after cmake update
* Tue Oct 03 2006 - dmueller@suse.de
- update to 0.13
   - new fog of war system
   - icons for distant units.
* Mon Aug 28 2006 - coolo@suse.de
- cleaning up spec file
* Sat Aug 26 2006 - coolo@suse.de
- update to 0.12
  - new build system
  - Major PlayerId redesign
  - Several bugfixes
  - Visual feedbacks when giving orders to units
  - Provide ALT+number to center on a selection
  - Show all production options in the commandframe, even those
  with unmet requirements (grayed out then)
  - Powerplants now actually plant power
  - Shadow support
  - Turrets turn towards their target
  - Weapons can use ammunition
  - New radar system
* Mon Aug 14 2006 - coolo@suse.de
- fix build
* Thu Jun 15 2006 - dmueller@suse.de
- build parallel
* Fri Jun 02 2006 - stbinner@suse.de
- fix build
* Wed May 24 2006 - adrian@suse.de
- fix build for openSUSE build service
* Tue May 23 2006 - dmueller@suse.de
- fix plugin installation (#176909)
* Thu Feb 16 2006 - stbinner@suse.de
- fix %%suse_update_desktop_file parameter order
* Wed Feb 15 2006 - stbinner@suse.de
- add GenericName to .desktop file
* Tue Feb 07 2006 - stbinner@suse.de
- fix build on 64 bit
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 19 2005 - stbinner@suse.de
- update to version 0.11
* Tue May 24 2005 - yxu@suse.de
- fixed for GCC4
* Tue Apr 26 2005 - coolo@suse.de
- fix build on 64 bit platforms
* Thu Apr 21 2005 - coolo@suse.de
- fix configure check
* Thu Apr 14 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Thu Feb 17 2005 - adrian@suse.de
- menu entry moved to xdg dir
* Mon Aug 16 2004 - ro@suse.de
- don't try to redefine pointer type GLsizeiptrARB
* Thu Aug 05 2004 - ro@suse.de
- recode desktop file to utf-8
* Tue Jun 29 2004 - adrian@suse.de
- remove wml from neededforbuild
* Mon May 03 2004 - adrian@suse.de
- update to version 0.10
* Thu Apr 15 2004 - coolo@suse.de
- build without unsermake
* Fri Dec 05 2003 - adrian@suse.de
- update to version 0.9.1
* Tue Nov 04 2003 - ro@suse.de
- added mad,mad-devel to neededforbuild
* Sat Aug 09 2003 - adrian@suse.de
- add Categories
* Fri Jun 13 2003 - ro@suse.de
- added directories to filelist
* Thu May 29 2003 - adrian@suse.de
- add kdemultimedia3* to neededforbuild to get sound support
* Tue Apr 01 2003 - adrian@suse.de
- initial package of version 0.8