# $Id: frozen-bubble.spec,v 1.1 2005/08/09 19:16:40 altblue Exp $ # Authority: matthias # Upstream: %define desktop_vendor freshrpms Summary: Frozen Bubble arcade game Name: frozen-bubble Version: 1.0.0 Release: 8.2.n0i.1 License: GPL Group: Amusements/Games URL: http://www.frozen-bubble.org/ Source: http://zarb.org/~gc/fb/frozen-bubble-%{version}.tar.bz2 Patch0: frozen-bubble-1.0.0-perl-SDL.patch Patch1: frozen-bubble-1.0.0-FBLE.pm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: perl-SDL >= 1.19.0, SDL, SDL_mixer >= 1.2.2 BuildRequires: perl-SDL >= 1.19.0, SDL-devel, SDL_mixer-devel >= 1.2.2 #BuildConflicts: gimp-perl, gsl, perl-PDL %{!?_without_freedesktop:BuildRequires: desktop-file-utils} %description Full-featured, colorful animated penguin eyecandy, 100 levels of 1p game, hours and hours of 2p game, 3 professional quality 20-channels musics, 15 stereo sound effects, 7 unique graphical transition effects and a level editor. %prep %setup %patch0 -p0 -b .perlSDL %patch1 -p0 # The "min 1.19.0" requirement check for perl-SDL is broken %{__perl} -pi.orig -e 's|\@if ! perl.*||g' Makefile %build %{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" PREFIX="%{_prefix}" %install %{__rm} -rf %{buildroot} %{__make} install \ PREFIX=%{buildroot}%{_prefix} \ INSTALLARCHLIB=%{buildroot}%{perl_sitearch} \ INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \ INSTALLVENDORARCH=%{buildroot}%{perl_sitearch} %{__rm} -f %{buildroot}%{perl_sitearch}/{build_fbsyms,perllocal.pod} find %{buildroot} -name .xvpics | xargs rm -rf %{__install} -D -m644 icons/frozen-bubble-icon-48x48.png \ %{buildroot}%{_datadir}/pixmaps/frozen-bubble.png # Install menu entry %{__cat} > %{name}.desktop << EOF [Desktop Entry] Name=Frozen Bubble Comment=Arcade game where you need to launch bubbles and group them by color Exec=frozen-bubble Icon=frozen-bubble.png Terminal=false Type=Application Categories=Application;Game;ArcadeGame; Encoding=UTF-8 EOF %if %{!?_without_freedesktop:1}0 %{__mkdir_p} %{buildroot}%{_datadir}/applications desktop-file-install \ --vendor %{desktop_vendor} \ --dir %{buildroot}%{_datadir}/applications \ %{name}.desktop %else %{__install} -D -m 0644 %{name}.desktop \ %{buildroot}%{_sysconfdir}/X11/applnk/Games/%{name}.desktop %endif # Quick fix in order to not have rpm pick up perl(Gimp) as a dependency %{__chmod} -x %{buildroot}%{_prefix}/share/%{name}/gfx/shoot/create.pl # Clean up the installed perl files %{__rm} -f `find %{buildroot} -name '*.bs' -o -name .packlist` %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS CHANGES COPYING README %{_prefix}/bin/* %{_prefix}/share/%{name} %{_prefix}/share/man/man6/* %{_datadir}/pixmaps/%{name}.png %{perl_sitearch}/auto/* %{perl_sitearch}/*.pm %if %{!?_without_freedesktop:1}0 %{_datadir}/applications/%{desktop_vendor}-%{name}.desktop %else %{_sysconfdir}/X11/applnk/Games/%{name}.desktop %endif %changelog * Mon Dec 06 2004 Marius FERARU - rebuild (perl 5.8.6) * Fri Nov 5 2004 Matthias Saou 1.0.0-8 - Replaced patch from one found on the sdl.perl list : http://www.nntp.perl.org/group/perl.sdl.devel/972 * Tue Nov 2 2004 Matthias Saou 1.0.0-7 - Added perl-SDL.patch to fix running against recent releases. - Remove .bs and .packlist temp perl files from the packaged files. * Wed May 19 2004 Matthias Saou 1.0.0-6 - Updated the source location. - Rebuild for Fedora Core 2. * Wed May 5 2004 Matthias Saou 1.0.0-6 - Spec file cleanups : More macros, fixed desktop entry description. * Wed Dec 10 2003 Matthias Saou 1.0.0-5 - Rebuild for Fedora Core 1 as the perl-SDL package is fixed at last. - Added SDL_mixer build dep. - Remove Autoreq disabling and add a nicer fix for the perl(Gimp) dep. * Tue Apr 1 2003 Matthias Saou - Replace the __find_requires with AutoReq: as it works better. - Remove .xvpics from installed files. * Mon Mar 31 2003 Matthias Saou - Rebuilt for Red Hat Linux 9. * Tue Feb 18 2003 Matthias Saou - Added missing man pages, thanke to Michal Ambroz. * Mon Feb 17 2003 Matthias Saou - Update to 1.0.0. * Mon Oct 28 2002 Matthias Saou - Rebuilt for Red Hat Linux 8.0 (at last!). - New menu entry. * Thu Feb 7 2002 Matthias Saou - Update to 0.9.3. * Thu Feb 7 2002 Matthias Saou - Spec file modifications for a Red Hat Linux release. * Wed Feb 6 2002 Guillaume Cottenceau 0.9.1-1mdk - first mdk rpm