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

Remove OpenSUSE-specific sections from the spec file

This commit is contained in:
John Zaitseff 2012-04-30 08:58:08 +10:00
parent 970cd86e04
commit c77098097b

View File

@ -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 <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.