]>
Commit | Line | Data |
---|---|---|
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.UTF-8): Chromium B.S.U. to szybko tocząca się strzelanina | |
4 | Name: chromium | |
5 | Version: 0.9.12 | |
6 | Release: 10 | |
7 | License: Artistic | |
8 | Group: X11/Applications/Games | |
9 | Source0: http://www.reptilelabour.com/software/files/chromium/%{name}-src-%{version}.tar.gz | |
10 | # Source0-md5: 969883f2f20f10cd6cdb380582f130c4 | |
11 | Source1: http://www.reptilelabour.com/software/files/chromium/%{name}-data-%{version}.tar.gz | |
12 | # Source1-md5: 173fdf76f1e4d7496142cd5662456a73 | |
13 | Source2: %{name}.desktop | |
14 | Source3: %{name}-setup.desktop | |
15 | Source4: %{name}.png | |
16 | Patch0: %{name}-fix-flags.patch | |
17 | Patch1: %{name}-glibc-2.2.2.patch | |
18 | Patch2: %{name}-gcc3.patch | |
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 | |
23 | Patch7: %{name}-fix-qt3.patch | |
24 | Patch8: %{name}-ac_fix.patch | |
25 | Patch9: %{name}-shared-zlib.patch | |
26 | Patch10: %{name}-libvorbisfile.patch | |
27 | Patch11: %{name}-freealut.patch | |
28 | URL: http://www.reptilelabour.com/software/chromium/ | |
29 | BuildRequires: OpenAL-devel | |
30 | BuildRequires: OpenGL-devel | |
31 | BuildRequires: SDL-devel >= 1.1.6 | |
32 | BuildRequires: freealut-devel | |
33 | BuildRequires: libogg-devel | |
34 | BuildRequires: libvorbis-devel | |
35 | BuildRequires: smpeg-devel >= 0.4.2 | |
36 | BuildRequires: qt-devel | |
37 | BuildRequires: zlib-devel | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %define _noautoreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1 | |
41 | ||
42 | %description | |
43 | You are captain of the cargo ship Chromium B.S.U., responsible for | |
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. | |
50 | - Use your fighters as weapons! Crash into enemies to destroy them | |
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. | |
58 | ||
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ąć. | |
72 | ||
73 | %package setup | |
74 | Summary: Setup frontend for Chromium | |
75 | Summary(pl.UTF-8): Graficzny konfigurator Chromium | |
76 | Group: X11/Applications/Games | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description setup | |
80 | This package contains the setup frontend (using Qt) to ease | |
81 | configuration of Chromium, especially for its playlist features. | |
82 | ||
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. | |
87 | ||
88 | %prep | |
89 | %setup -q -n Chromium-0.9 -a 1 | |
90 | %patch0 -p0 | |
91 | %patch1 -p0 | |
92 | %patch2 -p0 | |
93 | %patch3 -p0 | |
94 | %patch4 -p1 | |
95 | %patch5 -p1 | |
96 | %patch6 -p1 | |
97 | %patch7 -p1 | |
98 | %patch8 -p1 | |
99 | %patch9 -p1 | |
100 | %patch10 -p0 | |
101 | %patch11 -p0 | |
102 | find . -type d -name .xvpics -exec rm -rf {} \; ||: | |
103 | ||
104 | %build | |
105 | CHROMIUM_DATA=Chromium-0.9/data | |
106 | CFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe" | |
107 | CXXFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe" | |
108 | CC="%{__cc}" | |
109 | CXX="%{__cc}" | |
110 | LINK="%{__cc}" | |
111 | DEFS="%{rpmcflags} -DGAMESBINDIR=\\\"%{_bindir}\\\" \ | |
112 | -DPKGDATADIR=\\\"%{_datadir}/Chromium-0.9\\\" -DUSE_SDL \ | |
113 | `sdl-config --cflags` -DAUDIO_OPENAL -D_REENTRANT \ | |
114 | -I../../include" | |
115 | OPENAL_CONFIG_OPTS="./configure --with-gcc=%{__cc}" | |
116 | QTDIR=%{_prefix} | |
117 | export CFLAGS CXXFLAGS CC CXX LINK DEFS OPENAL_CONFIG_OPTS QTDIR CHROMIUM_DATA | |
118 | ./configure --enable-vorbis | |
119 | %{__make} | |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_bindir},%{_datadir}} | |
124 | ||
125 | install bin/* $RPM_BUILD_ROOT%{_bindir} | |
126 | ||
127 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
128 | install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} | |
129 | install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir} | |
130 | ||
131 | #This installs datafiles | |
132 | tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir} | |
133 | find . -type d -name CVS -exec rm -rf {} \; ||: | |
134 | ||
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %files | |
139 | %defattr(644,root,root,755) | |
140 | %doc LICENSE | |
141 | %attr(755,root,root) %{_bindir}/chromium | |
142 | %{_datadir}/* | |
143 | %{_pixmapsdir}/chromium.png | |
144 | %{_desktopdir}/%{name}.desktop | |
145 | ||
146 | %files setup | |
147 | %defattr(644,root,root,755) | |
148 | %doc README | |
149 | %attr(755,root,root) %{_bindir}/chromium-setup | |
150 | %{_desktopdir}/%{name}-setup.desktop |