2 %bcond_with data # build data subpackage (huge and resource consuming)
4 Summary: Enemy Territory
10 Group: Applications/Games
11 Source0: http://3dgamers.planetmirror.com/pub/3dgamers/games/wolfensteinet/et-linux-%{version}-2.x86.run
12 # NoSource0-md5: 4dddf1612b9ed5b3fe9d3348ec78c28f
13 Source1: %{name}.desktop
15 URL: http://www.idsoftware.com/
16 # loose dependancy is intentional
17 Requires: %{name}-data = %{version}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define no_install_post_strip 1
21 %define no_install_post_chrpath 1
22 %define _gamelibdir %{_libdir}/games/et
23 %define _gamedatadir %{_datadir}/games/et
26 Return to Castle Wolfenstein: Enemy Territory - standalone
27 multi-player game based on Return to Castle Wolfenstein.
31 Summary: Enemy Territory data files.
32 Group: Applications/Games
35 This package contains the data files for Enemy Territory.
40 sh %{SOURCE0} --tar xf
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \
47 $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}}
49 install bin/Linux/x86/et.x86 $RPM_BUILD_ROOT%{_gamelibdir}/%{name}
51 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/%{name}
53 # Needed to make symlinks/shortcuts work.
54 # the binaries must run with correct working directory
56 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
60 install ET.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
61 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
62 ln -s ../../../share/games/et/etmain $RPM_BUILD_ROOT%{_gamelibdir}
64 cp -a pb $RPM_BUILD_ROOT%{_gamelibdir}
66 rm -f $RPM_BUILD_ROOT%{_gamelibdir}/pb/PB_EULA.txt
69 cp -a etmain $RPM_BUILD_ROOT%{_gamedatadir}
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc CHANGES v1.02_Readme.htm Docs pb/PB_EULA.txt
78 %attr(755,root,root) %{_bindir}/*
81 %attr(755,root,root) %{_gamelibdir}/et
84 %dir %{_gamelibdir}/pb
86 %attr(755,root,root) %{_gamelibdir}/pb/*.x86
87 %attr(755,root,root) %{_gamelibdir}/pb/*.so
88 %{_gamelibdir}/pb/*.db
90 %{_desktopdir}/%{name}.desktop
91 %{_pixmapsdir}/%{name}.xpm