File openttd-opengfx.spec of Package openttd-opengfx

# spec file for package openttd-opengfx
# Copyright (c) 2015 SUSE LINUX 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-opengfx
Version:        0.5.4
Release:        0
Summary:        Default baseset graphics for OpenTTD
License:        GPL-2.0
Group:          Amusements/Games/Strategy/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  dos2unix
BuildRequires:  nml >= 0.4.1
%if !0%{?without_gimp}
BuildRequires:  gimp
BuildRequires:  grfcodec
BuildRequires:  python-base
BuildRequires:  python3-base
BuildRequires:  xz
Requires:       openttd-data >= 1.5
Provides:       opengfx = %{version}

OpenGFX is an open source graphics base set designed to be used by OpenTTD.

OpenGFX provides a set of free and open source base graphics, and aims to
ensure the best possible out-of-the-box experience with OpenTTD.

%setup -qn opengfx-%{version}-source
%if !0%{?without_gimp}
make clean-gfx

# set $UNIX2DOS to null, fixes
make UNIX2DOS=

# we need to define version on the install target, else it could conflict with
# possible same named opengfx in $HOME
%define ogfxdir %{_datadir}/openttd/baseset/opengfx-%{version}
make install INSTALL_DIR=%{buildroot}%{ogfxdir}

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

openSUSE Build Service is sponsored by