]> git.pld-linux.org Git - packages/yamagi-quake2.git/blob - yamagi-quake2.spec
up to 8.30
[packages/yamagi-quake2.git] / yamagi-quake2.spec
1 Summary:        Yamagi Quake II client
2 Name:           yamagi-quake2
3 Version:        8.30
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:  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
18 BuildRequires:  xz
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         gamedir         %{_libdir}/%{name}
22
23 %description
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.
31
32 %prep
33 %setup -q -n quake2-%{version}
34
35 %build
36 mkdir -p build
37 cd build
38 %cmake .. \
39         -DSYSTEMWIDE_SUPPORT=ON
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{gamedir}/baseq2}
46
47 cd build/release
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
52
53 cd ../../stuff
54 install -p yq2.cfg $RPM_BUILD_ROOT%{gamedir}/baseq2
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc doc/*.md
62 %{_bindir}/yamagi-quake2
63 %{_bindir}/yamagi-q2ded
64 %dir %{gamedir}
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
This page took 0.123064 seconds and 4 git commands to generate.