1 |
%define debug_package %{nil} |
2 |
%define oname Unvanquished |
3 |
|
4 |
|
5 |
Name: unvanquished |
6 |
Version: 0.25.0 |
7 |
Release: 1 |
8 |
Summary: Sci-fi RTS and FPS game |
9 |
License: GPLv3 |
10 |
Group: Games/Arcade |
11 |
Url: http://unvanquished.net/ |
12 |
Source0: http://unvanquished.net/downloads/sources/stripped/%{name}-%{version}.tar.xz |
13 |
Source1: unvanquished.png |
14 |
BuildRequires: cmake |
15 |
BuildRequires: gcc-c++ |
16 |
BuildRequires: gmp-devel |
17 |
BuildRequires: hicolor-icon-theme |
18 |
BuildRequires: jpeg-devel |
19 |
BuildRequires: pkgconfig(ncurses) |
20 |
BuildRequires: pkgconfig(freetype2) |
21 |
BuildRequires: pkgconfig(glew) |
22 |
BuildRequires: pkgconfig(libcurl) |
23 |
BuildRequires: pkgconfig(libpng) |
24 |
BuildRequires: pkgconfig(libwebp) |
25 |
BuildRequires: pkgconfig(nettle) |
26 |
BuildRequires: pkgconfig(openal) |
27 |
BuildRequires: pkgconfig(sdl) |
28 |
BuildRequires: pkgconfig(speex) |
29 |
BuildRequires: pkgconfig(theora) |
30 |
BuildRequires: pkgconfig(vorbis) |
31 |
BuildRequires: pkgconfig(glu) |
32 |
BuildRequires: pkgconfig(gl) |
33 |
BuildRequires: pkgconfig(glut) |
34 |
BuildRequires: pkgconfig(geoip) |
35 |
BuildRequires: libtinyxml-devel |
36 |
BuildRequires: bzip2-devel |
37 |
BuildRequires: pkgconfig(libcurl) |
38 |
BuildRequires: pkgconfig(sdl2) |
39 |
BuildRequires: pkgconfig(speex) |
40 |
BuildRequires: pkgconfig(theora) |
41 |
BuildRequires: pkgconfig(vorbis) |
42 |
BuildRequires: pkgconfig(nettle) |
43 |
BuildRequires: pkgconfig(openal) |
44 |
BuildRequires: pkgconfig(opus) |
45 |
BuildRequires: pkgconfig(opusfile) |
46 |
BuildRequires: pkgconfig(ncursesw) |
47 |
|
48 |
|
49 |
Requires: opengl-games-utils |
50 |
Requires: unvanquished-data >= %{version} |
51 |
Suggests: unvanquished-maps >= %{version} |
52 |
|
53 |
|
54 |
%description |
55 |
Players fight online in team based combat in a war of aliens against humans. |
56 |
|
57 |
While the humans are equipped with weapons that they use to exterminate |
58 |
the alien presence, the aliens have only their pincers and a few special |
59 |
attacks, such as poison gas, and ranged electrical and projectile attacks. |
60 |
Players do not spawn at random points in the map; instead, each map has |
61 |
default spawn points and both teams are capable of moving |
62 |
them wherever they please. |
63 |
Both teams have other buildings that round out their base, |
64 |
such as machinegun turrets for the humans and barricades for the aliens. |
65 |
Either team wins by destroying the opposing team's spawn points |
66 |
and killing any remaining members of that team before they |
67 |
are able to build any more spawn points or the game timer ends. |
68 |
This package only contains the game engine. |
69 |
|
70 |
%prep |
71 |
%setup -q |
72 |
iconv -f iso8859-1 -t utf-8 GPL.txt > GPL.txt.conv && mv -f GPL.txt.conv GPL.txt |
73 |
|
74 |
%build |
75 |
mkdir build |
76 |
cd build |
77 |
cmake -DCMAKE_INSTALL_PREFIX="%{_libdir}" \ |
78 |
-DCMAKE_INSTALL_BINDIR="%{_libdir}/%{oname}" \ |
79 |
-DCMAKE_INSTALL_LIBDIR="%{_libdir}/%{oname}" \ |
80 |
-DUSE_CURSES=0 \ |
81 |
-DUSE_CIN_XVID=0 \ |
82 |
-DUSE_INTERNAL_SDL=0 \ |
83 |
-DUSE_INTERNAL_CRYPTO=0 \ |
84 |
-DUSE_INTERNAL_JPEG=0 \ |
85 |
-DUSE_INTERNAL_SPEEX=0 \ |
86 |
-DUSE_INTERNAL_GLEW=0 \ |
87 |
.. |
88 |
|
89 |
%make |
90 |
|
91 |
%install |
92 |
# makinstall no longer provided |
93 |
# Binaries |
94 |
install -d %{buildroot}%{_libdir}/unvanquished/ |
95 |
cd build |
96 |
install -m 755 daemon daemonded *.so %{buildroot}%{_libdir}/unvanquished/ |
97 |
|
98 |
# Game launcher |
99 |
mkdir -p %{buildroot}%{_bindir} |
100 |
cat >> %{buildroot}%{_bindir}/unvanquished <<EOF |
101 |
#!/bin/sh |
102 |
cd %{_libdir}/unvanquished |
103 |
exec ./daemon +set fs_libpath "%{_libdir}/unvanquished" +set fs_basepath "%{_datadir}/unvanquished" "$@" |
104 |
EOF |
105 |
chmod +x %{buildroot}%{_bindir}/unvanquished |
106 |
|
107 |
# Game server launcher |
108 |
cat >> %{buildroot}%{_bindir}/unvanquished-server <<EOF |
109 |
#!/bin/sh |
110 |
cd %{_libdir}/Unvanquished |
111 |
exec ./daemonded +set fs_libpath "%{_libdir}/unvanquished/" +set fs_basepath "%{_datadir}/unvanquished" "$@" |
112 |
EOF |
113 |
chmod +x %{buildroot}%{_bindir}/unvanquished-server |
114 |
|
115 |
# Menu entry |
116 |
mkdir -p %{buildroot}%{_datadir}/applications/ |
117 |
cat >> %{buildroot}%{_datadir}/applications/unvanquished.desktop <<EOF |
118 |
[Desktop Entry] |
119 |
Categories=Game;ActionGame; |
120 |
Name=Unvanquished |
121 |
GenericName=sci-fi RTS and FPS mashup |
122 |
Type=Application |
123 |
Exec=unvanquished |
124 |
Icon=unvanquished |
125 |
EOF |
126 |
|
127 |
# Icons |
128 |
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/ |
129 |
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/unvanquished.png |
130 |
|
131 |
|
132 |
|
133 |
%files |
134 |
%doc GPL.txt COPYING.txt |
135 |
%{_bindir}/* |
136 |
%{_libdir}/unvanquished/ |
137 |
%{_datadir}/applications/unvanquished.desktop |
138 |
%{_datadir}/icons/hicolor/128x128/apps/unvanquished.png |
139 |
|
140 |
|
141 |
|
142 |
|