#
# ToDo:
# - review -home_etc.patch
-# - complains about polish fonts,
#
# Conditional build:
%bcond_without home_etc # without home_etc support
Summary(pl.UTF-8): Otwarta reimplementacja gry Transport Tycoon Deluxe
Name: openttd
Version: 0.6.1
-Release: 0.1
+Release: 0.2
License: GPL
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/openttd/%{name}-%{version}-source.tar.bz2
Source3: %{name}.desktop
Source4: %{name}-server.desktop
Patch0: %{name}-home_etc.patch
+Patch1: %{name}-libiconv.patch
URL: http://www.openttd.com/
BuildRequires: SDL-devel
BuildRequires: freetype-devel
Requires: TiMidity++
Provides: %{name}-binary = %{version}-%{release}
Obsoletes: openttd-server
+Suggests: TiMidity++
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
rmdir openttd-0.4.8-RC1-scenarios heightmap
cd ../..
%{?with_home_etc:%patch0 -p1}
+%patch1 -p1
# Let's pldize
find src/lang/ -type f -exec sed -i 's/:Unix/:PLD Linux/' \{\} \;
--with-zlib \
--with-png \
--with-freetype \
- --with-fontconfig
+ --with-fontconfig \
+ --with-iconv \
+ --with-midi=/usr/bin/timidity
%{__make} \
MANUAL_CONFIG=1 \