File simutrans.spec of Package simutrans

#
# spec file for package simutrans (Version 0.88.10.5)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           simutrans
License:        Contact author
Group:          Amusements/Games/Strategy/Real Time
Autoreqprov:    on
Version:        0.88.10.5
Release:        29
Source0:        simulinux-88-10-5.zip
Source1:        simubase128-1-3-1.zip
Source2:        %{name}
Source3:        sim_midi-0_78_0.zip
Source4:        fertilizer.zip
Source5:        czech-vehicles.zip
Patch:          simutrans-sk_translation.patch
URL:            http://128.simutrans.com/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Transport and Economic Simulation Game
BuildRequires:  unzip

%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
competitors will not sleep!



Authors:
--------
    Hansjoerg Malthaner <hansjoerg.malthaner@gmx.net>

%prep
%setup -n simutrans
unzip %{S:1} -d ..
unzip %{S:3} -d .
mv pak128/factory.cow_farm.pak pak128/factory.cow_farm.pak_orig
mv pak128/factory.grain_farm.pak pak128/factory.grain_farm.pak_orig
mv pak128/factory.supermarket.pak pak128/factory.supermarket.pak_orig
unzip %{S:4} -d pak128
unzip %{S:5} -d pak128
rm -rf text/en/*bak
chmod -R g-w *
%patch

%build

%install
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
cp %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
cp -a * $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/%{name}
cp %{SOURCE3} $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/%{name}/
cd $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
mv *.txt $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/%{name}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc %{_prefix}/share/doc/packages/%{name}
%attr(755, root, root) %{_prefix}/bin/*
%{_prefix}/lib/%{name}

%changelog
* Thu Mar 29 2007 - coolo@suse.de
- fix BuildRequires
* Fri Aug 04 2006 - lmichnovic@suse.cz
- fixed wrong encoding of sk translation file
* Fri Aug 04 2006 - lmichnovic@suse.cz
- update of the binary to version 0.88.10.5
- update of the data pack to version 1.3.1
  - new translations: dk, nl, pl, sk
  - many fixes (e.g. pricing, costs, typos) and improvements (new
  vehicles, new buildings, monorail improvements)
  - fixed some copyright information
* Fri Jun 16 2006 - lmichnovic@suse.cz
- update of the binary to version 0.88.6
- update of the data pack to version 1.2.9d
  - many improvements and fixes to buildings and vehicles
  - aeroplanes was added
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 - lmichnovic@suse.cz
- update to 0.88.01 version :
  has smoother and nicer graphics because of use 128x128 pixel objects instead 64x64 in previous version
- added extensions fertilizer, czech-vehicles
* Mon Aug 11 2003 - ltinkl@suse.cz
- fixed wrong file permissions [#28646]
* Fri Dec 13 2002 - prehak@suse.cz
- updated to version 0.81.0 (sources not available anymore)
* Mon Jul 08 2002 - prehak@suse.cz
- updated to version 0.80.0
- added midi files with music
- added winter scenario graphics (created README)
* Wed Nov 21 2001 - rvasice@suse.cz
- fixed permissions for start script
* Mon Nov 19 2001 - rvasice@suse.cz
- initial package release (version 0.79.0)
openSUSE Build Service is sponsored by