# *********************************************************************** # * * # * Star Traders: A Game of Interstellar Trading * # * Copyright (C) 1990-2012, John Zaitseff * # * * # *********************************************************************** # Author: John Zaitseff # $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-pre2 %define normalised_version 7.3.99.2 %define rpm_release_num 2 %define is_prerelease 1 # *********************************************************************** # 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 * Mon Apr 30 2012 John Zaitseff - 7.3.99.2-2 - Changed the RPM spec file to remove OpenSUSE-specific sections * Mon Apr 16 2012 John Zaitseff - 7.3.99.2-1 - Initial RPM package of Star Traders.