mirror of
https://git.zap.org.au/git/trader.git
synced 2025-02-02 15:08:13 -05:00
102 lines
3.1 KiB
RPMSpec
102 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package trader
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2012-17 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$
|
|
|
|
# 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.10
|
|
%define normalised_version 7.10
|
|
%define rpm_release_num 2
|
|
%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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc
|
|
BuildRequires: gettext
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: gperf
|
|
|
|
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
|
|
%defattr(-,root,root,-)
|
|
%doc README NEWS COPYING
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man6/trader.6*
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
|
|
%post
|
|
%desktop_database_post
|
|
%icon_theme_cache_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
%icon_theme_cache_postun
|
|
|
|
%changelog
|