]> git.pld-linux.org Git - packages/yamagi-quake2.git/blame - yamagi-quake2.spec
macros for %cmake
[packages/yamagi-quake2.git] / yamagi-quake2.spec
CommitLineData
f05b998b
JP
1Summary: Yamagi Quake II client
2Name: yamagi-quake2
1e2a8b24 3Version: 8.00
f05b998b
JP
4Release: 1
5License: GPL v2+
6Group: X11/Applications/Games
7Source0: https://deponie.yamagi.org/quake2/quake2-%{version}.tar.xz
1e2a8b24 8# Source0-md5: e0c7fb6031e2cbf4396959b074ec7d72
f05b998b
JP
9URL: https://www.yamagi.org/quake2/
10BuildRequires: OpenAL-devel
11BuildRequires: OpenGL-devel
12BuildRequires: SDL2-devel
13BuildRequires: cmake >= 3.0
14BuildRequires: curl-devel
098fba12 15BuildRequires: rpmbuild(macros) >= 1.605
f05b998b
JP
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%define gamedir %{_libdir}/%{name}
19
20%description
21Yamagi Quake II is an enhanced client for id Software's Quake II with
22focus on offline and coop gameplay. Both the gameplay and the graphics
23are unchanged, but many bugs in the last official release were fixed
24and some nice to have features like widescreen support and a modern
25OpenGL 3.2 renderer were added. Unlike most other Quake II source
26ports Yamagi Quake II is fully 64-bit clean. It works perfectly on
27modern processors and operating systems.
28
29%prep
30%setup -q -n quake2-%{version}
31
32%build
33mkdir -p build
34cd build
35%cmake .. \
36 -DSYSTEMWIDE_SUPPORT=ON
37%{__make}
38
39%install
40rm -rf $RPM_BUILD_ROOT
41
42install -d $RPM_BUILD_ROOT{%{_bindir},%{gamedir}/baseq2}
43
44cd build/release
45install -p q2ded quake2 *.so $RPM_BUILD_ROOT%{gamedir}
46install -p baseq2/*.so $RPM_BUILD_ROOT%{gamedir}/baseq2
47ln -s %{gamedir}/quake2 $RPM_BUILD_ROOT%{_bindir}/yamagi-quake2
48ln -s %{gamedir}/q2ded $RPM_BUILD_ROOT%{_bindir}/yamagi-q2ded
49
50cd ../../stuff
51install -p yq2.cfg $RPM_BUILD_ROOT%{gamedir}/baseq2
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc doc/*.md
59%{_bindir}/yamagi-quake2
60%{_bindir}/yamagi-q2ded
61%dir %{gamedir}
62%attr(755,root,root) %{gamedir}/quake2
63%attr(755,root,root) %{gamedir}/q2ded
64%attr(755,root,root) %{gamedir}/ref_gl1.so
65%attr(755,root,root) %{gamedir}/ref_gl3.so
66%attr(755,root,root) %{gamedir}/ref_soft.so
67%dir %{gamedir}/baseq2
68%attr(755,root,root) %{gamedir}/baseq2/game.so
69%{gamedir}/baseq2/yq2.cfg
This page took 0.065103 seconds and 4 git commands to generate.