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 upstream_version 7.4-pre2
%define normalised_version 7.3.99.2 %define normalised_version 7.3.99.2
%define rpm_release_num 1 %define rpm_release_num 2
%define is_prerelease 1 %define is_prerelease 1
@ -29,7 +29,7 @@ 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
URL: http://www.zap.org.au/software/trader/ Url: http://www.zap.org.au/software/trader/
%if 0%{?is_prerelease} %if 0%{?is_prerelease}
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-%{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 Source0: ftp://ftp.zap.org.au/pub/trader/unix/trader-%{upstream_version}.tar.gz
%endif %endif
%if 0%{?suse_version} >= 1100 BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define use_suggests_lang 1
%else
%define use_suggests_lang 0
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
BuildRequires: ncurses-devel
BuildRequires: gperf
BuildRequires: gettext BuildRequires: gettext
BuildRequires: gperf
%if 0%{?use_suggests_lang} BuildRequires: ncurses-devel
Suggests: %{name}-lang = %{version}
%endif
%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).
# ***********************************************************************
# Separate package for locale-specific information
%if 0%{?use_suggests_lang}
%lang_package
%endif
# *********************************************************************** # ***********************************************************************
# Package preparation # Package preparation
%prep %prep
%setup -q -n %{name}-%{upstream_version} %setup -q -n %{name}-%{upstream_version}
# *********************************************************************** # ***********************************************************************
# Build the package # Build the package
@ -80,7 +60,6 @@ order to become the wealthiest player (the winner).
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}
# *********************************************************************** # ***********************************************************************
# Install the package # Install the package
@ -88,43 +67,28 @@ make %{?_smp_mflags}
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
%find_lang %{name} %find_lang %{name}
# *********************************************************************** # ***********************************************************************
# Clean up from package building # Clean up from package building
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
# *********************************************************************** # ***********************************************************************
# Create the RPM archive # 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 %files -f %{name}.lang
%defattr(-,root,root,-) %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
%endif
# *********************************************************************** # ***********************************************************************
# Package spec file information # Package spec file information
%changelog %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 * Mon Apr 16 2012 John Zaitseff <J.Zaitseff@zap.org.au> - 7.3.99.2-1
- Initial RPM package of Star Traders. - Initial RPM package of Star Traders.