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