File openttd-openmsx.spec of Package openttd-openmsx

# spec file for package openttd-openmsx
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           openttd-openmsx
Version:        0.3.1
Release:        1%{?dist}
Summary:        An OpenTTD Music set
License:        GPL-2.0
Group:          Amusements/Games/Strategy/Other

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

BuildRequires:  python
Requires:       openttd-data >= 1.2
%if 0%{?suse_version} || 0%{?mdkversion}
Recommends:     timidity

OpenMSX is an open source replacement for the original Transport Tycoon Deluxe (TTD) 
music. All contributions are licensed under the GPL v2.

%setup -qn openmsx-%{version}-source

make %{?_smp_mflags} _V=

%define omsxdir %{_datadir}/openttd/baseset
make install INSTALL_DIR=%{buildroot}%{omsxdir} _V=
#openmsx adds a versioned dir to the install dir
%define omsxdir %{_datadir}/openttd/baseset/openmsx-%{version}

%dir %{_datadir}/openttd
%dir %{_datadir}/openttd/baseset
%dir %{omsxdir}
%doc %{omsxdir}/changelog.txt
%doc %{omsxdir}/license.txt
%doc %{omsxdir}/readme.txt