dd169bf
Name:           nazghul
eca84e6
Version:        0.7.1
95803a4
Release:        2.20120228gitb0a402a%{?dist}
dd169bf
Summary:        A computer role-playing game (CRPG) engine
dd169bf
97aca6d
License:        GPLv2+
dd169bf
URL:            http://myweb.cableone.net/gmcnutt/nazghul.html
043d1e4
Group:          Amusements/Games
5b941e2
15f6b7b
# Occasionally upstream names things with an underscore.
07826fe
%define         version_us %(echo %{version} | sed -e 's/\\./_/g')
07826fe
95803a4
#Source0:        nazghul-20120228gitb0a402a.txz
15f6b7b
15f6b7b
# Construct cvs checkout tarball with:
043d1e4
#  ./nazghul-make-snapshot %{cvsdate}
95803a4
Source0:        nazghul-20120228gitb0a402a.txz
043d1e4
Source1:        haxima-music-license
6ef02cd
Patch0:         nazghul-desktop.patch
5b941e2
15f6b7b
# For building from a CVS snapshot
15f6b7b
BuildRequires:  automake, autoconf
343f796
BuildRequires:  SDL_image-devel, SDL_mixer-devel, desktop-file-utils, libpng-devel
dd169bf
dd169bf
%description
dd169bf
Nazghul is an old-school RPG engine modeled after those made in the
dd169bf
heyday of top-down, 2d tile-based graphics. It is specifically modeled
dd169bf
after Ultima V.
dd169bf
dd169bf
343f796
%package -n haxima
6ef02cd
Summary:        A full-featured role-playing game for the Nazghul engine
043d1e4
# The music files installed in /usr/share/nazghul/haxima/music have been
043d1e4
# relicensed as CC-BY-SA (specifically version 2).   See the
043d1e4
# haxima-music-license file for details. The rest of the package is GPLv2+.
043d1e4
License:        GPLv2+ and CC-BY-SA
6ef02cd
Group:          Amusements/Games
6ef02cd
Requires:       nazghul = %{version}
343f796
Provides:       nazghul-haxima = %{version}-%{release}
343f796
Obsoletes:      nazghul-haxima < 0.6.0-8
dd169bf
343f796
%description -n haxima
dd169bf
A complete, playable and full-featured role playing game which runs
dd169bf
under the Nazghul CRPG engine.
dd169bf
dd169bf
You must install Nazghul in order to play Haxima.
dd169bf
dd169bf
dd169bf
%prep
15f6b7b
%setup -q -n %{name}
cfb4f1a
%patch0 -b .orig
6ef02cd
6ef02cd
# clean up CVS directories left in the source tarball
6ef02cd
find . -depth -type d -name CVS -exec rm -rf {} \;
6ef02cd
6ef02cd
# Fix line endings
6ef02cd
sed -i -e 's/\r//' doc/engine_extension_and_design/my_TODO.2004.05.05.txt
6ef02cd
b76f1c3
mv doc/* .
dd169bf
043d1e4
cp %SOURCE1 .
043d1e4
dd169bf
dd169bf
%build
15f6b7b
./autogen.sh
dd169bf
%configure
dd169bf
make %{?_smp_mflags}
dd169bf
dd169bf
dd169bf
%install
343f796
make install DESTDIR=%{buildroot}
dd169bf
343f796
mv %{buildroot}/%{_bindir}/haxima.sh %{buildroot}/%{_bindir}/haxima
dd169bf
043d1e4
desktop-file-install --vendor fedora            \
043d1e4
    --dir %{buildroot}/%{_datadir}/applications \
043d1e4
    --add-category X-Fedora                     \
043d1e4
    haxima.desktop
dd169bf
343f796
install -D -m 644 icons/haxima.png %{buildroot}/%{_datadir}/pixmaps/haxima.png
dd169bf
043d1e4
dd169bf
%files
dd169bf
%defattr(-,root,root,-)
dd169bf
%{_bindir}/nazghul
dd169bf
%dir %{_datadir}/nazghul
560f742
%doc AUTHORS ChangeLog COPYING NEWS GAME_RULES GHULSCRIPT
b76f1c3
%doc MAP_HACKERS_GUIDE engine_extension_and_design world_building
dd169bf
dd169bf
343f796
%files -n haxima
dd169bf
%defattr(-,root,root,-)
dd169bf
%{_bindir}/haxima
dd169bf
%{_datadir}/nazghul/haxima
dd169bf
%{_datadir}/applications/fedora-haxima.desktop
dd169bf
%{_datadir}/pixmaps/haxima.png
043d1e4
%doc USERS_GUIDE haxima-music-license
dd169bf
dd169bf
dd169bf
%changelog
95803a4
* Tue Feb 28 2012 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-2.20120228gitb0a402a
95803a4
- Upstream switched to git.
95803a4
- Update to latest snapshot.
95803a4
eca84e6
* Wed Feb 01 2012 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-1.20120104cvs
eca84e6
- The package version actually incremented between the previous snapshot and
eca84e6
  this one, so update to reflect that.  There have been no upstream changes
eca84e6
  since October, 2011.
eca84e6
560f742
* Wed Jan 04 2012 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.0-4.20120104cvs
560f742
- Update to current CVS, fixing  many compiler warnings.
560f742
- Don't install the INSTALL file.
560f742
- Small spec cleanups.
560f742
7efd291
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.7.0-3.20100413cvs
7efd291
- Rebuild for new libpng
7efd291
a5c4f08
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2.20100413cvs
a5c4f08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a5c4f08
043d1e4
* Tue Aug 17 2010 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.0-1.20100413cvs
043d1e4
- Update to post-0.7.0 release.
043d1e4
- Remove %%clean section; no longer required in Fedora.
043d1e4
- The music is now freely licensed!  Install the license file properly and
043d1e4
  document the change.
043d1e4
343f796
* Tue Sep 29 2009 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.0-0.4.20090928cvs
343f796
- Pull latest fixes.
343f796
343f796
* Tue Sep 22 2009 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.0-0.3.20090918cvs
343f796
- Modernize the spec a bit; nuke BuildRoot:, no more RPM_BUILD_ROOT.
343f796
343f796
* Fri Sep 18 2009 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.0-0.2.20090918cvs
343f796
- New CVS snapshot; hopefully fix x86_64 startup crash and music issues.
343f796
343f796
* Thu Sep 10 2009 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.0-0.1.20090910cvs
343f796
- Initial attempt to rebase to current CVS.
343f796
- Update to use xz for compression of snapshot tarballs.
343f796
- Rename "nazghul-haxima" package to "haxima", according to upstream wishes and
343f796
  common sense.
343f796
ad51c09
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-7.20080407cvs
ad51c09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ad51c09
670110b
* Tue Apr 14 2009 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.6.0-6.20080407cvs
cfb4f1a
- Tweak desktop file with proper categories (bug 485358) and fixes for other
cfb4f1a
  desktop-file-install complaints.
cfb4f1a
297236e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5.20080407cvs
297236e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
297236e
96e3e62
* Mon Apr 07 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.6.0-4.20080407cvs
96e3e62
- Bump to latest CVS snapshot.
96e3e62
15f6b7b
* Thu Mar 13 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.6.0-3.20080312cvs
15f6b7b
- Bump to current CVS version at upstream request.
15f6b7b
- Add CVS snapshot generation instructions.
15f6b7b
- Install the music which "make install" misses.
15f6b7b
648a4a6
* Sun Feb 10 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.6.0-2
648a4a6
- Rebuild for gcc 4.3.
648a4a6
07826fe
* Mon Nov 05 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.6.0-1
07826fe
- Update to 0.6.0.
07826fe
6ef02cd
* Wed Aug 22 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.6-4
6ef02cd
- Patch upstream .desktop file for proper use of Version.
6ef02cd
- Remove some errant CVS directories.
6ef02cd
- Fix an end-of-line encoding.
6ef02cd
- Minor spec cleanup.
6ef02cd
97aca6d
* Tue Aug 21 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.6-3
97aca6d
- License is GPLv2+.
97aca6d
- Bump for rebuild.
97aca6d
2b8a93a
* Tue May 29 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.6-2
2b8a93a
- Bump release.
2b8a93a
1f59fb7
* Thu Jan 18 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.6-0.1.rc1
1f59fb7
- Bump to 0.5.6rc1.
1f59fb7
438f3bc
* Sat Dec 16 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.5-3
438f3bc
- Force a link against libpng since SDL_image only loads it at runtime.
438f3bc
ad2b251
* Fri Dec 15 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.5-2
ad2b251
- Add libpng-devel build dependency.
ad2b251
fec90e1
* Fri Dec 15 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.5-1
fec90e1
- Update to 0.5.5.
fec90e1
6391550
* Thu Aug 31 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.4-2
6391550
- Rebuild.
6391550
4fd240b
* Thu Jun 29 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.4-1
4fd240b
- Update to 0.5.4 release.
4fd240b
5b941e2
* Wed Jun 28 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.3-6
5b941e2
- Update to CVS snapshot in preparation for the new release.
5b941e2
cefe1d9
* Thu Jun  8 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.3-5
cefe1d9
- Add fix for crash when attacking diagonally in the wilderness.
cefe1d9
b76f1c3
* Tue Feb 14 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.3-4
b76f1c3
- More 64bit fixes.
b76f1c3
- Package additional documentation.
b76f1c3
f5a2ddb
* Mon Feb 13 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.3-3
f5a2ddb
- Add some 64-bit cleanliness fixes.
f5a2ddb
dd169bf
* Tue Feb  7 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.3-2
dd169bf
- Incorporate some review suggestions
dd169bf
- Patch bug with generation of haxima.sh.
dd169bf
dd169bf
* Sun Feb  5 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.3-1
dd169bf
- Update to 0.5.3
dd169bf
dd169bf
* Sat Jan 28 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.5.2-1
dd169bf
- Initial attempt