]> git.pld-linux.org Git - packages/yamagi-quake2.git/blob - yamagi-quake2.spec
6cd823e21e732f7bca20aa68a2ed90475773394d
[packages/yamagi-quake2.git] / yamagi-quake2.spec
1 Summary:        Yamagi Quake II client
2 Name:           yamagi-quake2
3 Version:        8.00
4 Release:        1
5 License:        GPL v2+
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)
16
17 %define         gamedir         %{_libdir}/%{name}
18
19 %description
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.
27
28 %prep
29 %setup -q -n quake2-%{version}
30
31 %build
32 mkdir -p build
33 cd build
34 %cmake .. \
35         -DSYSTEMWIDE_SUPPORT=ON
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{gamedir}/baseq2}
42
43 cd build/release
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
48
49 cd ../../stuff
50 install -p yq2.cfg $RPM_BUILD_ROOT%{gamedir}/baseq2
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc doc/*.md
58 %{_bindir}/yamagi-quake2
59 %{_bindir}/yamagi-q2ded
60 %dir %{gamedir}
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
This page took 0.071811 seconds and 2 git commands to generate.