2009-03-07 09:21:18 -08:00
|
|
|
Name: warzone2100
|
2010-04-25 13:19:29 -07:00
|
|
|
Version: 2.3_beta8
|
2009-03-07 09:21:18 -08:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Innovative 3D real-time strategy
|
|
|
|
%define distributor wz2100.net
|
|
|
|
|
|
|
|
Group: Amusements/Games
|
|
|
|
License: GPLv2+ and CC-BY-SA
|
|
|
|
URL: http://wz2100.net/
|
2010-04-25 13:19:29 -07:00
|
|
|
Source0: http://download.gna.org/warzone/releases/2.2/%{name}-%{version}.tar.gz
|
2009-03-07 09:21:18 -08:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2009-05-03 08:16:03 -07:00
|
|
|
BuildRequires: physfs-devel openal-devel bison flex zip
|
2009-03-07 09:21:18 -08:00
|
|
|
BuildRequires: libjpeg-devel libpng-devel libogg-devel libvorbis-devel
|
|
|
|
BuildRequires: quesoglc-devel popt-devel gettext
|
|
|
|
BuildRequires: automake >= 1.8
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
Warzone 2100 was one of the first 3D RTS games ever. It was released commercially
|
|
|
|
by Pumpkin Studies in 1999, and released in 2004 under the GPL. Development was
|
|
|
|
continued by the Warzone 2100 Resurrection project to produce this improved version.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2010-04-25 13:19:29 -07:00
|
|
|
echo wc_uri=tags/%{version} > autorevision.conf
|
2009-03-07 09:21:18 -08:00
|
|
|
%configure --disable-rpath --disable-debug --with-distributor=%{distributor}
|
|
|
|
make %{_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
|
|
|
|
desktop-file-install --vendor=%{distributor} \
|
|
|
|
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
|
|
rm $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/warzone2100
|
|
|
|
%{_datadir}/icons/warzone*
|
|
|
|
%{_datadir}/applications/%{distributor}-%{name}.desktop
|
|
|
|
%{_datadir}/warzone2100
|
|
|
|
%doc AUTHORS ChangeLog COPYING COPYING.NONGPL COPYING.README
|
|
|
|
|
|
|
|
%changelog
|
2010-04-25 13:19:29 -07:00
|
|
|
* Mon May 11 2009 Per Inge Mathisen <per mathisen at gmail.com>
|
|
|
|
- 2.2_rc1 version
|
|
|
|
|
|
|
|
* Sat Mar 07 2009 Per Inge Mathisen <per mathisen at gmail.com>
|
2009-03-07 09:21:18 -08:00
|
|
|
- First version - spec file for the most part shamelessly copied from the Fedora project
|