Ammler  committed e49b379

Doc: rpm spec

  • Participants
  • Parent commits 8daf216
  • Branches 0.4
  • Tags 0.4.4

Comments (0)

Files changed (1)

File docs/openttd-opengfx.spec

+# spec file for package openttd-opengfx
+# 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-opengfx
+Version:        0.4.4
+Release:        0
+%define srcver  %{version}
+Summary:        Default baseset graphics for OpenTTD
+License:        GPL-2.0
+Group:          Amusements/Games/Strategy/Other
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
+BuildRequires:  nml >= 0.2.3
+%if !0%{?without_gimp}
+BuildRequires:  gimp
+Requires:       openttd-data >= 1.2
+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-%{srcver}-source
+%if !0%{?without_gimp}
+make distclean clean-gfx
+make %{?_smp_mflags} _V=
+# 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} _V=
+make check
+rm -rf %{buildroot}
+%dir %{_datadir}/openttd
+%dir %{_datadir}/openttd/baseset
+%dir %{ogfxdir}
+%doc %{ogfxdir}/changelog.txt
+%doc %{ogfxdir}/license.txt
+%doc %{ogfxdir}/readme.txt