File pingus.spec of Package pingus

#
# spec file for package pingus (Version 0.7.2)
#
# 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:           pingus
BuildRequires:  coreutils gcc-c++ scons update-desktop-files
BuildRequires:  SDL-devel SDL_image-devel SDL_mixer-devel boost-devel
License:        GPL v2 or later
Group:          Amusements/Games/Action/Arcade
Url:            http://pingus.seul.org/
AutoReqProv:    on
Version:        0.7.2
Release:        1
Summary:        A Lemmings Clone
Source:         %{name}-%{version}.tar.bz2
Source2:        %{name}.desktop
Source3:        %{name}.png
Patch0:         %{name}-%{version}-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This game is not completely finished and there are not very many
playable levels, but the basic game engine is ready. The game, in its
current state, should be enough for a few hours of fun.



Authors:
--------
    Ingo Ruhnke <grumbel@gmx.de>

%prep
%setup -q
%patch0

%build
CFLAGS="${RPM_OPT_FLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}"
CFLAGS="${CFLAGS/-O2/-Os}"
sed -i "s/-O2 -Wall/$CFLAGS/" src/Makefile.static
scons configure CCFLAGS="$CFLAGS"
scons

%install
./install.sh $RPM_BUILD_ROOT%{_prefix}
chmod -x $RPM_BUILD_ROOT%{_datadir}/pingus/data/gen-scrfile.scm
mv $RPM_BUILD_ROOT%{_prefix}/{bin,games}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/
install -m 644 $RPM_SOURCE_DIR/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 644 -D doc/pingus.6 $RPM_BUILD_ROOT%{_mandir}/man6/pingus.6
%suse_update_desktop_file -i %{name} Game ArcadeGame

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README TODO
%doc %{_mandir}/man6/pingus.6.gz
%{_prefix}/games/pingus
%{_datadir}/pingus
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
* Fri Nov 30 2007 - prusnak@suse.cz
- update to 0.7.2
  * added support for levelsets
  * added 8 new levels in the form of a halloween levelset
  * added window resize support to the editor (use --allow-resize)
  * added minimap to the editor
  * scroll wheel support to change the actions
  * right and middle button now both scroll
  * 'jumper dying on landing' bug fixed
  * numerous other small bug fixes
- removed obsoleted patch
  * stdlib_string.patch (included in update)
* Thu Oct 18 2007 - prusnak@suse.cz
- added missing include (stdlib_string.patch)
* Tue Oct 09 2007 - prusnak@suse.cz
- update to 0.7.1
  * faster sprite drawing, so more overall fps
  * level editor rewritten from scratch
  * level loading from command line fixed
  * numerous other command line parsing bugs fixed
  * separate images for gfx and colmap are used again
  * input subsystem rewritten from scratch, supports now gamepads,
  usbmice, wiimote (some of those might unfinished and not enabled by
  default)
* Tue Sep 04 2007 - prusnak@suse.cz
- updated to 0.7.0 (first SDL version)
  * switch from ClanLib to SDL
  * new anti-aliased fonts
  * better support for resolutions larger then 800x600 (see --geometry WxH option)
  * s-expression based file format (converter scripts are available)
  * PPC and 64bit support
  * language support for Czech, German, Finish, Italian, Norwegian,
  Serbian, Turkish, Danish, Dutch, Spanish and Fench
  * level editor temporarly removed
  * a little less fps then the ClanLib version
  * no new levels or other main features
* Wed Jun 06 2007 - prusnak@suse.cz
- modified Makefile.in to accept DESTDIR (destdir.patch)
- cleaned spec file
* Fri Apr 13 2007 - ro@suse.de
- added libmikmod-devel to buildreq
* Tue Sep 12 2006 - dmueller@suse.de
- don't set -save-temps in a spec file
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Apr 20 2005 - nadvornik@suse.de
- fixed to compile with gcc4
* Tue Nov 09 2004 - sndirsch@suse.de
- pingus-snow11.diff: fixed wrong level description (Bug #47953)
* Wed Jul 21 2004 - schwab@suse.de
- Fix use of size_type.
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr
* Tue Sep 23 2003 - sndirsch@suse.de
- fixed category; should be Arcade instead of Puzzle (Bug #31608)
* Wed Sep 03 2003 - adrian@suse.de
- disable KDE wait cursor blinking on startup
* Sat Aug 30 2003 - sndirsch@suse.de
- added desktop icon
* Sun Aug 10 2003 - sndirsch@suse.de
- added desktop file
* Wed May 14 2003 - ro@suse.de
- run autoreconf
* Mon Apr 21 2003 - sndirsch@suse.de
- updated to version 0.6 - announced as first playable version!
* Tue Feb 25 2003 - aj@suse.de
- Add missing assert include.
* Tue Feb 11 2003 - nadvornik@suse.cz
- added install_info macros
* Thu Nov 21 2002 - ro@suse.de
- removed duplicates in output files of configure.in
* Tue Nov 05 2002 - ro@suse.de
- use correct include path for libxml
* Sat Jun 01 2002 - ro@suse.de
- changed neededforbuild <libmikmo> to <libmikmod>
* Tue May 07 2002 - ro@suse.de
- make it compile with current gcc-3.1 snapshot
* Tue May 07 2002 - ro@suse.de
- added <libmikmo> <DirectFB> to neededforbuild
* Fri Apr 12 2002 - ro@suse.de
- build with gcc-3.1
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Jan 24 2002 - ro@suse.de
- up to pre3 to make it build with latest clanlib
- (doesn't seem to use artsd at all anyway ...)
* Tue Jan 22 2002 - ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
* Tue Nov 20 2001 - nadvornik@suse.cz
- added suse_update_config
* Sat Sep 22 2001 - sndirsch@suse.de
- RPM Group tag set to Amusements/Games, so it can be found easier
* Wed Aug 29 2001 - sndirsch@suse.de
- added pingus.sh
* Wed Aug 08 2001 - ro@suse.de
- changed neededforbuild <sdl> to <SDL>
- changed neededforbuild <sdl-devel> to <SDL-devel>
* Mon Jul 30 2001 - nadvornik@suse.cz
- update to 0.5.0pre2
* Mon Oct 09 2000 - nadvornik@suse.cz
- fixed Copyright
* Thu Apr 13 2000 - nadvornik@suse.cz
- added BuildRoot
* Fri Feb 18 2000 - sndirsch@suse.de
- updated to release 0.3.1
* Wed Feb 09 2000 - sndirsch@suse.de
- changed group tag
* Thu Jan 20 2000 - sndirsch@suse.de
- moved /usr/man/*,/usr/info/* to /usr/share/man and /usr/share/info
* Tue Jan 04 2000 - sndirsch@suse.de
- update to release 0.3.0a
* Mon Jan 03 2000 - sndirsch@suse.de
- adjusted to new clanlib package
* Thu Dec 23 1999 - sndirsch@suse.de
- updated to pingus 0.2.4, ClanLib 0.2.3 and Hermes 1.2.6
- removed OpenPTC, SVGALIB, FBDEV and GLX support (never worked)
- now only the necessary files are included
* Sun Oct 03 1999 - sndirsch@suse.de
- updated to pingus 0.2.3 and ClanLib 0.1.19
- the patch against ClanLib is not required any more
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Aug 30 1999 - ro@suse.de
- asm parts only used on x86
- no sa_restorer on alpha
* Fri Jul 16 1999 - sndirsch@suse.de
- updated pingus sources to version 0.1.1, now there are 5 levels playable
- updated OpenPTC sources to version 1.0.0-2
* Fri Jun 11 1999 - sndirsch@suse.de
- updated pingus sources to version 0.0.15
- updated clanlib sources to version 0.1.15
- updated hermes sources to version 1.2.5
* Tue May 11 1999 - sndirsch@suse.de
- updated package to release 0.0.14 (now two additional levels)
* Mon May 10 1999 - sndirsch@suse.de
- created SPEC file
openSUSE Build Service is sponsored by