diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45c07e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +adonthell-0.3.5.tar.gz diff --git a/adonthell-gcc44.patch b/adonthell-gcc44.patch new file mode 100644 index 0000000..8080381 --- /dev/null +++ b/adonthell-gcc44.patch @@ -0,0 +1,38 @@ +diff -C 3 -r1.36 -r1.37 +*** src/dialog.cc 13 Oct 2007 19:47:25 -0000 1.36 +--- src/dialog.cc 1 Mar 2009 12:26:14 -0000 1.37 +*************** +*** 265,271 **** + { + u_int32 begin, end, len; + PyObject *result; +! char *tmp, *start, *mid, *str = NULL; + character *the_player = data::the_player; + string newstr (s); + +--- 265,272 ---- + { + u_int32 begin, end, len; + PyObject *result; +! const char *start; +! char *tmp, *mid, *str = NULL; + character *the_player = data::the_player; + string newstr (s); + +*************** +*** 318,324 **** + + // Error! + cout << "\n*** Error, unknown macro " << start << flush; +! start[0] = ' '; + } + + // execute python functions +--- 319,325 ---- + + // Error! + cout << "\n*** Error, unknown macro " << start << flush; +! newstr[newstr.length () - strlen (start)] = ' '; + } + + // execute python functions diff --git a/adonthell.spec b/adonthell.spec new file mode 100644 index 0000000..682ad72 --- /dev/null +++ b/adonthell.spec @@ -0,0 +1,131 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: adonthell +Version: 0.3.5 +Release: 0.6%{?dist} +Summary: A 2D graphical RPG game + +Group: Amusements/Games +License: GPLv2+ +URL: http://adonthell.linuxgames.com/ +Source0: http://download.savannah.gnu.org/releases/adonthell/adonthell-0.3.5.tar.gz +## Submitted upstream, will be in next release +# https://savannah.nongnu.org/bugs/index.php?25737 +Patch0: %{name}-gcc44.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-devel +BuildRequires: freetype-devel +BuildRequires: libxml2-devel +BuildRequires: libogg-devel +BuildRequires: libvorbis-devel +BuildRequires: SDL_mixer-devel +BuildRequires: SDL_ttf-devel +BuildRequires: libpng-devel +BuildRequires: swig +BuildRequires: doxygen +BuildRequires: graphviz + + +%description +A 2D, graphical, single player role playing game inspired by good old +console RPGs from the 16 bit console gaming era. + +This package contains the Adonthell engine. You will also need a game +package to play Adonthell. For this release, the official package is +Waste's Edge. + + +%package doc +Summary: API documentation for %{name} + +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +API documentation for %{name} generated by doxygen in HTML format. + + +%prep +%setup -q +# install locale files in the right place +sed -i 's|myconfig.gamedir + "/locale"|"%{_datadir}/locale"|' src/nls.cc +# remove hardcoded CFLAGS +sed -i 's|^CFLAGS|^#CFLAGS|g' configure +# build with GCC 4.4 +%patch0 -p0 + + +%build +%configure --enable-doc +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING FULLSCREEN.howto NEWBIE NEWS README +%{_bindir}/%{name} +%{_bindir}/%{name}-0.3 +%{_datadir}/%{name}/ + +%files doc +%doc doc/devel/html + + +%changelog +* Sun Mar 01 2009 Mathieu Bridon - 0.3.5-0.6 +- Fixed building with GCC 4.4 + +* Mon Feb 23 2009 Fedora Release Engineering - 0.3.5-0.5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Nov 30 2008 Ignacio Vazquez-Abrams - 0.3.5-0.4 +- Rebuild for Python 2.6 + +* Tue Jun 03 2008 Mathieu Bridon 0.3.5-0.3 +- added -p option to install + +* Sat May 31 2008 Mathieu Bridon 0.3.5-0.2 +- applied patch to configure instead of configure.in +- removed trademarks names from description +- removed explicit requires + +* Tue May 27 2008 Mathieu Bridon 0.3.5-0.1 +- switched to 0.3.5 release (includes bug fixes and fixes for building RPM for + fedora like pythin finding and errors with fedora specific flags) + +* Fri May 22 2008 Mathieu Bridon 0.3.4-0.8 +- fixed license tag (GPLv2 to GPLv2+) +- removed explicit requires +- fixed directories ownership + +* Thu Apr 17 2008 Mathieu Bridon 0.3.4-0.7 +- fixed building on 64 bits arch (/lib was hard coded in configure.in) + +* Fri Apr 04 2008 Mathieu Bridon 0.3.4-0.6 +- fixed typo in doc description + +* Fri Feb 22 2008 Mathieu Bridon 0.3.4-0.5 +- search for translations in the right place so that wastesedge +package can install them in the right place + +* Thu Feb 21 2008 Mathieu Bridon 0.3.4-0.4 +- separated the doc in a dedicated package + +* Thu Feb 21 2008 Mathieu Bridon 0.3.4-0.3 +- cleaned the spec file again + +* Thu Feb 21 2008 Mathieu Bridon 0.3.4-0.2 +- cleaned the spec file + +* Mon Feb 18 2008 Mathieu Bridon 0.3.4-0.1 +- first version of the SPEC file diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..a01850b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +64a344b1ed8a7808d7adafa337120a00 adonthell-0.3.5.tar.gz