1 Summary: Yamagi Quake II client
6 Group: X11/Applications/Games
7 Source0: https://deponie.yamagi.org/quake2/quake2-%{version}.tar.xz
8 # Source0-md5: 177e10c7a544d8657e9f7e73e6b969b7
9 URL: https://www.yamagi.org/quake2/
10 BuildRequires: OpenAL-devel
11 BuildRequires: OpenGL-devel
12 BuildRequires: SDL2-devel
13 BuildRequires: cmake >= 3.1
14 BuildRequires: curl-devel
15 BuildRequires: gcc >= 6:4.9
16 BuildRequires: rpmbuild(macros) >= 1.605
17 BuildRequires: tar >= 1:1.22
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define gamedir %{_libdir}/%{name}
24 Yamagi Quake II is an enhanced client for id Software's Quake II with
25 focus on offline and coop gameplay. Both the gameplay and the graphics
26 are unchanged, but many bugs in the last official release were fixed
27 and some nice to have features like widescreen support and a modern
28 OpenGL 3.2 renderer were added. Unlike most other Quake II source
29 ports Yamagi Quake II is fully 64-bit clean. It works perfectly on
30 modern processors and operating systems.
33 %setup -q -n quake2-%{version}
39 -DSYSTEMWIDE_SUPPORT=ON
43 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{gamedir}/baseq2}
48 install -p q2ded quake2 *.so $RPM_BUILD_ROOT%{gamedir}
49 install -p baseq2/*.so $RPM_BUILD_ROOT%{gamedir}/baseq2
50 ln -s %{gamedir}/quake2 $RPM_BUILD_ROOT%{_bindir}/yamagi-quake2
51 ln -s %{gamedir}/q2ded $RPM_BUILD_ROOT%{_bindir}/yamagi-q2ded
54 install -p yq2.cfg $RPM_BUILD_ROOT%{gamedir}/baseq2
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{_bindir}/yamagi-quake2
63 %{_bindir}/yamagi-q2ded
65 %attr(755,root,root) %{gamedir}/quake2
66 %attr(755,root,root) %{gamedir}/q2ded
67 %attr(755,root,root) %{gamedir}/ref_gl1.so
68 %attr(755,root,root) %{gamedir}/ref_gl3.so
69 %attr(755,root,root) %{gamedir}/ref_gles3.so
70 %attr(755,root,root) %{gamedir}/ref_soft.so
71 %dir %{gamedir}/baseq2
72 %attr(755,root,root) %{gamedir}/baseq2/game.so
73 %{gamedir}/baseq2/yq2.cfg