1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-09-15 17:28:07 -04:00
trader/trader.spec
2012-05-09 14:19:56 +10:00

98 lines
3.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.
# ***********************************************************************
# Global definitions
%define upstream_version 7.4
%define normalised_version 7.4
%define rpm_release_num 1
%define is_prerelease 0
# ***********************************************************************
# Overall package information
Name: trader
Version: %{normalised_version}
Release: %{rpm_release_num}%{?dist}
Summary: Star Traders, a simple game of interstellar trading
License: GPLv3+
Group: Amusements/Games
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.gz
%else
Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{upstream_version}.tar.gz
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gettext
BuildRequires: gperf
BuildRequires: ncurses-devel
%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).
# ***********************************************************************
# Package preparation
%prep
%setup -q -n %{name}-%{upstream_version}
# ***********************************************************************
# Build the package
%build
%configure
make %{?_smp_mflags}
# ***********************************************************************
# Install the package
%install
make DESTDIR=%{buildroot} install
%find_lang %{name}
# ***********************************************************************
# Clean up from package building
%clean
rm -rf %{buildroot}
# ***********************************************************************
# Create the RPM archive
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING NEWS README
%doc %{_mandir}/man6/trader.6*
%{_bindir}/trader
# ***********************************************************************
# Package spec file information
%changelog
* Wed May 09 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.4-1
- Updated the RPM package for a new release of Star Traders: version 7.4.
* Mon Apr 30 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.3.99.2-2
- Changed the RPM spec file to remove OpenSUSE-specific sections
* Mon Apr 16 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.3.99.2-1
- Initial RPM package of Star Traders.