Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 35d740d5e6f7f6a46f933aaa5ed3648c > files > 6

clanbomber-1.04-1mdk.src.rpm

%define name clanbomber
%define version 1.04
%define release 1mdk

Summary: Clanbomber - free (GPL) Bomberman-like multiplayer game 
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://www.clanbomber.de/files/clanbomber-%{version}.tar.bz2
Source10: %{name}.16.png
Source11: %{name}.32.png
Source12: %{name}.48.png
Patch8: clanbomber-1.02a-gcc-3.3.patch.bz2
URL: http://clanbomber.sourceforge.net/
License: GPL
Group: Games/Arcade
Packager: Guillaume Cottenceau <gc@mandrakesoft.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: zlib-devel libhermes-devel clanlib0.6-devel libclanlib-mikmod libmikmod-devel libclanlib-sound

%description
ClanBomber is a free (GPL) Bomberman-like multiplayer game that uses ClanLib, a
free multi platform C++ game SDK. First "ClanBomber" was only a working title
for a small game started in September 1998, that has only been started to learn
how to use ClanLib. But the ClanBomber project has grown into a real game. It
is fully playable and features Computer controlled bombers, however, it is
recommended to play ClanBomber with friends (3-8 players are really fun).

%prep
%setup -q
%patch8 -p1 -b .peroyvind
perl -pi -e 's|\@datadir\@|\$(datadir)|' */Makefile.am */*/Makefile.am
aclocal-1.7

%build
# (gc) workaround g++ exception bug when -fomit-frame-pointer is set
export CFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer" CXXFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer"
%configure2_5x --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
make

%install
rm -rf "$RPM_BUILD_ROOT"
%makeinstall bindir=$RPM_BUILD_ROOT%{_gamesbindir} datadir=$RPM_BUILD_ROOT%{_gamesdatadir}

mkdir -p $RPM_BUILD_ROOT/%{_menudir}
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" icon="%{name}.png" \
  needs="x11" section="Amusement/Arcade" title="ClanBomber" \
  longtitle="%{summary}"
EOF

install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_gamesbindir}/*
%{_gamesdatadir}/*
%{_menudir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

%changelog
* Wed Jan 21 2004 Guillaume Cottenceau <gc@mandrakesoft.com> 1.04-1mdk
- new version (many patches including MANDRAKE_KEYS merged upstream ;p)

* Tue Sep  2 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-11mdk
- fix build deps for 64bit platform

* Wed Jul 23 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.02-10mdk
- rebuild
- convert icons to png
- fix missing header (P8)

* Mon Jan 20 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-9mdk
- rebuild for clanlib-0.6.x

* Wed Aug 14 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.02-8mdk
- Automated rebuild with gcc 3.2-0.3mdk

* Mon Jul 29 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.02-7mdk
- Remove NO_XALF from menu entry

* Wed May 29 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-6mdk
- recompile against latest libstdc++ and latest clanlib

* Wed Feb 20 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-5mdk
- add patch #6 so that clanbomber can find its files

* Mon Nov 12 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-4mdk
- recompile against clanlib-0.5.1 (binary datafiles are not compatible
  with 0.5.0)

* Mon Oct 15 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-3mdk
- fix obsolete-tag Copyright
- fix URL

* Mon Sep 10 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-2mdk
- don't require launch_x11_clanapp
- use version 1.02a to fix an ugly memory leak
- fix music

* Fri May  4 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.02-1mdk
- 1.02 which is compliant with ClanLib-0.5

* Mon Apr  9 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.01-12mdk
- Fix menu entry for GNOME

* Fri Mar 30 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-11mdk
- use no-omit-frame-pointer to workaround g++ exceptions bug

* Fri Feb 16 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-10mdk
- add 48x48 icon
- fix requires on launch_x11_clanapp

* Wed Nov 29 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-9mdk
- rebuild to follow new lib policy of clanlib

* Fri Nov  3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-8mdk
- recompile against newest libstdc++
- against lowercased hermes and clanlib

* Tue Oct 17 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-7mdk
- fix compile with gcc-2.96

* Wed Sep  6 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-6mdk
- menu: now launches automatically the x11 target

* Wed Aug 23 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-5mdk
- automatically added packager tag

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.01-4mdk
- automatically added BuildRequires

* Tue Aug  1 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-3mdk
- menu entry

* Tue Aug  1 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-2mdk
- added patch for support for mandrake keys (use MANDRAKE_KEYS envvar)

* Mon Jul 31 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.01-1mdk
- first package for Linux-Mandrake