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
f33c737
Release:        0.9%{?dist}
a503d9d
Summary:        A 2D graphical RPG game
a503d9d
a503d9d
Group:          Amusements/Games
a503d9d
License:        GPLv2+
a503d9d
URL:            http://adonthell.linuxgames.com/
9c2b190
Source0:        http://savannah.nongnu.org/download/%{name}/%{name}-src-%{version}.tar.gz
0754337
## Submitted upstream, will be in next release
0754337
# https://savannah.nongnu.org/bugs/index.php?25737
0754337
Patch0:         %{name}-gcc44.patch
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
0754337
# build with GCC 4.4
0754337
%patch0 -p0
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
9c2b190
%defattr(-,root,root,-)
a503d9d
%doc doc/devel/html
a503d9d
a503d9d
a503d9d
%changelog
f33c737
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.5-0.9
f33c737
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f33c737
9c2b190
* Tue Aug 11 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-0.8
9c2b190
- Upstream changed source URL.
9c2b190
- Added defattr for -doc subpackage.
9c2b190
e2240de
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.7
e2240de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e2240de
0754337
* Sun Mar 01 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-0.6
0754337
- Fixed building with GCC 4.4
0754337
24314b0
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.5
24314b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
24314b0
65db741
* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.5-0.4
65db741
- Rebuild for Python 2.6
65db741
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