]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - still vulnreable: http://security.gentoo.org/glsa/glsa-200603-10.xml | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_with cheaters # unlimited energy and ammo | |
6 | # | |
7 | Summary: Cube FPS game | |
8 | Summary(pl.UTF-8): Gra FPS Cube | |
9 | Name: cube | |
10 | Version: 2005_08_29 | |
11 | Release: 0.1 | |
12 | License: ZLIB | |
13 | Group: X11/Applications/Games | |
14 | Source0: http://dl.sourceforge.net/cube/%{name}_%{version}_unix.tar.gz | |
15 | # Source0-md5: e77f3cf85292bf61100d2f8511a254cc | |
16 | Source1: http://dl.sourceforge.net/cube/%{name}_%{version}_src.zip | |
17 | # Source1-md5: e376c49ac209b095cb6d29490834d060 | |
18 | Source2: %{name}-wrapper.sh | |
19 | Source3: %{name}-client.desktop | |
20 | Source4: %{name}-server.desktop | |
21 | Patch0: %{name}-cheaters.patch | |
22 | URL: http://www.cubeengine.com/ | |
23 | BuildRequires: OpenGL-devel-base | |
24 | BuildRequires: SDL_image-devel | |
25 | BuildRequires: SDL_mixer-devel | |
26 | BuildRequires: autoconf | |
27 | BuildRequires: automake | |
28 | BuildRequires: libstdc++-devel | |
29 | BuildRequires: unzip | |
30 | ExclusiveArch: %{ix86} ppc | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
34 | ||
35 | %description | |
36 | Cube is an open source multiplayer and singleplayer first person | |
37 | shooter game. This package contains client application. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Cube jest open source'ową grą FPS zarówno dla wielu jak i jednego | |
41 | gracza. Ten pakiet zawiera klienta. | |
42 | ||
43 | %package server | |
44 | Summary: Cube FPS game server | |
45 | Summary(pl.UTF-8): Serwer gry FPS Cube | |
46 | Group: X11/Applications/Games | |
47 | ||
48 | %description server | |
49 | Cube is an open source multiplayer and singleplayer first person | |
50 | shooter game. This package contains server application. | |
51 | ||
52 | %description server -l pl.UTF-8 | |
53 | Cube jest open source'ową grą FPS zarówno dla wielu jak i jednego | |
54 | gracza. Ten pakiet zawiera serwer. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{name} -a1 | |
58 | cd cube_source | |
59 | %{?with_cheaters:%patch0 -p0} | |
60 | ||
61 | %build | |
62 | cd cube_source/enet | |
63 | rm -f configure missing | |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__automake} | |
67 | %configure | |
68 | cd ../src | |
69 | %{__make} \ | |
70 | COPTFLAGS="%{rpmcflags}" \ | |
71 | CXXOPTFLAGS="%{rpmcflags} -fsigned-char -L/usr/X11R6/%{_lib} -DHAS_SOCKLEN_T=1" | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}} | |
76 | ||
77 | cp -fr {data,packages} $RPM_BUILD_ROOT%{_datadir}/%{name} | |
78 | install *.cfg $RPM_BUILD_ROOT%{_datadir}/%{name} | |
79 | install cube_source/src/cube_* $RPM_BUILD_ROOT%{_bindir} | |
80 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/cube | |
81 | install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir} | |
82 | install -D $RPM_BUILD_ROOT%{_datadir}/%{name}/data/martin/ball2.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}-client.png | |
83 | install -D $RPM_BUILD_ROOT%{_datadir}/%{name}/data/martin/ball2.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}-server.png | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc docs/* readme.html cube_source/readme.txt cube_source/src/CUBE_TODO.txt | |
91 | %attr(755,root,root) %{_bindir}/* | |
92 | %exclude %{_bindir}/cube_server | |
93 | %{_datadir}/%{name} | |
94 | %{_desktopdir}/%{name}-client.desktop | |
95 | %{_pixmapsdir}/%{name}-client.png | |
96 | ||
97 | %files server | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_bindir}/cube_server | |
100 | %{_desktopdir}/%{name}-server.desktop | |
101 | %{_pixmapsdir}/%{name}-server.png |