]>
Commit | Line | Data |
---|---|---|
41c93371 | 1 | # TODO: make separate package with openal or use external source |
f0a14a48 | 2 | Summary: Chromium B.S.U. is a fast paced, arcade-style space shooter |
c3d5dfcb | 3 | Summary(pl.UTF-8): Chromium B.S.U. to szybko tocząca się strzelanina |
f0a14a48 | 4 | Name: chromium |
5 | Version: 0.9.12 | |
8c6cedb3 | 6 | Release: 12 |
f0a14a48 | 7 | License: Artistic |
8 | Group: X11/Applications/Games | |
f0a14a48 | 9 | Source0: http://www.reptilelabour.com/software/files/chromium/%{name}-src-%{version}.tar.gz |
078b73d0 | 10 | # Source0-md5: 969883f2f20f10cd6cdb380582f130c4 |
f0a14a48 | 11 | Source1: http://www.reptilelabour.com/software/files/chromium/%{name}-data-%{version}.tar.gz |
078b73d0 | 12 | # Source1-md5: 173fdf76f1e4d7496142cd5662456a73 |
c455e7de | 13 | Source2: %{name}.desktop |
14 | Source3: %{name}-setup.desktop | |
15 | Source4: %{name}.png | |
4016eef9 | 16 | Patch0: %{name}-fix-flags.patch |
17 | Patch1: %{name}-glibc-2.2.2.patch | |
5a1cdd56 | 18 | Patch2: %{name}-gcc3.patch |
4016eef9 | 19 | Patch3: %{name}-fix-openal-configurecall.patch |
20 | Patch4: %{name}-configure_needs_bash.patch | |
21 | Patch5: %{name}-qt.patch | |
22 | Patch6: %{name}-use_proper_CC.patch | |
41c93371 PG |
23 | Patch7: %{name}-fix-qt3.patch |
24 | Patch8: %{name}-ac_fix.patch | |
32ca520d | 25 | Patch9: %{name}-shared-zlib.patch |
e8da015a TP |
26 | Patch10: %{name}-libvorbisfile.patch |
27 | Patch11: %{name}-freealut.patch | |
f0a14a48 | 28 | URL: http://www.reptilelabour.com/software/chromium/ |
5a1cdd56 | 29 | BuildRequires: OpenAL-devel |
f0a14a48 | 30 | BuildRequires: OpenGL-devel |
f4d2b431 | 31 | BuildRequires: SDL-devel >= 1.1.6 |
e8da015a | 32 | BuildRequires: freealut-devel |
70ba794e | 33 | BuildRequires: libogg-devel |
9c62f39b PG |
34 | BuildRequires: libvorbis-devel |
35 | BuildRequires: smpeg-devel >= 0.4.2 | |
f4d2b431 | 36 | BuildRequires: qt-devel |
32ca520d | 37 | BuildRequires: zlib-devel |
f4d2b431 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f0a14a48 | 39 | |
73aa526d | 40 | %define _noautoreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1 |
4ffed702 | 41 | |
f55fe8b0 | 42 | %description |
43 | You are captain of the cargo ship Chromium B.S.U., responsible for | |
f0a14a48 | 44 | delivering supplies to our troops on the front line. Your ship has a |
45 | small fleet of robotic fighters which you control from the relative | |
46 | safety of the Chromium vessel. | |
47 | - Do not let ANY enemy ships get past your fighters! Each enemy ship | |
48 | that makes it past the bottom of the screen will attack the Chromium, | |
49 | and you lose a fighter. | |
f55fe8b0 | 50 | - Use your fighters as weapons! Crash into enemies to destroy them |
f0a14a48 | 51 | before they can get past you. |
52 | - Strategic suicide is a powerful tactic! When the Chromium launches a | |
53 | new fighter, it releases a high energy burst which destroys all | |
54 | enemies in range. | |
55 | - Self-destruct to preserve your ammunition! A double-right-click will | |
56 | cause your current fighter to self-destruct. Before the ship blows up, | |
57 | it ejects its ammunition so that the next fighter can pick it up. | |
f55fe8b0 | 58 | |
3ced6e6d JR |
59 | %description -l pl.UTF-8 |
60 | Jesteś kapitanem statku Chromium B.S.U, odpowiedzialnego za | |
61 | dostarczenie zapasów do oddziałów na linii frontu. Statek ma małą | |
62 | flotę automatycznych myśliwców, którymi możesz kierować ze statku. | |
63 | - Nie pozwól ŻADNEMU wrogowi przejść za swoje myśliwce! Każdy statek | |
64 | który dotrze na dół ekranu zaatakuje Chromium i stracisz myśliwca. | |
65 | - Używaj myśliwców jako broni! Uderzaj we wrogów aby zniszczyć ich | |
66 | zanim oni przedostaną się do ciebie. | |
67 | - Strategiczne samobójstwo to dobra taktyka! Kiedy Chromium odpala | |
68 | nowego myśliwca, wytwarza dużo energii, która niszczy wszystkich | |
69 | wrogów w zasięgu. | |
70 | - Autodestrukcja pozwala zachować amunicję - przed wysadzeniem się | |
71 | myśliwiec zwraca amunicję tak, że następny może ją przejąć. | |
8f0aad5f | 72 | |
4ffed702 | 73 | %package setup |
4016eef9 | 74 | Summary: Setup frontend for Chromium |
c3d5dfcb | 75 | Summary(pl.UTF-8): Graficzny konfigurator Chromium |
4016eef9 | 76 | Group: X11/Applications/Games |
4016eef9 | 77 | Requires: %{name} = %{version}-%{release} |
4ffed702 | 78 | |
79 | %description setup | |
690b08f8 | 80 | This package contains the setup frontend (using Qt) to ease |
4ffed702 | 81 | configuration of Chromium, especially for its playlist features. |
82 | ||
3ced6e6d JR |
83 | %description setup -l pl.UTF-8 |
84 | Ten pakiet zawiera graficzny konfigurator (napisany w Qt) ułatwiający | |
85 | ustalanie parametrów dla gry Chromium, szczególnie jeśli chodzi o | |
86 | listę muzyki do odtwarzania. | |
4ffed702 | 87 | |
f55fe8b0 | 88 | %prep |
5a1cdd56 | 89 | %setup -q -n Chromium-0.9 -a 1 |
4ffed702 | 90 | %patch0 -p0 |
91 | %patch1 -p0 | |
5a1cdd56 | 92 | %patch2 -p0 |
4ffed702 | 93 | %patch3 -p0 |
94 | %patch4 -p1 | |
95 | %patch5 -p1 | |
96 | %patch6 -p1 | |
41c93371 PG |
97 | %patch7 -p1 |
98 | %patch8 -p1 | |
32ca520d | 99 | %patch9 -p1 |
5a1cdd56 | 100 | %patch10 -p0 |
e8da015a | 101 | %patch11 -p0 |
f55fe8b0 | 102 | find . -type d -name .xvpics -exec rm -rf {} \; ||: |
103 | ||
104 | %build | |
5a1cdd56 | 105 | CHROMIUM_DATA=Chromium-0.9/data |
833791e3 JB |
106 | CFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe" |
107 | CXXFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe" | |
6f0f4ecb ER |
108 | CC="%{__cc}" |
109 | CXX="%{__cc}" | |
110 | LINK="%{__cc}" | |
833791e3 | 111 | DEFS="%{rpmcflags} -DGAMESBINDIR=\\\"%{_bindir}\\\" \ |
73aa526d | 112 | -DPKGDATADIR=\\\"%{_datadir}/Chromium-0.9\\\" -DUSE_SDL \ |
e8da015a TP |
113 | `sdl-config --cflags` -DAUDIO_OPENAL -D_REENTRANT \ |
114 | -I../../include" | |
833791e3 JB |
115 | OPENAL_CONFIG_OPTS="./configure --with-gcc=%{__cc}" |
116 | QTDIR=%{_prefix} | |
5a1cdd56 | 117 | export CFLAGS CXXFLAGS CC CXX LINK DEFS OPENAL_CONFIG_OPTS QTDIR CHROMIUM_DATA |
4ffed702 | 118 | ./configure --enable-vorbis |
f0a14a48 | 119 | %{__make} |
f55fe8b0 | 120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
70377356 | 123 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_bindir},%{_datadir}} |
f55fe8b0 | 124 | |
606c757c | 125 | install bin/* $RPM_BUILD_ROOT%{_bindir} |
f55fe8b0 | 126 | |
70377356 TP |
127 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
128 | install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} | |
8f0aad5f | 129 | install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir} |
f55fe8b0 | 130 | |
4ffed702 | 131 | #This installs datafiles |
606c757c | 132 | tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir} |
f4d2b431 | 133 | find . -type d -name CVS -exec rm -rf {} \; ||: |
134 | ||
833791e3 JB |
135 | %clean |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
f55fe8b0 | 138 | %files |
f0a14a48 | 139 | %defattr(644,root,root,755) |
9c62f39b | 140 | %doc LICENSE |
833791e3 | 141 | %attr(755,root,root) %{_bindir}/chromium |
033fd8ca | 142 | %{_datadir}/Chromium-* |
4ffed702 | 143 | %{_pixmapsdir}/chromium.png |
cfb902ab | 144 | %{_desktopdir}/%{name}.desktop |
f4d2b431 | 145 | |
4ffed702 | 146 | %files setup |
147 | %defattr(644,root,root,755) | |
9c62f39b | 148 | %doc README |
30e9f1d5 | 149 | %attr(755,root,root) %{_bindir}/chromium-setup |
cfb902ab | 150 | %{_desktopdir}/%{name}-setup.desktop |