Blob Blame History Raw
Name:           warzone2100
Version:        2.0.6
Release:        1%{?dist}
Summary:        Innovative 3D real-time strategy

Group:          Amusements/Games
License:        GPL
URL:            http://wz2100.net/
Source0:        http://download.gna.org/warzone/releases/2.0/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch:    x86_64

BuildRequires: physfs-devel SDL_net-devel openal-devel bison flex zip
BuildRequires: libjpeg-devel libpng-devel libogg-devel libvorbis-devel
BuildRequires: automake >= 1.8
BuildRequires: desktop-file-utils
%if "%{?fedora}" == "5"
BuildRequires:  libGLU-devel
%endif
Requires: %{name}-data = %{version}

%package data
Summary: Warzone2100's data files
Group:   Amusements/Games
Requires: %{name} = %{version}

%description
Warzone 2100 was an innovative 3D real-time strategy game back in 1999, and
most will agree it didn't enjoy the commercial success it should have had. The
game's source code was liberated on December 6th, 2004, under a GPL license
(see COPYING in this directory for details). Soon after that, the Warzone 2100
ReDev project was formed to take care of its future.

%description data
Warzone 2100 was an innovative 3D real-time strategy game back in 1999, and
most will agree it didn't enjoy the commercial success it should have had. The
game's source code was liberated on December 6th, 2004, under a GPL license
(see COPYING in this directory for details). Soon after that, the Warzone 2100
ReDev project was formed to take care of its future.

Data (textures, maps, sounds and models) required to play warzone2100.

%prep
%setup -q


%build
./autogen.sh
%configure --disable-mp3
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/doc
desktop-file-install --vendor="fedora"                                 \
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications/   \
        $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
rm $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_bindir}/warzone2100
%{_datadir}/icons/warzone*
%{_datadir}/applications/fedora-%{name}.desktop
%doc AUTHORS ChangeLog COPYING COPYING.README README TODO

%files data
%defattr(-,root,root,-)
%{_datadir}/warzone2100

%changelog
* Sat Apr 07 2007 Karol Trzcionka <karlikt at gmail.com> - 2.0.6-1
- Update to v2.0.6
* Fri Jan 26 2007 Karol Trzcionka <karlikt at gmail.com> - 2.0.5-4
- Update BRs for FC-5
* Tue Jan 16 2007 Karol Trzcionka <karlikt at gmail.com> - 2.0.5-3
- change ExclusiveArch: i386 to ExcludeArch: x86_64
* Tue Jan 09 2007 Karol Trzcionka <karlikt at gmail.com> - 2.0.5-2
- add an ExclusiveArch
* Sun Dec 31 2006 Karol Trzcionka <karlikt at gmail.com> - 2.0.5-1
- Initial Release