]> git.pld-linux.org Git - packages/chromium-bsu.git/blob - chromium-bsu.spec
da438bcc8f1989e569914d3dac3967e781cdeffa
[packages/chromium-bsu.git] / chromium-bsu.spec
1 Summary:        Chromium B.S.U. is a fast paced, arcade-style space shooter
2 Summary(pl):    Chromium B.S.U. to szybko tocz±ca siê strzelanina
3 Name:           chromium
4 Version:        0.9.12
5 Release:        8
6 License:        Artistic
7 Group:          X11/Applications/Games
8 Group(de):      X11/Applikationen/Spiele
9 Group(pl):      X11/Aplikacje/Gry
10
11 Source0:        http://www.reptilelabour.com/software/files/chromium/%{name}-src-%{version}.tar.gz
12 Source1:        http://www.reptilelabour.com/software/files/chromium/%{name}-data-%{version}.tar.gz
13 Source2:        %{name}.desktop
14 Source3:        %{name}-setup.desktop
15 Source4:        %{name}.png
16
17 Patch0:         chromium-fix-flags.patch
18 Patch1:         chromium-glibc-2.2.2.patch
19 Patch3:         chromium-fix-openal-configurecall.patch
20 Patch4:         %{name}-configure_needs_bash.patch
21 Patch5:         %{name}-qt.patch
22 Patch6:         %{name}-use_proper_CC.patch
23
24 URL:            http://www.reptilelabour.com/software/chromium/
25
26 BuildRequires:  OpenGL-devel
27 BuildRequires:  SDL-devel >= 1.1.6
28 BuildRequires:  libogg-devel libvorbis-devel
29 BuildRequires:  smpeg >= 0.4.2
30 BuildRequires:  qt-devel
31
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34
35 %define         _prefix         /usr/X11R6/
36 %define         _mandir         %{_prefix}/man
37 %define         _bindir         %{_prefix}/bin
38 %define         _datadir        %{_prefix}/share/games
39 %define         _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
40 %define         _noreqdep       libGL.so.1 libGLU.so.1 libGLcore.so.1
41
42
43 %description
44 You are captain of the cargo ship Chromium B.S.U., responsible for
45 delivering supplies to our troops on the front line. Your ship has a
46 small fleet of robotic fighters which you control from the relative
47 safety of the Chromium vessel.
48 - Do not let ANY enemy ships get past your fighters! Each enemy ship
49   that makes it past the bottom of the screen will attack the Chromium,
50   and you lose a fighter.
51 - Use your fighters as weapons! Crash into enemies to destroy them
52   before they can get past you.
53 - Strategic suicide is a powerful tactic! When the Chromium launches a
54   new fighter, it releases a high energy burst which destroys all
55   enemies in range.
56 - Self-destruct to preserve your ammunition! A double-right-click will
57   cause your current fighter to self-destruct. Before the ship blows up,
58   it ejects its ammunition so that the next fighter can pick it up.
59
60 %description -l pl
61 Jeste¶ kapitanem statku Chromium B.S.U, odpowiedzialnego za
62 dostarczenie zapasów do oddzia³ów na linii frontu. Statek ma ma³±
63 flotê automatycznych my¶liwców, którymi mo¿esz kierowaæ ze statku.
64 - Nie pozwól ¯ADNEMU wrogowi przej¶æ za swoje my¶liwce! Ka¿dy statek
65   który dotrze na dó³ ekranu zaatakuje Chromium i stracisz my¶liwca.
66 - U¿ywaj my¶liwców jako broni! Uderzaj we wrogów aby zniszczyæ ich
67   zanim oni przedostan± siê do ciebie.
68 - Strategiczne samobójstwo to dobra taktyka! Kiedy Chromium odpala
69   nowego my¶liwca, wytwarza du¿o energii, która niszczy wszystkich
70   wrogów w zasiêgu.
71 - Autodestrukcja pozwala zachowaæ amunicjê - przed wysadzeniem siê
72   my¶liwiec zwraca amunicjê tak, ¿e nastêpny mo¿e j± przej±æ.
73
74
75 %package setup
76 Summary:        Setup frontend for Chromium
77 Summary(pl):    Graficzny konfigurator Chromium
78 Group:          X11/Applications/Games
79 Requires:       %{name} = %{version}-%{release}
80 Requires:       qt
81
82 %description setup
83 This package contains the setup frontend (using QT) to ease
84 configuration of Chromium, especially for its playlist features.
85
86 %description setup -l pl
87 Ten pakiet zawiera graficzny konfigurator (napisany w QT) u³atwiaj±cy
88 ustalanie parametrów dla gry Chromium, szczególnie je¶li chodzi o 
89 listê muzyki do odtwarzania.
90
91 %prep
92 %setup -q -n Chromium-0.9
93 %patch0 -p0
94 %patch1 -p0
95 %patch3 -p0
96 %patch4 -p1
97 %patch5 -p1
98 %patch6 -p1
99 find . -type d -name .xvpics -exec rm -rf {} \; ||:
100
101
102 %build
103 export CFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe"
104 export CXXFLAGS="%{rpmcflags} -fno-omit-frame-pointer -pipe"
105 export CC=%{__cc}
106 export CXX=%{__cc}
107 export LINK=%{__cc}
108 export DEFS="%{rpmcflags} -DGAMESBINDIR=\\\"%{_bindir}\\\" \
109             -DPKGDATADIR=\\\"%{_datadir}/Chromium-0.9\\\" -DUSE_SDL \
110             `sdl-config --cflags` -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT \
111             -I../../include -I../support/openal/linux/include -I../support/openal/include"
112 #export OPENAL_CONFIG_OPTS="./configure %{_target_platform} --with-gcc=%{__cc}"
113 export OPENAL_CONFIG_OPTS="./configure --with-gcc=%{__cc}"
114 export QTDIR=%{_prefix}
115 ./configure --enable-vorbis
116 %{__make}
117
118
119 %install
120 rm -rf $RPM_BUILD_ROOT
121 install -d $RPM_BUILD_ROOT{%{_applnkdir}/{Games/Arcade,Settings},%{_pixmapsdir},%{_bindir},%{_datadir}}
122
123 # It is enough to install one file
124 #%{__make} install DESTDIR=RPM_BUILD_ROOT
125 install bin/* $RPM_BUILD_ROOT/%{_bindir}
126
127 install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Games/Arcade/%{name}.desktop
128 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Settings/%{name}.desktop
129 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
130
131 gzip -9nf README LICENSE
132
133 #This installs datafiles
134 tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT/%{_datadir}
135 find . -type d -name CVS -exec rm -rf {} \; ||:
136
137
138
139 %files
140 %defattr(644,root,root,755)
141 %doc LICENSE.gz
142 %attr(755,root,root) %{_bindir}/*
143 %{_datadir}/*
144 %{_pixmapsdir}/chromium.png
145 %{_applnkdir}/Games/Arcade/*
146
147
148 %files setup
149 %defattr(644,root,root,755)
150 %doc README.gz
151 %attr(755,root,root) %{_bindir}/chromium-setup
152 %{_applnkdir}/Settings/*
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
This page took 0.058812 seconds and 3 git commands to generate.