File simutrans-pak128.spec of Package simutrans-pak128
Name: simutrans-pak128
Version: 2.0
Release: 4
License: Other
BuildRequires: unzip zip
Requires: simutrans-bin
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
Obsoletes: simutrans128
Source0: pak128-2.0.0--111.0.zip
Source1: language_pack-pak128-160212.zip
Patch0: patch-simuconf.tab
BuildArch: noarch
Group: Amusements/Games/Strategy/Other
URL: http://simutrans.com/
Summary: Transport simulation - pak128
%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:1} -d simutrans/pak128/text/
%patch0 -p 0
rm simutrans/pak128/config/simuconf.tab.orig
cd simutrans
mkdir addons
mv pak128 addons
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/
%changelog -n simutrans-pak128
* Tue Nov 04 2008 - msrex@suse.de
- new version - simutrans 1.0