%define name @PACKAGE@
%define version @VERSION@
%define release 1.mdv.wf

Summary: Ember - a client for Worldforge
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
URL: http://www.worldforge.org/dev/eng/clients/ember
License: GPL
Group: Amusements/Games
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: %{_prefix}
Requires: eris >= 1.3.11 mercator >= 0.2.4 varconf >= 0.6.4 OGRE >= 1.2.1 CEGUI >= 0.4.0 SDL >= 1.2  Atlas-C++ >= 0.5.98
#BuildRequires: Atlas-C++-devel >= 0.5.91 eris-devel mercator-devel varconf-devel OGRE-devel boost-devel CEGUI-devel libxerces-c25-devel

%description
Ember is a client for MMORPGs using the Worldforge system.
It uses the Ogre 3d engine with CEGUI.


%prep
rm -rf ${RPM_BUILD_ROOT}

%setup -q 

%build
CXXFLAGS="$RPM_OPT_FLAGS" %configure --enable-final=full
make -j 4

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README INSTALL AUTHORS 
#doc/user_guide.txt
#%{prefix}/lib/*
%{_bindir}/*
%{_datadir}/*
%config %{_sysconfdir}/ember/*



# end of file
