1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-11-03 17:27:29 -05:00
trader/trader.spec

74 lines
2.0 KiB
RPMSpec

# ***********************************************************************
# * *
# * Star Traders: A Game of Interstellar Trading *
# * Copyright (C) 1990-2012, 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 real_version 7.4-pre2
%define fake_version 7.3.99.2
%define is_prerelease 1
Name: trader
%if ! %{is_prerelease}
Version: %{real_version}
Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{version}.tar.bz2
%else
Version: %{fake_version}
Source0: ftp://ftp.zap.org.au/pub/trader/unix/prerelease/trader-%{real_version}.tar.gz
%endif
Release: 1%{?dist}
Summary: Star Traders, a simple game of interstellar trading
License: GPLv3+
Group: Amusements/Games
URL: http://www.zap.org.au/software/trader/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
BuildRequires: ncurses-devel
BuildRequires: gperf
BuildRequires: gettext
%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).
%prep
%setup -q -n %{name}-%{real_version}
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING NEWS README
%doc %{_mandir}/man6/trader.6*
%{_bindir}/trader
%changelog
* Mon Apr 16 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.3.99.2-1
- Initial RPM package of Star Traders.