Blob Blame History Raw
Name:           wesnoth
Version:        0.7
Release:        0.fdr.1.rh90
Epoch:          0
Summary:        Battle for Wesnoth is a fantasy turn-based strategy game.

Group:         	Amusements/Games
License:        GPL
URL:            http://www.wesnoth.org
Source0:        http://www.wesnoth.org/files/wesnoth-0.7.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}.png
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  SDL-devel, SDL_image-devel, SDL_mixer-devel
BuildRequires:	SDL_ttf-devel, SDL_net-devel, freetype-devel
BuildRequires:	desktop-file-utils

%description
%{summary}

Battle for control of villages, using variety of units which have advantages 
and disadvantages in different types of terrains and against different types 
of attacks. Units gain experience and advance levels, and are carried over 
from one scenario to the next campaign.

%prep
%setup -q


%build
%configure --disable-dependency-tracking \
	   --enable-server \
	   --enable-editor

make %{?_smp_mflags} 


%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
		     --mode="0644" --vendor fedora \
		     --add-category="X-Fedora" %{SOURCE1}
# add icon for menus		     
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps

find $RPM_BUILD_ROOT -name ".cvs*" | xargs rm -f
find $RPM_BUILD_ROOT -name "CVS" | xargs rm -rf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING changelog README copyright MANUAL*
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/man6/*

%changelog
* Tue Mar 30 2004 Panu Matilainen <pmatilai@welho.com> 0:0.7-0.fdr.1
- update to 0.7

* Wed Dec 17 2003 Panu Matilainen <pmatilai@welho.com> 0:0.6.1-0.fdr.1
- update to 0.6.1

* Mon Dec 15 2003 Panu Matilainen <pmatilai@welho.com> 0:0.6-0.fdr.2
- update to bugfixed tarball of 0.6

* Fri Dec 12 2003 Panu Matilainen <pmatilai@welho.com> 0:0.6-0.fdr.1
- update to 0.6
- adapt to the new autoconf make system
- enable editor and server

* Tue Nov 11 2003 Panu Matilainen <pmatilai@welho.com> 0:0.5.1-0.fdr.1
- update to 0.5.1
- Fedora -> fedora in desktop file vendor

* Tue Nov 04 2003 Panu Matilainen <pmatilai@welho.com> 0:0.5-0.fdr.1
- Initial Fedora packaging.