File trader.spec of Package trader
#
# spec file for package trader
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012-18 John Zaitseff <J.Zaitseff@zap.org.au>
#
# 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/
#
# ***********************************************************************
# * *
# * Star Traders: A Game of Interstellar Trading *
# * Copyright (C) 1990-2017, John Zaitseff *
# * *
# ***********************************************************************
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
# $Id: c8d3c05321aea26745a5ced3158245111b97ca14 $
# This file is distributed under the same licence as Star Traders itself:
# the GNU General Public License, version 3 or later.
%define upstream_version 7.12
%define normalised_version 7.12
%define rpm_release_num 1
%define is_prerelease 0
Name: trader
Version: %{normalised_version}
Release: %{rpm_release_num}%{?dist}
Summary: Star Traders, a simple game of interstellar trading
License: GPL-3.0+
Group: Amusements/Games/Strategy/Turn Based
Url: http://www.zap.org.au/software/trader/
%if 0%{?is_prerelease}
Source0: ftp://ftp.zap.org.au/pub/trader/unix/prerelease/trader-%{upstream_version}.tar.xz
%else
Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{upstream_version}.tar.xz
%endif
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: gperf
BuildRequires: ncurses-devel
BuildRequires: update-desktop-files
Requires(post): hicolor-icon-theme
Requires(postun): hicolor-icon-theme
Recommends: %{name}-lang = %{version}
%description
Star Traders is a simple game of interstellar trading, where the objective
is to create companies, buy and sell shares, borrow and repay money, in
order to become the wealthiest player (the winner).
%lang_package
%prep
%setup -q -n %{name}-%{upstream_version}
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name}
%suse_update_desktop_file %{name}
%files
%doc README NEWS COPYING
%{_bindir}/%{name}
%{_mandir}/man6/trader.6%{ext_man}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%files lang -f %{name}.lang
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%changelog