File frozen-bubble.spec of Package frozen-bubble
#
# spec file for package frozen-bubble (Version 2.2.0rc1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: frozen-bubble
BuildRequires: Mesa-devel pango-devel
%if 0%{?suse_version}
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_Pango-devel SDL_image-devel SDL_perl update-desktop-files
%endif
%if 0%{?fedora_version}
Requires: perl-SDL >= 2.1.3
BuildRequires: SDL_Pango-devel SDL_mixer-devel glib2-devel perl-SDL >= 2.1.3
BuildRequires: gettext
%endif
Url: http://www.frozen-bubble.org/
License: GPL v2 or later
Group: Amusements/Games/Action/Arcade
Requires: perl = %{perl_version}
Requires: SDL_perl
AutoReqProv: on
Version: 2.2.0rc1
Release: 1
Summary: Puzzle with Bubbles
Source: %{name}-%{version}.tar.bz2
Source1: %name.desktop
Source2: %name.png
Source3: suse_frozen2.png
Source4: fb-server
Source5: de.po
Patch1: fb_keys.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-server = %{version}
%description
Shoot up bubbles. Similar to the console game Puzzle-Bobble.
Colorful 3D rendered penguin animations, 100 levels of 1p game, hours
and hours of 2p game, nights and nights of 2p/3p/4p/5p game over LAN or
Internet, a level-editor, 3 professional quality digital soundtracks,
15 stereo sound effects, 8 unique graphical transition effects, 8
unique logo eye-candies.
Authors:
--------
Guillaume Cottenceau <guillaume.cottenceau at free.fr>
%package server
License: GPL v2 or later
Summary: Puzzle with Bubbles - Server
Group: Amusements/Games/Action/Arcade
AutoReqProv: on
%description server
Server for frozen-bubble.
Authors:
--------
Guillaume Cottenceau <guillaume.cottenceau at free.fr>
%prep
%setup -q
cp %{SOURCE5} po/
cp server/init/README server/README.init
%patch1 -p1
%build
make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=/usr INSTALLDIRS=vendor DATADIR=/usr/share LIBDIR=%{_libdir}
%install
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr DATADIR=/usr/share LIBDIR=%{_libdir}
%if 0%{?suse_version}
%perl_process_packlist
%endif
rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/fb_c_stuff/.packlist
rm $RPM_BUILD_ROOT/var/adm/perl-modules/frozen-bubble
mkdir -p $RPM_BUILD_ROOT/etc/init.d
sed "s+\(FB_SERVER_BIN=\).*+\1%{_libdir}/frozen-bubble/fb-server+" %{SOURCE4} >$RPM_BUILD_ROOT/etc/init.d/fb-server
sed "s+\(FLPATH = '\).*'+\1%{_libdir}/frozen-bubble'+" c_stuff/lib/fb_stuff.pm >c_stuff/lib/fb_stuff.pm_
mv c_stuff/lib/fb_stuff.pm_ c_stuff/lib/fb_stuff.pm
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
install -m 644 $RPM_SOURCE_DIR/%name.png $RPM_BUILD_ROOT/usr/share/pixmaps
%if 0%{?suse_version}
%suse_update_desktop_file -i %name Game ArcadeGame
%endif
chmod 644 $RPM_BUILD_ROOT/usr/share/man/man6/frozen-bubble.6 \
$RPM_BUILD_ROOT/usr/share/man/man6/frozen-bubble-editor.6
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
ln -s /etc/init.d/fb-server $RPM_BUILD_ROOT/usr/sbin/rcfb-server
%find_lang %{name}
%clean
rm -rf %{buildroot}
%preun server
%stop_on_removal fb-server
%postun server
%restart_on_update fb-server
%insserv_cleanup
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING README
%dir %{perl_vendorarch}/auto/fb_c_stuff
%dir %{_libdir}/frozen-bubble
%{perl_vendorarch}/FBLE.pm
%{perl_vendorarch}/auto/fb_c_stuff/fb_c_stuff.bs
%{perl_vendorarch}/auto/fb_c_stuff/fb_c_stuff.so
%{perl_vendorarch}/fb_c_stuff.pm
%{perl_vendorarch}/fb_net.pm
%{perl_vendorarch}/fb_stuff.pm
%{perl_vendorarch}/fbsyms.pm
%exclude %{perl_vendorarch}/build_fbsyms
%{perl_vendorarch}/fb_net_discover.pm
/usr/bin/frozen-bubble
/usr/bin/frozen-bubble-editor
/usr/share/frozen-bubble/
%attr (644,root,root) %{_mandir}/man6/frozen-bubble.6.gz
%attr (644,root,root) %{_mandir}/man6/frozen-bubble-editor.6.gz
%if 0%{?suse_version} >= 1100
%attr (644,root,root) %{_mandir}/man3/fb_net_discover.3pm.gz
%endif
/usr/share/applications/%name.desktop
/usr/share/pixmaps/%name.png
%exclude /usr/share/frozen-bubble/gfx/gen
%files server
%defattr(-, root, root)
%doc server/AUTHORS COPYING server/README* server/init/fb-server.conf
%defattr(755, root, root)
%{_libdir}/frozen-bubble/fb-server
/etc/init.d/fb-server
/usr/sbin/rcfb-server
%changelog
* Fri Nov 07 2008 sndirsch@suse.de
- reviewed changes by Dirk Stöcker <opensuse@dstoecker.de>
* Tue Nov 04 2008 opensuse@dstoecker.de
- updated to 2.2.0 RC1 (removing two now integrated patches)
- NOTE that connections to older FB servers are no longer possible
* Fri Jun 27 2008 sndirsch@suse.de
- verified that dstoecker's changes are fine
* Fri Jun 27 2008 opensuse@dstoecker.de
- updated to current SVN version integrating lots of the patches
- fixed server starts script for 64 bit systems (bnc #404439)
* Mon Mar 10 2008 opensuse@dstoecker.de
- added /autokick command and messages for /kick
* Sun Feb 24 2008 crrodriguez@suse.de
- user find_lang macro
- frozen-bubble-server failed to call restart_on_update, stop_on_removal
and insserv_cleanup macros properly
* Wed Jan 30 2008 ro@suse.de
- fix missing prototype (logging_init)
* Mon Jan 14 2008 coolo@suse.de
- CheckHardware is dropped
* Thu Oct 04 2007 opensuse@dstoecker.de
- fixed LAN game server selection problem (Bug #336294)
- fixed LAN game server creation with long nickname
* Sun Sep 30 2007 sndirsch@suse.de
- added -server subpackage and a lot of patches by Dirk Stoecker
* Fri Sep 21 2007 sndirsch@suse.de
- make no use of %%optipng macro on openSUSE 10.2 (Bug #326968)
* Mon Sep 10 2007 sndirsch@suse.de
- make use of %%optipng macro (Bug #309087)
* Mon Dec 18 2006 sndirsch@suse.de
- removed bogus %%post/%%postun scripts (Bug #229374)
* Tue Dec 12 2006 dmueller@suse.de
- add missing require for .desktop file
* Wed Dec 06 2006 dmueller@suse.de
- don't build as root
* Sat Nov 25 2006 wstephenson@suse.de
- update to frozen-bubble 2.1.0
* 1-player multiplayer training: ability to activate chain reaction
* world map: you can view the amount of playing players, which helps chosing a server
* world map: you see playing players as green dots
* network game lounge: you can toggle fullscreen
* network game lounge: the game creator can activate chain-reaction and set a victories limit through options
* network game lounge: you can request server info
* network game lounge: chat is timestampped
* multiplayer: you can view who's attacking you
* Tue Nov 07 2006 sndirsch@suse.de
- added missing mini images for the colourblind balls (Bug #218841)
* Mon Nov 06 2006 sndirsch@suse.de
- fixed file permissions
* Mon Oct 30 2006 sndirsch@suse.de
- fixed sever startup for LAN game
* Sun Oct 29 2006 sndirsch@suse.de
- updated to frozen-bubble 2.0.0
* new 1-player game mode: multiplayer training; uses identical
game rules as multiplayer, generated malus bubbles are counted
as points - what score will you be able to reach in the 2
minutes time frame?
* network (Internet) game: up to 5 players in a game (net game
system has logic able to transparently handle players behind ai
NAT)
* LAN game: similar to network game except that no connection to
Internet is made, substituted by polling the local network
* fully revamped graphics, including now 3d-based smooth penguin
eyecandy
* revamped intro and 1p music into fully digital productions
* full joystick support: just move your joystick(s) or push
buttons in the "change keys" dialog (analog joysticks handled
as digital for fair play)
* recording and playback of all games with non-predefined levels
(1-player in random and multiplayer training, local 2-player,
and network/LAN game with 2 to 5 players)
* realtime graphical effects in the menu screen (if your computer
is fast enough)
* anti-aliased and localized messages
* Sat Oct 28 2006 sndirsch@suse.de
- fixed startup
* Fri Sep 08 2006 sndirsch@suse.de
- fixed build in openSUSE buildservice / Bug #212212
* Thu Feb 16 2006 stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 08 2005 sndirsch@suse.de
- fixed file permissions (#114849)
* Thu Jul 28 2005 sndirsch@suse.de
- added libmikmod to #neededforbuild
* Fri Jul 22 2005 sndirsch@suse.de
- added SDL_mixer-devel to #neededforbuild
* Fri Mar 19 2004 sndirsch@suse.de
- removed .orig files to fix build
* Mon Sep 22 2003 sndirsch@suse.de
- added 48x48 Icon as additional source
* Sat Aug 30 2003 sndirsch@suse.de
- added desktop icon
* Wed Aug 20 2003 mjancar@suse.cz
- require the perl version we build with
* Mon Aug 18 2003 sndirsch@suse.de
- removed previous patch again as SDL_perl was downgraded to 1.20.0
again
* Sat Aug 16 2003 sndirsch@suse.de
- added patch required for SDL_perl 2.0
* Sun Aug 10 2003 sndirsch@suse.de
- added desktop file
* Sun Jul 13 2003 sndirsch@suse.de
- fixed build
* Fri Jun 13 2003 sndirsch@suse.de
- fixed filelist
* Wed Jun 04 2003 sndirsch@suse.de
- fixed filelist for non-i386 archs
* Wed May 14 2003 sndirsch@suse.de
- fixed filelist
* Wed Apr 16 2003 coolo@suse.de
- use BuildRoot
* Mon Feb 17 2003 sndirsch@suse.de
- update to release 1.0.0
* added: level editor, contributed by Kim and David Joham
* added: 50 more levels, to make them 100 now
* changed: graphics have been re-designed
* added: chain-reaction mechanism in 2p-mode
* added: manpages (first contributed by Debian)
* Sun Oct 27 2002 sndirsch@suse.de
- added missing 'Requires: SDL_perl'
* Fri Oct 25 2002 sndirsch@suse.de
- fixed %%files section (use macros now)
* Thu Oct 24 2002 sndirsch@suse.de
- created package