4 %bcond_with data # build data subpackage (huge and resource consuming)
6 Summary: Enemy Territory
7 Summary(pl): Enemy Territory - Terytorium wroga
13 Group: Applications/Games
14 Source0: http://3dgamers.planetmirror.com/pub/3dgamers/games/wolfensteinet/et-linux-%{version}-2.x86.run
15 # NoSource0-md5: 4dddf1612b9ed5b3fe9d3348ec78c28f
16 Source1: %{name}.desktop
18 URL: http://www.idsoftware.com/
19 # loose dependancy is intentional
20 Requires: %{name}-data = %{version}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define no_install_post_strip 1
24 %define no_install_post_chrpath 1
25 %define _gamelibdir %{_libdir}/games/et
26 %define _gamedatadir %{_datadir}/games/et
29 Return to Castle Wolfenstein: Enemy Territory - standalone
30 multi-player game based on Return to Castle Wolfenstein.
33 Powrót do zamku Wolfenstein: Terytorium wroga (Return to Castle
34 Wolfenstein: Enemy Territory) jest to samodzielna gra dla wielu graczy
35 oparta na Powrocie do zamku Wolfenstein (Return to Castle
39 Summary: Enemy Territory data files
40 Summary(pl): Pliki z danymi dla Enemy Territory
41 Group: Applications/Games
44 This package contains the data files for Enemy Territory.
46 %description data -l pl
47 Pakiet ten zawiera pliki z danymi dla gry Enemy Territory.
51 sh %{SOURCE0} --tar xf
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \
58 $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}}
60 install bin/Linux/x86/et.x86 $RPM_BUILD_ROOT%{_gamelibdir}/%{name}
62 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/%{name}
64 # Needed to make symlinks/shortcuts work.
65 # the binaries must run with correct working directory
67 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
71 install ET.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
72 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
73 ln -s ../../../share/games/et/etmain $RPM_BUILD_ROOT%{_gamelibdir}
75 cp -a pb $RPM_BUILD_ROOT%{_gamelibdir}
77 rm -f $RPM_BUILD_ROOT%{_gamelibdir}/pb/PB_EULA.txt
80 cp -a etmain $RPM_BUILD_ROOT%{_gamedatadir}
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc CHANGES v1.02_Readme.htm Docs pb/PB_EULA.txt
89 %attr(755,root,root) %{_bindir}/*
92 %attr(755,root,root) %{_gamelibdir}/et
95 %dir %{_gamelibdir}/pb
97 %attr(755,root,root) %{_gamelibdir}/pb/*.x86
98 %attr(755,root,root) %{_gamelibdir}/pb/*.so
99 %{_gamelibdir}/pb/*.db
101 %{_desktopdir}/%{name}.desktop
102 %{_pixmapsdir}/%{name}.xpm