]> git.pld-linux.org Git - SPECS.git/blob - quake4.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / quake4.spec
1 # TODO
2 # - don't include libgcc_s.so.1 and libstdc++.so.5 in package (if possible)
3 # - dedicated package
4 # - .desktop and icon
5 # - separate -common, create language packs (us, german available)?
6 # - put some decent license
7 # - punkbuster? (pb/ subdir)?
8 Summary:        Quake4 for Linux
9 Summary(pl.UTF-8):      Quake4 dla Linuksa
10 Name:           quake4
11 Version:        1.3_2
12 Release:        0.1
13 License:        ?
14 Group:          Applications/Games
15 # Get from: http://zerowing.idsoftware.com:6969/
16 Source0:        %{name}-linux-1.3-2.x86.run
17 # NoSource0-md5:        ad79376dac8ae58f5a05a5a61711f29f
18 NoSource:       0
19 URL:            http://zerowing.idsoftware.com/linux/quake4/
20 Requires:       OpenGL
21 Requires:       libasound.so.2
22 ExclusiveArch:  %{ix86} %{x8664}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _noautoprov             libgcc_s.so.1 libstdc++.so.6
26 %define         _noautoreq              libgcc_s.so.1 libstdc++.so.6
27 %define         _gamelibdir             %{_libdir}/games/quake4
28 %define         _gamedatadir            %{_datadir}/games/quake4
29
30 %description
31 Quake 4 for Linux.
32
33 %description -l pl.UTF-8
34 Quake 4 dla Linuksa.
35
36 %prep
37 %setup -qcT
38 sh %{SOURCE0} --tar xf
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}/q4base} \
43         $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_bindir}}
44
45 install bin/Linux/x86/{libgcc_s.so.1,libstdc++.so.6,libSDL-1.2.id.so.0} $RPM_BUILD_ROOT%{_gamelibdir}
46 install bin/Linux/x86/{q4ded,quake4}.x86 $RPM_BUILD_ROOT%{_gamelibdir}
47 cp -a q4base/* $RPM_BUILD_ROOT%{_gamedatadir}/q4base
48 cp -a us/q4base/* $RPM_BUILD_ROOT%{_gamedatadir}/q4base
49 ln -s %{_gamedatadir}/q4base $RPM_BUILD_ROOT%{_gamelibdir}/q4base
50
51 cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name}
52 #!/bin/sh
53 cd %{_gamelibdir}
54 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
55 exec ./quake4.x86 "$@"
56 EOF
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc License.txt README Docs/ENG/readme.txt
64 %attr(755,root,root) %{_bindir}/%{name}
65
66 %dir %{_gamelibdir}
67 %attr(755,root,root) %{_gamelibdir}/quake4.x86
68 %attr(755,root,root) %{_gamelibdir}/q4ded.x86
69 %attr(755,root,root) %{_gamelibdir}/libgcc_s.so.1
70 %attr(755,root,root) %{_gamelibdir}/libstdc++.so.6
71 %attr(755,root,root) %{_gamelibdir}/libSDL-1.2.id.so.0
72 %{_gamelibdir}/q4base
73
74 %dir %{_gamedatadir}
75 %dir %{_gamedatadir}/q4base
76 %{_gamedatadir}/q4base/*
This page took 0.976592 seconds and 3 git commands to generate.