1 # TODO: make separate package with openal or use external source
2 Summary: Chromium B.S.U. is a fast paced, arcade-style space shooter
3 Summary(pl): Chromium B.S.U. to szybko tocz±ca siê strzelanina
8 Group: X11/Applications/Games
9 Source0: http://www.reptilelabour.com/software/files/chromium/%{name}-src-%{version}.tar.gz
10 Source1: http://www.reptilelabour.com/software/files/chromium/%{name}-data-%{version}.tar.gz
11 Source2: %{name}.desktop
12 Source3: %{name}-setup.desktop
14 Patch0: %{name}-fix-flags.patch
15 Patch1: %{name}-glibc-2.2.2.patch
16 Patch3: %{name}-fix-openal-configurecall.patch
17 Patch4: %{name}-configure_needs_bash.patch
18 Patch5: %{name}-qt.patch
19 Patch6: %{name}-use_proper_CC.patch
20 Patch7: %{name}-fix-qt3.patch
21 Patch8: %{name}-ac_fix.patch
22 Patch9: %{name}-shared-zlib.patch
23 URL: http://www.reptilelabour.com/software/chromium/
24 BuildRequires: OpenGL-devel
25 BuildRequires: SDL-devel >= 1.1.6
26 BuildRequires: libogg-devel
27 BuildRequires: libvorbis-devel
28 BuildRequires: smpeg-devel >= 0.4.2
29 BuildRequires: qt-devel
30 BuildRequires: zlib-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _bindir %{_prefix}/bin
34 %define _datadir %{_prefix}/share/games
35 %define _noautoreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1
36 %define _noreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1
39 You are captain of the cargo ship Chromium B.S.U., responsible for
40 delivering supplies to our troops on the front line. Your ship has a
41 small fleet of robotic fighters which you control from the relative
42 safety of the Chromium vessel.
43 - Do not let ANY enemy ships get past your fighters! Each enemy ship
44 that makes it past the bottom of the screen will attack the Chromium,
45 and you lose a fighter.
46 - Use your fighters as weapons! Crash into enemies to destroy them
47 before they can get past you.
48 - Strategic suicide is a powerful tactic! When the Chromium launches a
49 new fighter, it releases a high energy burst which destroys all
51 - Self-destruct to preserve your ammunition! A double-right-click will
52 cause your current fighter to self-destruct. Before the ship blows up,
53 it ejects its ammunition so that the next fighter can pick it up.
56 Jeste¶ kapitanem statku Chromium B.S.U, odpowiedzialnego za
57 dostarczenie zapasów do oddzia³ów na linii frontu. Statek ma ma³±
58 flotê automatycznych my¶liwców, którymi mo¿esz kierowaæ ze statku.
59 - Nie pozwól ¯ADNEMU wrogowi przej¶æ za swoje my¶liwce! Ka¿dy statek
60 który dotrze na dó³ ekranu zaatakuje Chromium i stracisz my¶liwca.
61 - U¿ywaj my¶liwców jako broni! Uderzaj we wrogów aby zniszczyæ ich
62 zanim oni przedostan± siê do ciebie.
63 - Strategiczne samobójstwo to dobra taktyka! Kiedy Chromium odpala
64 nowego my¶liwca, wytwarza du¿o energii, która niszczy wszystkich
66 - Autodestrukcja pozwala zachowaæ amunicjê - przed wysadzeniem siê
67 my¶liwiec zwraca amunicjê tak, ¿e nastêpny mo¿e j± przej±æ.
70 Summary: Setup frontend for Chromium
71 Summary(pl): Graficzny konfigurator Chromium
72 Group: X11/Applications/Games
73 Requires: %{name} = %{version}-%{release}
76 This package contains the setup frontend (using QT) to ease
77 configuration of Chromium, especially for its playlist features.
79 %description setup -l pl
80 Ten pakiet zawiera graficzny konfigurator (napisany w QT) u³atwiaj±cy
81 ustalanie parametrów dla gry Chromium, szczególnie je¶li chodzi o
82 listê muzyki do odtwarzania.
85 %setup -q -n Chromium-0.9
95 find . -type d -name .xvpics -exec rm -rf {} \; ||:
98 CFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe"
99 CXXFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe"
103 DEFS="%{rpmcflags} -DGAMESBINDIR=\\\"%{_bindir}\\\" \
104 -DPKGDATADIR=\\\"%{_datadir}/Chromium-0.9\\\" -DUSE_SDL \
105 `sdl-config --cflags` -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT \
106 -I../../include -I../support/openal/linux/include -I../support/openal/include"
107 #export OPENAL_CONFIG_OPTS="./configure %{_target_platform} --with-gcc=%{__cc}"
108 OPENAL_CONFIG_OPTS="./configure --with-gcc=%{__cc}"
110 export CFLAGS CXXFLAGS CC CXX LINK DEFS OPENAL_CONFIG_OPTS QTDIR
111 ./configure --enable-vorbis
115 rm -rf $RPM_BUILD_ROOT
116 install -d $RPM_BUILD_ROOT{%{_applnkdir}/{Games/Arcade,Settings},%{_pixmapsdir},%{_bindir},%{_datadir}}
118 # It is enough to install one file
119 #%%{__make} install DESTDIR=RPM_BUILD_ROOT
120 install bin/* $RPM_BUILD_ROOT/%{_bindir}
122 install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Games/Arcade/%{name}.desktop
123 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Settings/%{name}.desktop
124 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
126 #This installs datafiles
127 tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT/%{_datadir}
128 find . -type d -name CVS -exec rm -rf {} \; ||:
131 rm -rf $RPM_BUILD_ROOT
134 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/chromium
138 %{_pixmapsdir}/chromium.png
139 %{_applnkdir}/Games/Arcade/*
142 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/chromium-setup
145 %{_applnkdir}/Settings/*