File enemy-territory-data.spec of Package enemy-territory-data

#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           enemy-territory-data
License:        SUSE-Freeware
Group:          Amusements/Games/3D/Shoot
Version:        2.60b
Release:        1
Url:            http://www.splashdamage.com/wolfet
Source0:        fetch-et-linux-2.60.x86.sh.in
Summary:        Wolfenstein: Enemy Territory gamefiles downloader
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       curl
Requires:       awk
Requires:       mktemp
Requires:       coreutils
Requires:       w3m
BuildArch:      noarch

%description
The installation of this package triggers a script which
will download the Freeware game files required to play.
This package will also cleanup on removal.

You need an engine to play this. We recommend ET: Legacy.

%prep
cp %{SOURCE0} .

%build
sed -e 's,__VERSION__,%version,' -e 's,__RELEASE__,%release,' -e 's,__NAME__,%name,' fetch-et-linux-2.60.x86.sh.in > fetch-et-linux-2.60.x86.sh

%install
install -D -m 755 fetch-et-linux-2.60.x86.sh %buildroot/var/adm/update-scripts/%{name}-%{version}-%{release}-%(basename fetch-et-linux-2.60.x86.sh).txt
%{nil}
#
mkdir -p %buildroot/var/adm/update-messages
touch %buildroot/var/adm/update-messages/%name-%version-%release-1
mkdir -p %buildroot%{_datadir}/doc/enemy-territory
touch %buildroot%{_datadir}/doc/enemy-territory/RTCW-ETEULA
install -d %{buildroot}%{_prefix}/lib/enemy-territory
touch %{buildroot}%{_prefix}/lib/enemy-territory/ET.xpm
touch %{buildroot}%{_prefix}/lib/enemy-territory/openurl.sh
install -d %{buildroot}%{_prefix}/lib/enemy-territory/etmain
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/pak0.pk3
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/pak1.pk3
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/pak2.pk3
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/mp_bin.pk3
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/campaigncycle.cfg
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/description.txt
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/hunkusage.dat
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/lmscycle.cfg
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/objectivecycle.cfg
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/punkbuster.cfg
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/server.cfg
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/stopwatch.cfg
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/stopwatchcycle.cfg
mkdir -p %buildroot%{_prefix}/lib/enemy-territory/etmain/video
touch %{buildroot}%{_prefix}/lib/enemy-territory/etmain/video/etintro.roq

%files
%defattr(-,root,root)
/var/adm/update-scripts/*
%dir %{_datadir}/doc/enemy-territory
%ghost %{_datadir}/doc/enemy-territory/RTCW-ETEULA
%ghost /var/adm/update-messages/%name-%version-%release-1
# so we can get rid of them by rpm -e enemy-territory-data
%dir %{_prefix}/lib/enemy-territory
%ghost %{_prefix}/lib/enemy-territory/ET.xpm
%ghost %{_prefix}/lib/enemy-territory/openurl.sh
%dir %{_prefix}/lib/enemy-territory/etmain
%ghost %{_prefix}/lib/enemy-territory/etmain/pak0.pk3
%ghost %{_prefix}/lib/enemy-territory/etmain/pak1.pk3
%ghost %{_prefix}/lib/enemy-territory/etmain/pak2.pk3
%ghost %{_prefix}/lib/enemy-territory/etmain/mp_bin.pk3
%ghost %{_prefix}/lib/enemy-territory/etmain/campaigncycle.cfg
%ghost %{_prefix}/lib/enemy-territory/etmain/description.txt
%ghost %{_prefix}/lib/enemy-territory/etmain/hunkusage.dat
%ghost %{_prefix}/lib/enemy-territory/etmain/lmscycle.cfg
%ghost %{_prefix}/lib/enemy-territory/etmain/objectivecycle.cfg
%ghost %{_prefix}/lib/enemy-territory/etmain/punkbuster.cfg
%ghost %{_prefix}/lib/enemy-territory/etmain/server.cfg
%ghost %{_prefix}/lib/enemy-territory/etmain/stopwatch.cfg
%ghost %{_prefix}/lib/enemy-territory/etmain/stopwatchcycle.cfg
%dir %{_prefix}/lib/enemy-territory/etmain/video
%ghost %{_prefix}/lib/enemy-territory/etmain/video/etintro.roq

%changelog
openSUSE Build Service is sponsored by