File simutrans-pak64.spec of Package simutrans-pak64
Name: simutrans-pak64
Version: 111.1
Release: 4
License: Other
BuildRequires: unzip zip
Requires: simutrans-bin
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
Obsoletes: simutrans64
Source0: simupak64-111-1.zip
Source1: language_pack-pak64-160212.zip
Source2: simupak64-addon-food-110-0-1.zip
Group: Amusements/Games/Strategy/Other
URL: http://simutrans.com/
Summary: Transport simulation - pak64
%description
Simutrans is a transport and economic simulation with some ecological
aspects. The goal of the game is to build an infrastructure which
allows you to transport goods between the various industries and towns,
and to support the towns with water and energy. A second goal is to
become as rich as possible, but you will have to reinvest a good part
of your earned money to expand your infrastructure network. Your
competition will not sleep!
%prep
unzip -o %{S:0}
unzip -o %{S:2}
unzip -o %{S:1} -d simutrans/pak/text/
cd simutrans
mkdir addons
mv pak addons/pak64
chmod -R g-w *
%build
%install
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/games/
cp -a * $RPM_BUILD_ROOT%{_prefix}/share/games/
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_prefix}/share/games/