/
nexuiz.spec
84 lines (75 loc) · 2.93 KB
/
nexuiz.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
%define _ver %(echo %{version} | tr -d .)
%define _ever 20091001
Summary: nexuiz - engine for first-person shoter game
Summary(pl.UTF-8): nexuiz - silnik do strzelaniny w pierwszej osobie
Name: nexuiz
Version: 2.5.2
Release: 3
License: GPL v2+
Group: X11/Applications/Games
# extracted from: http://dl.sourceforge.net/nexuiz/%{name}-%{_ver}.zip
Source0: ftp://distfiles.pld-linux.org/distfiles/by-md5/a/a/aa4e586e58e1c35a5e3ed76cc9348fbd/enginesource%{_ever}.zip
# Source0-md5: aa4e586e58e1c35a5e3ed76cc9348fbd
Source1: %{name}-glx.desktop
Source2: %{name}-sdl.desktop
Source3: %{name}.png
# Source version of Nexuiz logo in inkspace svg format
Source4: %{name}.svg
URL: http://alientrap.org/nexuiz/
BuildRequires: OpenGL-GLX-devel
BuildRequires: SDL-devel
BuildRequires: alsa-lib-devel
BuildRequires: libjpeg-devel
BuildRequires: sed >= 4.0
BuildRequires: unzip
BuildRequires: xorg-lib-libXpm-devel
BuildRequires: xorg-lib-libXxf86dga-devel
BuildRequires: xorg-lib-libXxf86vm-devel
Requires: nexuiz-data = %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Nexuiz is a fast-paced, chaotic, and intense multiplayer first-person
shooter game, focused on providing basic, old style deathmatch. It is
extremely modder-friendly. Nexuiz is built on the power of the
Darkplaces engine, which is a heavily modified version of the original
Quake. Darkplaces features realtime lighting and stencil shadows,
bumpmapping, gloss, bloom, and totally rewritten network code that
supports up to 64 players on a single server.
%description -l pl.UTF-8
Nexuiz jest chaotyczną strzelaniną w pierwszej osobie, skupioną na
standardowym i klasycznym deathmatchu. Nexuiz jest bardzo przyjazny
dla moderów. Jest oparty na silniku Darkplaces, czyli mocno
zmodyfikowanej wersji oryginalnego silnika Quake. Darkplaces ma
całkowicie przepisany kod obsługi sieci, dzięki któremu mogą walczyć
64 osoby na pojedynczym serwerze.
%prep
%setup -q -n darkplaces
%{__sed} -i 's/-Wdeclaration-after-statement//; /strip /d' makefile.inc
%build
%{__make} -j1 nexuiz \
CC="%{__cc}" \
OPTIM_RELEASE="%{rpmcflags}" \
LDFLAGS_RELEASE="%{rpmcflags} %{rpmldflags}" \
DP_FS_BASEDIR="%{_datadir}/games/%{name}" \
DP_LINK_TO_LIBJPEG=1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
install nexuiz-* $RPM_BUILD_ROOT%{_bindir}
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
# remove junk
rm -f $RPM_BUILD_ROOT%{_bindir}/nexuiz-base-revision.txt $RPM_BUILD_ROOT%{_bindir}/nexuiz-engine-changes.diff
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/nexuiz-glx
%attr(755,root,root) %{_bindir}/nexuiz-sdl
%attr(755,root,root) %{_bindir}/nexuiz-dedicated
%{_desktopdir}/nexuiz*.desktop
%{_pixmapsdir}/%{name}.png
%{_pixmapsdir}/%{name}.svg