a503d9d
Name:           adonthell
136abd8
Summary:        A 2D graphical RPG game
a503d9d
Version:        0.3.5
cfe9250
Release:        1%{?dist}
a503d9d
License:        GPLv2+
54a9ee7
URL:            http://adonthell.nongnu.org/
9c2b190
Source0:        http://savannah.nongnu.org/download/%{name}/%{name}-src-%{version}.tar.gz
38025ba
38025ba
## Fixes from CVS, no new release yet.
1a6973d
# Patch was obtained with:
1a6973d
#     cvs diff -u -r 1.36 -r 1.37 adonthell-0.3/src/dialog.cc
1a6973d
Patch0:         %{name}-0.3.5-fix-build-with-gcc-4.4.patch
38025ba
# Patch was obtained with:
38025ba
#     cvs diff -u -r 1.5 -r 1.6 adonthell-0.3/src/win_event.cc
38025ba
Patch1:         %{name}-0.3.5-fix-build-with-gcc-4.6.patch
38025ba
cfe9250
Patch2:         %{name}-0.3.5-Fix-build-with-Werror-format-security.patch
cfe9250
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
cfe9250
a503d9d
# remove hardcoded CFLAGS
a503d9d
sed -i 's|^CFLAGS|^#CFLAGS|g' configure
cfe9250
0754337
# build with GCC 4.4
1a6973d
%patch0 -p1
cfe9250
cfe9250
# build with GCC 4.6
38025ba
%patch1 -p1
a503d9d
cfe9250
# build with -Werror=format-security
cfe9250
%patch2 -p1
cfe9250
a503d9d
a503d9d
%build
a503d9d
%configure --enable-doc
a503d9d
make %{?_smp_mflags} 
a503d9d
a503d9d
a503d9d
%install
a503d9d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
a503d9d
a503d9d
a503d9d
%files
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
cfe9250
* Mon Dec 09 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-1
cfe9250
- Fix the build with -Werror=format-security
cfe9250
  https://bugzilla.redhat.com/show_bug.cgi?id=1036981
cfe9250
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
de33c0e
* Tue Feb 15 2011 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.5-0.11
de33c0e
- Fix GCC-4.6 build failure
de33c0e
- Remake GCC-4.4 build failure patch from 0.3.5-0.6:
de33c0e
  - use cvs to generate a proper patch
de33c0e
  - name it properly
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
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
3eec08d
* Fri May 23 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