From c77098097b7d2eecebce7b00f6a67bba29bfd32d Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Mon, 30 Apr 2012 08:58:08 +1000 Subject: [PATCH] Remove OpenSUSE-specific sections from the spec file --- trader.spec | 52 ++++++++-------------------------------------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/trader.spec b/trader.spec index 1dc82e6..f354ca4 100644 --- a/trader.spec +++ b/trader.spec @@ -16,7 +16,7 @@ %define upstream_version 7.4-pre2 %define normalised_version 7.3.99.2 -%define rpm_release_num 1 +%define rpm_release_num 2 %define is_prerelease 1 @@ -29,7 +29,7 @@ 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/ +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 @@ -37,42 +37,22 @@ Source0: ftp://ftp.zap.org.au/pub/trader/unix/prerelease/trader-%{upstrea Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{upstream_version}.tar.gz %endif -%if 0%{?suse_version} >= 1100 -%define use_suggests_lang 1 -%else -%define use_suggests_lang 0 -%endif - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build -BuildRequires: ncurses-devel -BuildRequires: gperf +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gettext - -%if 0%{?use_suggests_lang} -Suggests: %{name}-lang = %{version} -%endif +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). - -# *********************************************************************** -# Separate package for locale-specific information - -%if 0%{?use_suggests_lang} -%lang_package -%endif - - # *********************************************************************** # Package preparation %prep %setup -q -n %{name}-%{upstream_version} - # *********************************************************************** # Build the package @@ -80,7 +60,6 @@ order to become the wealthiest player (the winner). %configure make %{?_smp_mflags} - # *********************************************************************** # Install the package @@ -88,43 +67,28 @@ make %{?_smp_mflags} make DESTDIR=%{buildroot} install %find_lang %{name} - # *********************************************************************** # Clean up from package building %clean rm -rf %{buildroot} - # *********************************************************************** # Create the RPM archive -%if 0%{?use_suggests_lang} - -%files -%defattr(-,root,root,-) -%doc COPYING NEWS README -%doc %{_mandir}/man6/trader.6* -%{_bindir}/trader - -%files lang -f %{name}.lang -%defattr(-,root,root,-) - -%else - %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING NEWS README %doc %{_mandir}/man6/trader.6* %{_bindir}/trader -%endif - - # *********************************************************************** # 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.