Name: openttd-opengfx Version: 0.0 Release: 1%{?dist} Summary: Graphics replacement for OpenTTD Group: Amusements/Games License: GPLv2 URL: http://wiki.openttd.org/wiki/index.php/Graphics_Replacement # Link at http://www.tt-forums.net/viewtopic.php?p=759290#p759290 # This is an http://www.tt-forums.net/download/file.php?id=104738 with correct filename Source0: OpenGFX_Alpha4.2.zip BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch #BuildRequires: Requires: openttd >= 0.7.0 %description The OpenGFX Graphics Pack for OpenTTD is an open source replacement for the original graphics required by OpenTTD. The main goal of this project is to provide a set of free base graphics which can be shipped with OpenTTD in order to make it possible to run OpenTTD "out of the box" without the need of the original cd. %prep %setup -q -c # We can install either .tar or unpack it mkdir OpenGFX_Alpha4.2 tar xf OpenGFX_Alpha4.2.tar -C OpenGFX_Alpha4.2 # Fix line endings and encoding sed -i.orig 's/\r//' COPYING touch -r COPYING.orig COPYING iconv -f latin1 -t utf8 readme.txt > readme.txt.new sed -i 's/\r//' readme.txt.new touch -r readme.txt readme.txt.new mv readme.txt.new readme.txt %build # Nothing to build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/openttd install -p -m 644 OpenGFX_Alpha4.2/*.{grf,obg} $RPM_BUILD_ROOT%{_datadir}/openttd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING readme.txt %{_datadir}/openttd/* %changelog * Tue Mar 10 2009 Alexey Torkhov - 0.0-1 - Initial package