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: e0c7fb6031e2cbf4396959b074ec7d72
9 URL: https://www.yamagi.org/quake2/
10 BuildRequires: OpenAL-devel
11 BuildRequires: OpenGL-devel
12 BuildRequires: SDL2-devel
13 BuildRequires: cmake >= 3.0
14 BuildRequires: curl-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define gamedir %{_libdir}/%{name}
20 Yamagi Quake II is an enhanced client for id Software's Quake II with
21 focus on offline and coop gameplay. Both the gameplay and the graphics
22 are unchanged, but many bugs in the last official release were fixed
23 and some nice to have features like widescreen support and a modern
24 OpenGL 3.2 renderer were added. Unlike most other Quake II source
25 ports Yamagi Quake II is fully 64-bit clean. It works perfectly on
26 modern processors and operating systems.
29 %setup -q -n quake2-%{version}
35 -DSYSTEMWIDE_SUPPORT=ON
39 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{gamedir}/baseq2}
44 install -p q2ded quake2 *.so $RPM_BUILD_ROOT%{gamedir}
45 install -p baseq2/*.so $RPM_BUILD_ROOT%{gamedir}/baseq2
46 ln -s %{gamedir}/quake2 $RPM_BUILD_ROOT%{_bindir}/yamagi-quake2
47 ln -s %{gamedir}/q2ded $RPM_BUILD_ROOT%{_bindir}/yamagi-q2ded
50 install -p yq2.cfg $RPM_BUILD_ROOT%{gamedir}/baseq2
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{_bindir}/yamagi-quake2
59 %{_bindir}/yamagi-q2ded
61 %attr(755,root,root) %{gamedir}/quake2
62 %attr(755,root,root) %{gamedir}/q2ded
63 %attr(755,root,root) %{gamedir}/ref_gl1.so
64 %attr(755,root,root) %{gamedir}/ref_gl3.so
65 %attr(755,root,root) %{gamedir}/ref_soft.so
66 %dir %{gamedir}/baseq2
67 %attr(755,root,root) %{gamedir}/baseq2/game.so
68 %{gamedir}/baseq2/yq2.cfg