Summary: Chromium B.S.U. is a fast paced, arcade-style space shooter Summary(pl): Chromium B.S.U. to szybko tocząca się strzelanina Name: chromium Version: 0.9.12 Release: 8 License: Artistic Group: X11/Applications/Games Group(de): X11/Applikationen/Spiele Group(pl): X11/Aplikacje/Gry Source0: http://www.reptilelabour.com/software/files/chromium/%{name}-src-%{version}.tar.gz Source1: http://www.reptilelabour.com/software/files/chromium/%{name}-data-%{version}.tar.gz Source2: %{name}.desktop Source3: %{name}-setup.desktop Source4: %{name}.png # This one allows definitions of all compile flags directly in .spec # by just commenting out those settings in Makefiles # This is patch from Mandrake Cooker Patch0: chromium-0.9.12-fix-flags.patch # To be further investigated if this patch is needed # This is patch from Mandrake Cooker Patch1: chromium-0.9.11-glibc-2.2.2.patch #Patch0 from RH obsoleted by much better idea from Mandrake #to setup OPENAL_OPT_FLAGS in spec (patch3 below) # This is patch from Mandrake Cooker #Patch0: %{name}-config.patch Patch3: chromium-0.9.12-fix-openal-configurecall.patch # This one fixes problems with ./configure (/bin/sh is NOT a link # to /bin/bash in PLD # This is patch from fastviper Patch4: %{name}-configure_needs_bash.patch # As PLD doesn't have any QTDIR it's necessary to change Makefile # so that /usr/X11R6 could be one. # This is patch from fastviper Patch5: %{name}-qt.patch # This patch comments out CC and CCX settings in Makefile allowing # use of nondefault compiler/linker. export CC from .spec # This is patch from fastviper Patch6: %{name}-use_proper_CC.patch BuildRequires: libogg-devel qt-devel SDL-devel libvorbis-devel URL: http://www.reptilelabour.com/software/chromium/ BuildPrereq: SDL-devel >= 1.1.6 BuildRequires: OpenGL-devel #BuildPrereq: kdelibs-sound-devel Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _prefix /usr/X11R6/ %define _mandir %{_prefix}/man %define _bindir %{_prefix}/bin %define _gamesbindir %{_bindir} %define _gamesdatadir %{_prefix}/share/games %define _noautoreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1 %define _noreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1 %description You are captain of the cargo ship Chromium B.S.U., responsible for delivering supplies to our troops on the front line. Your ship has a small fleet of robotic fighters which you control from the relative safety of the Chromium vessel. - Do not let ANY enemy ships get past your fighters! Each enemy ship that makes it past the bottom of the screen will attack the Chromium, and you lose a fighter. - Use your fighters as weapons! Crash into enemies to destroy them before they can get past you. - Strategic suicide is a powerful tactic! When the Chromium launches a new fighter, it releases a high energy burst which destroys all enemies in range. - Self-destruct to preserve your ammunition! A double-right-click will cause your current fighter to self-destruct. Before the ship blows up, it ejects its ammunition so that the next fighter can pick it up. %description -l pl Jesteś kapitanem statku Chromium B.S.U, odpowiedzialnego za dostarczenie zapasów do oddziałów na linii frontu. Statek ma małą flotę automatycznych myśliwców, którymi możesz kierować ze statku. - Nie pozwól ŻADNEMU wrogowi przejść za swoje myśliwce! Każdy statek który dotrze na dół ekranu zaatakuje Chromium i stracisz myśliwca. - Używaj myśliwców jako broni! Uderzaj we wrogów aby zniszczyć ich zanim oni przedostaną się do ciebie. - Strategiczne samobójstwo to dobra taktyka! Kiedy Chromium odpala nowego myśliwca, wytwarza dużo energii, która niszczy wszystkich wrogów w zasięgu. - Autodestrukcja pozwala zachować amunicję - przed wysadzeniem się myśliwiec zwraca amunicję tak, że następny może ją przejąć. %package setup Summary: Setup frontend for Chromium Summary(pl): Graficzny konfigurator Chromium Group: X11/Applications/Games Requires: %{name} = %{version}-%{release} Requires: qt %description setup This package contains the setup frontend (using QT) to ease configuration of Chromium, especially for its playlist features. %description setup -l pl Ten pakiet zawiera graficzny konfigurator (napisany w QT) ułatwiający ustalanie parametrów dla gry Chromium, szczególnie jeśli chodzi o listę muzyki do odtwarzania. %prep %setup -q -n Chromium-0.9 %patch0 -p0 %patch1 -p0 %patch3 -p0 %patch4 -p1 %patch5 -p1 %patch6 -p1 find . -type d -name .xvpics -exec rm -rf {} \; ||: %build export CFLAGS="%{rpmcflags} -fno-omit-frame-pointer" export CXXFLAGS="%{rpmcflags} -fno-omit-frame-pointer" export CC=%{__cc} export CXX=%{__cc} export LINK=%{__cc} export DEFS="%{rpmcflags} -DGAMESBINDIR=\\\"%{_gamesbindir}\\\" \ -DPKGDATADIR=\\\"%{_gamesdatadir}/Chromium-0.9\\\" -DUSE_SDL \ `sdl-config --cflags` -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT \ -I../../include -I../support/openal/linux/include -I../support/openal/include" export OPENAL_CONFIG_OPTS="./configure %{_target_platform} --with-gcc=%{__cc}" export QTDIR=%{_prefix} ./configure --enable-vorbis %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_applnkdir}/{Games/Arcade,Settings},%{_pixmapsdir},%{_gamesbindir},%{_gamesdatadir}} # It is enough to install one file #%{__make} install DESTDIR=RPM_BUILD_ROOT install bin/* $RPM_BUILD_ROOT/%{_gamesbindir} install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Games/Arcade/%{name}.desktop install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Settings/%{name}.desktop install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir} #This installs datafiles tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT/%{_gamesdatadir} %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %{_pixmapsdir}/chromium.png %{_applnkdir}/Games/Arcade/* %{_applnkdir}/Settings/* #%{_prefix}/games/chromium %{_gamesdatadir}/* %files setup %defattr(644,root,root,755) %doc README %attr(755,root,root) %{_bindir}/chromium-setup %clean rm -rf $RPM_BUILD_ROOT