mirror of
https://git.zap.org.au/git/trader.git
synced 2024-11-03 17:27:29 -05:00
Simplify the spec file to suit Fedora guidelines
This commit is contained in:
parent
0fa0199c31
commit
890ed9c58b
51
trader.spec
51
trader.spec
@ -6,86 +6,55 @@
|
|||||||
# ***********************************************************************
|
# ***********************************************************************
|
||||||
|
|
||||||
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
# Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
||||||
# $Id$
|
# $Id: trader.spec 487 2012-09-20 09:08:11Z john $
|
||||||
|
|
||||||
# This file is distributed under the same licence as Star Traders itself:
|
# This file is distributed under the same licence as Star Traders itself:
|
||||||
# the GNU General Public License, version 3 or later.
|
# 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
|
Name: trader
|
||||||
Version: %{normalised_version}
|
Version: 7.4
|
||||||
Release: %{rpm_release_num}%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Star Traders, a simple game of interstellar trading
|
Summary: Star Traders, a simple game of interstellar trading
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
Url: http://www.zap.org.au/software/trader/
|
Url: http://www.zap.org.au/software/trader/
|
||||||
|
Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{version}.tar.gz
|
||||||
|
|
||||||
%if 0%{?is_prerelease}
|
BuildRequires: gettext ncurses-devel
|
||||||
Source0: ftp://ftp.zap.org.au/pub/trader/unix/prerelease/trader-%{upstream_version}.tar.gz
|
Provides: bundled(gnulib)
|
||||||
%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
|
%description
|
||||||
Star Traders is a simple game of interstellar trading, where the objective
|
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
|
is to create companies, buy and sell shares, borrow and repay money, in
|
||||||
order to become the wealthiest player (the winner).
|
order to become the wealthiest player (the winner).
|
||||||
|
|
||||||
# ***********************************************************************
|
|
||||||
# Package preparation
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{upstream_version}
|
%setup -q
|
||||||
|
|
||||||
# ***********************************************************************
|
|
||||||
# Build the package
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
# ***********************************************************************
|
|
||||||
# Install the package
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
# ***********************************************************************
|
|
||||||
# Clean up from package building
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
# ***********************************************************************
|
|
||||||
# Create the RPM archive
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING NEWS README
|
%doc COPYING NEWS README
|
||||||
%doc %{_mandir}/man6/trader.6*
|
%doc %{_mandir}/man6/trader.6*
|
||||||
%{_bindir}/trader
|
%{_bindir}/trader
|
||||||
|
|
||||||
# ***********************************************************************
|
|
||||||
# Package spec file information
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 20 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.4-2
|
||||||
|
- Simplified the RPM spec file to suit Fedora guidelines.
|
||||||
|
|
||||||
* Wed May 09 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.4-1
|
* 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.
|
- Updated the RPM package for a new release of Star Traders: version 7.4.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user