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

Rename a number of global macros for clarity

Also make sure that the basename of BOTH Source0 URLs are valid: the
openSUSE OBS source_validator complains otherwise.
This commit is contained in:
John Zaitseff 2012-04-16 15:58:33 +10:00
parent 9058a9a81a
commit 8a7ae2b1a7

View File

@ -11,19 +11,25 @@
# 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.
%define real_version 7.4-pre2 # ***********************************************************************
%define fake_version 7.3.99.2 # Global definitions
%define release_num 1
%define upstream_version 7.4-pre2
%define normalised_version 7.3.99.2
%define rpm_release_num 1
%define is_prerelease 1 %define is_prerelease 1
# ***********************************************************************
# Overall package information
Name: trader Name: trader
Version: %{normalised_version}
%if 0%{?is_prerelease} %if 0%{?is_prerelease}
Version: %{fake_version} Source0: ftp://ftp.zap.org.au/pub/trader/unix/prerelease/trader-%{upstream_version}.tar.gz
Source0: ftp://ftp.zap.org.au/pub/trader/unix/prerelease/trader-%{real_version}.tar.gz
%else %else
Version: %{real_version} Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{upstream_version}.tar.gz
Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{version}.tar.bz2
%endif %endif
%if 0%{?suse_version} > 1000 %if 0%{?suse_version} > 1000
@ -32,7 +38,7 @@ Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{version}.tar.bz2
%define use_suggests_lang 0 %define use_suggests_lang 0
%endif %endif
Release: %{release_num}%{?dist} Release: %{rpm_release_num}%{?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
@ -64,7 +70,7 @@ order to become the wealthiest player (the winner).
# Package preparation # Package preparation
%prep %prep
%setup -q -n %{name}-%{real_version} %setup -q -n %{name}-%{upstream_version}
# *********************************************************************** # ***********************************************************************