%define rel 2.0 %define realver %{rel}.4_rc1 Name: warzone Version: 2.04 Release: 0.1.rc1%{?dist} Summary: Innovative 3D real-time strategy Group: Amusements/Games License: GPL URL: http://wz.rootzilla.de/site/ Source0: http://download.gna.org/warzone/releases/%{rel}/%{name}-%{realver}.tar.bz2 Patch0: warzone-x86_64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: physfs-devel openal-devel BuildRequires: SDL_net-devel BuildRequires: zlib-devel BuildRequires: libjpeg-devel libpng-devel BuildRequires: mesa-libGL-devel mesa-libGLU-devel BuildRequires: libogg-devel libvorbis-devel BuildRequires: bison flex BuildRequires: zip Requires: warzone-data %description Warzone 2100 is an innovative real-time 3D strategy game initially developed as commercial product in 1999. Although comparable to some other games of this type in many significant respects, it does contain aspects that are unique. These include various radar technologies, a greater focus on artillery and counter-battery technologies, more frequent in-game cinematic updates as gameplay progress, as well as a different vehicle design method. %package data Summary: Data files to warzone Group: Amusements/Games %description data Warzone data files %prep %setup -q -n %{name}-%{realver} %patch %build sed 's#-m32##g' -i configure sed 's#-m32##g' -i ./makerules/configure.mk %configure --with-ogg --without-mp3 #./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} --with-ogg --without-mp3 make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING AUTHORS CHANGELOG README TODO %{_bindir}/warzone %files data %defattr(-,root,root,-) %{_datadir}/warzone