Mathieu Bridon a503d9d
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Name:           adonthell
Mathieu Bridon a503d9d
Version:        0.3.5
3610aa1
Release:        0.16%{?dist}
Mathieu Bridon a503d9d
Summary:        A 2D graphical RPG game
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Group:          Amusements/Games
Mathieu Bridon a503d9d
License:        GPLv2+
Mathieu Bridon 54a9ee7
URL:            http://adonthell.nongnu.org/
Mathieu Bridon 9c2b190
Source0:        http://savannah.nongnu.org/download/%{name}/%{name}-src-%{version}.tar.gz
Mathieu Bridon 38025ba
Mathieu Bridon 38025ba
## Fixes from CVS, no new release yet.
Mathieu Bridon 1a6973d
# Patch was obtained with:
Mathieu Bridon 1a6973d
#     cvs diff -u -r 1.36 -r 1.37 adonthell-0.3/src/dialog.cc
Mathieu Bridon 1a6973d
Patch0:         %{name}-0.3.5-fix-build-with-gcc-4.4.patch
Mathieu Bridon 38025ba
# Patch was obtained with:
Mathieu Bridon 38025ba
#     cvs diff -u -r 1.5 -r 1.6 adonthell-0.3/src/win_event.cc
Mathieu Bridon 38025ba
Patch1:         %{name}-0.3.5-fix-build-with-gcc-4.6.patch
Mathieu Bridon 38025ba
Mathieu Bridon a503d9d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
BuildRequires:  python-devel
Mathieu Bridon a503d9d
BuildRequires:  freetype-devel
Mathieu Bridon a503d9d
BuildRequires:  libxml2-devel
Mathieu Bridon a503d9d
BuildRequires:  libogg-devel
Mathieu Bridon a503d9d
BuildRequires:  libvorbis-devel
Mathieu Bridon a503d9d
BuildRequires:  SDL_mixer-devel
Mathieu Bridon a503d9d
BuildRequires:  SDL_ttf-devel
Mathieu Bridon a503d9d
BuildRequires:  libpng-devel
Mathieu Bridon a503d9d
BuildRequires:  swig
Mathieu Bridon a503d9d
BuildRequires:  doxygen
Mathieu Bridon a503d9d
BuildRequires:  graphviz
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%description
Mathieu Bridon a503d9d
A 2D, graphical, single player role playing game inspired by good old
Mathieu Bridon a503d9d
console RPGs from the 16 bit console gaming era.
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
This package contains the Adonthell engine. You will also need a game
Mathieu Bridon a503d9d
package to play Adonthell. For this release, the official package is
Mathieu Bridon a503d9d
Waste's Edge.
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%package doc
Mathieu Bridon a503d9d
Summary:        API documentation for %{name}
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Group:          Documentation
Mathieu Bridon a503d9d
Requires:       %{name} = %{version}-%{release}
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%description doc
Mathieu Bridon a503d9d
API documentation for %{name} generated by doxygen in HTML format.
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%prep
Mathieu Bridon a503d9d
%setup -q
Mathieu Bridon a503d9d
# install locale files in the right place
Mathieu Bridon a503d9d
sed -i 's|myconfig.gamedir + "/locale"|"%{_datadir}/locale"|' src/nls.cc
Mathieu Bridon a503d9d
# remove hardcoded CFLAGS
Mathieu Bridon a503d9d
sed -i 's|^CFLAGS|^#CFLAGS|g' configure
Mathieu Bridon 0754337
# build with GCC 4.4
Mathieu Bridon 1a6973d
%patch0 -p1
Mathieu Bridon 38025ba
%patch1 -p1
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%build
Mathieu Bridon a503d9d
%configure --enable-doc
Mathieu Bridon a503d9d
make %{?_smp_mflags} 
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%install
Mathieu Bridon a503d9d
rm -rf $RPM_BUILD_ROOT
Mathieu Bridon a503d9d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%clean
Mathieu Bridon a503d9d
rm -rf $RPM_BUILD_ROOT
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%files
Mathieu Bridon a503d9d
%defattr(-,root,root,-)
Mathieu Bridon a503d9d
%doc AUTHORS COPYING FULLSCREEN.howto NEWBIE NEWS README
Mathieu Bridon a503d9d
%{_bindir}/%{name}
Mathieu Bridon a503d9d
%{_bindir}/%{name}-0.3
Mathieu Bridon a503d9d
%{_datadir}/%{name}/
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%files doc
Mathieu Bridon 9c2b190
%defattr(-,root,root,-)
Mathieu Bridon a503d9d
%doc doc/devel/html
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
%changelog
3610aa1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.16
3610aa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3610aa1
66bb707
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.15
66bb707
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66bb707
29d24fd
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.14
29d24fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
29d24fd
95f6560
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.13
95f6560
- Rebuilt for c++ ABI breakage
95f6560
2039e75
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.12
2039e75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2039e75
Mathieu Bridon de33c0e
* Tue Feb 15 2011 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-0.11
Mathieu Bridon de33c0e
- Fix GCC-4.6 build failure
Mathieu Bridon de33c0e
- Remake GCC-4.4 build failure patch from 0.3.5-0.6:
Mathieu Bridon de33c0e
  - use cvs to generate a proper patch
Mathieu Bridon de33c0e
  - name it properly
Mathieu Bridon de33c0e
af4b2df
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-0.10
af4b2df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
af4b2df
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
Mathieu Bridon 9c2b190
* Tue Aug 11 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-0.8
Mathieu Bridon 9c2b190
- Upstream changed source URL.
Mathieu Bridon 9c2b190
- Added defattr for -doc subpackage.
Mathieu Bridon 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
Mathieu Bridon 0754337
* Sun Mar 01 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-0.6
Mathieu Bridon 0754337
- Fixed building with GCC 4.4
Mathieu Bridon 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
Mathieu Bridon a503d9d
* Tue Jun 03 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.5-0.3
Mathieu Bridon a503d9d
- added -p option to install
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Sat May 31 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.5-0.2
Mathieu Bridon a503d9d
- applied patch to configure instead of configure.in
Mathieu Bridon a503d9d
- removed trademarks names from description
Mathieu Bridon a503d9d
- removed explicit requires
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Tue May 27 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.5-0.1
Mathieu Bridon a503d9d
- switched to 0.3.5 release (includes bug fixes and fixes for building RPM for
Mathieu Bridon a503d9d
  fedora like pythin finding and errors with fedora specific flags)
Mathieu Bridon a503d9d
Mathieu Bridon 3eec08d
* Fri May 23 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.8
Mathieu Bridon a503d9d
- fixed license tag (GPLv2 to GPLv2+)
Mathieu Bridon a503d9d
- removed explicit requires
Mathieu Bridon a503d9d
- fixed directories ownership
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Thu Apr 17 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.7
Mathieu Bridon a503d9d
- fixed building on 64 bits arch (/lib was hard coded in configure.in)
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Fri Apr 04 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.6
Mathieu Bridon a503d9d
- fixed typo in doc description
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Fri Feb 22 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.5
Mathieu Bridon a503d9d
- search for translations in the right place so that wastesedge
Mathieu Bridon a503d9d
package can install them in the right place
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.4
Mathieu Bridon a503d9d
- separated the doc in a dedicated package
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.3
Mathieu Bridon a503d9d
- cleaned the spec file again
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.2
Mathieu Bridon a503d9d
- cleaned the spec file
Mathieu Bridon a503d9d
Mathieu Bridon a503d9d
* Mon Feb 18 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.1
Mathieu Bridon a503d9d
- first version of the SPEC file