File diff r20021:4bed01184765 → r20022:a1985c020301
os/rpm/openttd.spec
Show inline comments
 
#
 
# spec file for package openttd
 
#
 
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 
# Copyright (c) 2007-2012 The OpenTTD developers
 
#
 
# All modifications and additions to the file contributed by third parties
 
# remain the property of their copyright owners, unless otherwise agreed
 
# upon. The license for this file, and modifications and additions to the
 
# file, is the same license as for the pristine package itself (unless the
 
# license for the pristine package is not an Open Source License, in which
 
# case the license is the MIT License). An "Open Source License" is a
 
# license that conforms to the Open Source Definition (Version 1.9)
 
# published by the Open Source Initiative.
 

	
 
# Please submit bugfixes or comments via http://bugs.opensuse.org/
 
#
 

	
 
Name:           openttd
 
Version:        1.3.beta1
 
Version:        1.3.beta2
 
Release:        0
 
%define srcver  1.3.0-beta1
 
%define srcver  1.3.0-beta2
 
Summary:        An open source reimplementation of Chris Sawyer's Transport Tycoon Deluxe
 
License:        GPL-2.0
 
Group:          Amusements/Games/Strategy/Other
 
Url:            http://www.openttd.org
 

	
 
Source:         http://binaries.openttd.org/releases/%{srcver}/%{name}-%{srcver}-source.tar.gz
 

	
 
%if 0%{?suse_version} || 0%{?mdkversion}
 
Recommends:     %{name}-gui
 
%endif
 

	
 
BuildRequires:  gcc-c++
 
BuildRequires:  libpng-devel
 
BuildRequires:  zlib-devel
 

	
 
%if 0%{?suse_version} || 0%{?mdkversion}
 
BuildRequires:  update-alternatives
 
Requires:       update-alternatives
 
%else
 
BuildRequires:  chkconfig
 
Requires:       chkconfig
 
%endif
 

	
 
%if 0%{?mdkversion}
 
BuildRequires:  liblzma-devel
 
BuildRequires:  liblzo-devel
 
%else
 
BuildRequires:  lzo-devel
 
BuildRequires:  xz-devel
 
%endif
 

	
 
# OBS workaround: needed by libdrm
 
%if 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
 
BuildRequires:  kernel
 
%endif
 

	
 
# for lzma detection
 
%if 0%{?suse_version}
 
BuildRequires:  pkg-config
 
%endif
 

	
 
# bulding openttd.grf is not required as it is a) part of source and
 
# b) required only, if you want to use the original set
 
%if 0%{?with_grfcodec}
 
BuildRequires:  grfcodec
 
%endif
 
# Recommends would fit better but not well supported...
 
Requires:       openttd-opengfx >= 0.4.2