]> git.pld-linux.org Git - packages/et.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 2 Jan 2005 05:11:33 +0000 (05:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    et.desktop -> 1.1
    et.spec -> 1.1

et.desktop [new file with mode: 0644]
et.spec [new file with mode: 0644]

diff --git a/et.desktop b/et.desktop
new file mode 100644 (file)
index 0000000..366f1e9
--- /dev/null
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=0.9.2
+Name=Enemy Territory
+Type=Application
+Terminal=false
+Comment=Return to Castle Wolfenstein: Enemy Territory - standalone multi-player game based on Return to Castle Wolfenstein
+Exec=et
+Icon=et.xpm
+Categories=Game;FirstPersonGame;
diff --git a/et.spec b/et.spec
new file mode 100644 (file)
index 0000000..0025436
--- /dev/null
+++ b/et.spec
@@ -0,0 +1,98 @@
+# Conditional build:
+%bcond_with    data    # build data subpackage (huge and resource consuming)
+#
+Summary:       Enemy Territory
+Name:          et
+Version:       2.56
+Release:       0.11
+Epoch:         0
+License:       RTCW-ETEULA
+Group:         Applications/Games
+Source0:       http://3dgamers.planetmirror.com/pub/3dgamers/games/wolfensteinet/et-linux-%{version}-2.x86.run
+# NoSource0-md5:       4dddf1612b9ed5b3fe9d3348ec78c28f
+Source1:       %{name}.desktop
+NoSource:      0
+URL:           http://www.idsoftware.com/
+# loose dependancy is intentional
+Requires:      %{name}-data = %{version}
+BuildArch:     %{_host_cpu}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                no_install_post_strip   1
+%define                no_install_post_chrpath 1
+%define                _gamelibdir     %{_libdir}/games/et
+%define                _gamedatadir    %{_datadir}/games/et
+
+%description
+Return to Castle Wolfenstein: Enemy Territory - standalone
+multi-player game based on Return to Castle Wolfenstein.
+
+%if %{with data}
+%package data
+Summary:       Enemy Territory data files.
+Group:         Applications/Games
+BuildArch: noarch
+
+%description data
+This package contains the data files for Enemy Territory.
+%endif
+
+%prep
+%setup -qcT
+sh %{SOURCE0} --tar xf
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \
+    $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}}
+
+install bin/Linux/x86/et.x86 $RPM_BUILD_ROOT%{_gamelibdir}/%{name}
+
+cat << EOF > $RPM_BUILD_ROOT%{_bindir}/%{name}
+#!/bin/sh
+# Needed to make symlinks/shortcuts work.
+# the binaries must run with correct working directory
+cd %{_gamelibdir}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
+exec ./%{name} "$@"
+EOF
+
+install ET.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+ln -s ../../../share/games/et/etmain $RPM_BUILD_ROOT%{_gamelibdir}
+
+cp -a pb $RPM_BUILD_ROOT%{_gamelibdir}
+# in DOCS
+rm -f $RPM_BUILD_ROOT%{_gamelibdir}/pb/PB_EULA.txt
+
+%if %{with data}
+cp -a etmain $RPM_BUILD_ROOT%{_gamedatadir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES v1.02_Readme.htm Docs pb/PB_EULA.txt
+%attr(755,root,root) %{_bindir}/*
+
+%dir %{_gamelibdir}
+%attr(755,root,root) %{_gamelibdir}/et
+%{_gamelibdir}/etmain
+
+%dir %{_gamelibdir}/pb
+%{_gamelibdir}/pb/htm
+%attr(755,root,root) %{_gamelibdir}/pb/*.x86
+%attr(755,root,root) %{_gamelibdir}/pb/*.so
+%{_gamelibdir}/pb/*.db
+
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.xpm
+
+%if %{with data}
+%files data
+%{_gamedatadir}
+%endif
This page took 0.061211 seconds and 4 git commands to generate.