]>
Commit | Line | Data |
---|---|---|
c956c757 ER |
1 | # TODO |
2 | # - create dedicated server subpackage | |
505589cb | 3 | # |
aba8c743 | 4 | # Conditional build: |
c956c757 | 5 | %bcond_without data # skip build of data subpackage (huge and resource consuming) |
aba8c743 ER |
6 | # |
7 | Summary: Enemy Territory | |
505589cb | 8 | Summary(pl): Enemy Territory - Terytorium wroga |
aba8c743 ER |
9 | Name: et |
10 | Version: 2.56 | |
c956c757 | 11 | Release: 0.13 |
aba8c743 ER |
12 | Epoch: 0 |
13 | License: RTCW-ETEULA | |
14 | Group: Applications/Games | |
15 | Source0: http://3dgamers.planetmirror.com/pub/3dgamers/games/wolfensteinet/et-linux-%{version}-2.x86.run | |
16 | # NoSource0-md5: 4dddf1612b9ed5b3fe9d3348ec78c28f | |
17 | Source1: %{name}.desktop | |
18 | NoSource: 0 | |
19 | URL: http://www.idsoftware.com/ | |
20 | # loose dependancy is intentional | |
21 | Requires: %{name}-data = %{version} | |
392cb562 | 22 | ExclusiveArch: %{ix86} |
aba8c743 ER |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %define no_install_post_strip 1 | |
26 | %define no_install_post_chrpath 1 | |
27 | %define _gamelibdir %{_libdir}/games/et | |
28 | %define _gamedatadir %{_datadir}/games/et | |
29 | ||
30 | %description | |
31 | Return to Castle Wolfenstein: Enemy Territory - standalone | |
32 | multi-player game based on Return to Castle Wolfenstein. | |
33 | ||
505589cb | 34 | %description -l pl |
b8aadf6a | 35 | Return to Castle Wolfenstein: Enemy Territory jest to samodzielna gra |
36 | dla wielu graczy oparta na Return to Castle Wolfenstein. | |
505589cb | 37 | |
aba8c743 | 38 | %package data |
505589cb | 39 | Summary: Enemy Territory data files |
40 | Summary(pl): Pliki z danymi dla Enemy Territory | |
aba8c743 | 41 | Group: Applications/Games |
aba8c743 ER |
42 | |
43 | %description data | |
44 | This package contains the data files for Enemy Territory. | |
505589cb | 45 | |
46 | %description data -l pl | |
47 | Pakiet ten zawiera pliki z danymi dla gry Enemy Territory. | |
aba8c743 ER |
48 | |
49 | %prep | |
50 | %setup -qcT | |
51 | sh %{SOURCE0} --tar xf | |
52 | ||
aba8c743 ER |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \ | |
505589cb | 56 | $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}} |
aba8c743 ER |
57 | |
58 | install bin/Linux/x86/et.x86 $RPM_BUILD_ROOT%{_gamelibdir}/%{name} | |
59 | ||
60 | cat << EOF > $RPM_BUILD_ROOT%{_bindir}/%{name} | |
61 | #!/bin/sh | |
62 | # Needed to make symlinks/shortcuts work. | |
63 | # the binaries must run with correct working directory | |
64 | cd %{_gamelibdir} | |
65 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. | |
b66b7ad8 | 66 | exec ./%{name} "\$@" |
aba8c743 ER |
67 | EOF |
68 | ||
69 | install ET.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm | |
70 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
71 | ln -s ../../../share/games/et/etmain $RPM_BUILD_ROOT%{_gamelibdir} | |
72 | ||
73 | cp -a pb $RPM_BUILD_ROOT%{_gamelibdir} | |
74 | # in DOCS | |
75 | rm -f $RPM_BUILD_ROOT%{_gamelibdir}/pb/PB_EULA.txt | |
76 | ||
77 | %if %{with data} | |
78 | cp -a etmain $RPM_BUILD_ROOT%{_gamedatadir} | |
79 | %endif | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc CHANGES v1.02_Readme.htm Docs pb/PB_EULA.txt | |
87 | %attr(755,root,root) %{_bindir}/* | |
88 | ||
89 | %dir %{_gamelibdir} | |
90 | %attr(755,root,root) %{_gamelibdir}/et | |
91 | %{_gamelibdir}/etmain | |
92 | ||
93 | %dir %{_gamelibdir}/pb | |
94 | %{_gamelibdir}/pb/htm | |
95 | %attr(755,root,root) %{_gamelibdir}/pb/*.x86 | |
96 | %attr(755,root,root) %{_gamelibdir}/pb/*.so | |
97 | %{_gamelibdir}/pb/*.db | |
98 | ||
c956c757 | 99 | %dir %{_gamedatadir} |
aba8c743 ER |
100 | %{_desktopdir}/%{name}.desktop |
101 | %{_pixmapsdir}/%{name}.xpm | |
102 | ||
103 | %if %{with data} | |
104 | %files data | |
392cb562 | 105 | %defattr(644,root,root,755) |
c956c757 | 106 | %{_gamedatadir}/* |
aba8c743 | 107 | %endif |