126cbe2
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
126cbe2
126cbe2
Name:           adonthell
126cbe2
Version:        0.3.5
126cbe2
Release:        0.3%{?dist}
126cbe2
Summary:        A 2D graphical RPG game
126cbe2
126cbe2
Group:          Amusements/Games
126cbe2
License:        GPLv2+
126cbe2
URL:            http://adonthell.linuxgames.com/
126cbe2
Source0:        http://download.savannah.gnu.org/releases/adonthell/adonthell-0.3.5.tar.gz
126cbe2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
126cbe2
126cbe2
BuildRequires:  python-devel
126cbe2
BuildRequires:  freetype-devel
126cbe2
BuildRequires:  libxml2-devel
126cbe2
BuildRequires:  libogg-devel
126cbe2
BuildRequires:  libvorbis-devel
126cbe2
BuildRequires:  SDL_mixer-devel
126cbe2
BuildRequires:  SDL_ttf-devel
126cbe2
BuildRequires:  libpng-devel
126cbe2
BuildRequires:  swig
126cbe2
BuildRequires:  doxygen
126cbe2
BuildRequires:  graphviz
126cbe2
126cbe2
126cbe2
%description
126cbe2
A 2D, graphical, single player role playing game inspired by good old
126cbe2
console RPGs from the 16 bit console gaming era.
126cbe2
126cbe2
This package contains the Adonthell engine. You will also need a game
126cbe2
package to play Adonthell. For this release, the official package is
126cbe2
Waste's Edge.
126cbe2
126cbe2
126cbe2
%package doc
126cbe2
Summary:        API documentation for %{name}
126cbe2
126cbe2
Group:          Documentation
126cbe2
Requires:       %{name} = %{version}-%{release}
126cbe2
126cbe2
%description doc
126cbe2
API documentation for %{name} generated by doxygen in HTML format.
126cbe2
126cbe2
126cbe2
%prep
126cbe2
%setup -q
126cbe2
# install locale files in the right place
126cbe2
sed -i 's|myconfig.gamedir + "/locale"|"%{_datadir}/locale"|' src/nls.cc
126cbe2
# remove hardcoded CFLAGS
126cbe2
sed -i 's|^CFLAGS|^#CFLAGS|g' configure
126cbe2
126cbe2
126cbe2
%build
126cbe2
%configure --enable-doc
126cbe2
make %{?_smp_mflags} 
126cbe2
126cbe2
126cbe2
%install
126cbe2
rm -rf $RPM_BUILD_ROOT
126cbe2
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
126cbe2
126cbe2
126cbe2
%clean
126cbe2
rm -rf $RPM_BUILD_ROOT
126cbe2
126cbe2
126cbe2
%files
126cbe2
%defattr(-,root,root,-)
126cbe2
%doc AUTHORS COPYING FULLSCREEN.howto NEWBIE NEWS README
126cbe2
%{_bindir}/%{name}
126cbe2
%{_bindir}/%{name}-0.3
126cbe2
%{_datadir}/%{name}/
126cbe2
126cbe2
%files doc
126cbe2
%doc doc/devel/html
126cbe2
126cbe2
126cbe2
%changelog
126cbe2
* Tue Jun 03 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.5-0.3
126cbe2
- added -p option to install
126cbe2
126cbe2
* Sat May 31 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.5-0.2
126cbe2
- applied patch to configure instead of configure.in
126cbe2
- removed trademarks names from description
126cbe2
- removed explicit requires
126cbe2
126cbe2
* Tue May 27 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.5-0.1
126cbe2
- switched to 0.3.5 release (includes bug fixes and fixes for building RPM for
126cbe2
  fedora like pythin finding and errors with fedora specific flags)
126cbe2
126cbe2
* Fri May 22 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.8
126cbe2
- fixed license tag (GPLv2 to GPLv2+)
126cbe2
- removed explicit requires
126cbe2
- fixed directories ownership
126cbe2
126cbe2
* Thu Apr 17 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.7
126cbe2
- fixed building on 64 bits arch (/lib was hard coded in configure.in)
126cbe2
126cbe2
* Fri Apr 04 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.6
126cbe2
- fixed typo in doc description
126cbe2
126cbe2
* Fri Feb 22 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.5
126cbe2
- search for translations in the right place so that wastesedge
126cbe2
package can install them in the right place
126cbe2
126cbe2
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.4
126cbe2
- separated the doc in a dedicated package
126cbe2
126cbe2
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.3
126cbe2
- cleaned the spec file again
126cbe2
126cbe2
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.2
126cbe2
- cleaned the spec file
126cbe2
126cbe2
* Mon Feb 18 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.1
126cbe2
- first version of the SPEC file