dd169bf
Name:           nazghul
eca84e6
Version:        0.7.1
71571b0
Release:        33.20120228gitb0a402a%{?dist}
dd169bf
Summary:        A computer role-playing game (CRPG) engine
dd169bf
97aca6d
License:        GPLv2+
8e8f44e
URL:            http://sourceforge.net/projects/nazghul/
5b941e2
15f6b7b
# Occasionally upstream names things with an underscore.
070e45b
%global         version_us %(echo %{version} | sed -e 's/\\./_/g')
07826fe
15f6b7b
# Construct cvs checkout tarball with:
8e8f44e
#  ./nazghul-make-snapshot %%{cvsdate}
95803a4
Source0:        nazghul-20120228gitb0a402a.txz
043d1e4
Source1:        haxima-music-license
d178648
# Since xcftools is orphaned, this was converted manually from haxima.xcf.  If
d178648
# there is ever an update, upstream will hopefully include this icon in the
d178648
# tarball.
d178648
Source2:        haxima.png
6ef02cd
Patch0:         nazghul-desktop.patch
8e8f44e
Patch1:         nazghul-format-security.patch
3474ccc
Patch2:         nazghul-armbuild.patch
5b941e2
15f6b7b
# For building from a CVS snapshot
be0c213
BuildRequires: make
ec6b680
BuildRequires:  automake, autoconf, gcc-c++
91c75fb
BuildRequires:  SDL_image-devel, SDL_mixer-devel, desktop-file-utils
d178648
BuildRequires:  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
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
8e8f44e
%autosetup -p1 -n %{name}
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
f8ec11b
export CFLAGS="-std=c++14 $RPM_OPT_FLAGS"
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
0401519
desktop-file-install \
043d1e4
    --dir %{buildroot}/%{_datadir}/applications \
043d1e4
    --add-category X-Fedora                     \
043d1e4
    haxima.desktop
dd169bf
d178648
install -D -m 644 %SOURCE2 %{buildroot}/%{_datadir}/pixmaps/haxima.png
dd169bf
Richard Hughes 62f7f70
# Register as an application to be visible in the software center
Richard Hughes 62f7f70
#
Richard Hughes 62f7f70
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 62f7f70
# project, translated and installed into the right place during `make install`.
Richard Hughes 62f7f70
#
Richard Hughes 62f7f70
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 62f7f70
#
Richard Hughes 62f7f70
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 62f7f70
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/haxima.appdata.xml <
Richard Hughes 62f7f70
Richard Hughes 62f7f70
Richard Hughes 62f7f70
Richard Hughes 62f7f70
BugReportURL: https://sourceforge.net/p/nazghul/support-requests/5/
Richard Hughes 62f7f70
SentUpstream: 2014-09-24
Richard Hughes 62f7f70
-->
Richard Hughes 62f7f70
<application>
Richard Hughes 62f7f70
  <id type="desktop">haxima.desktop</id>
Richard Hughes 62f7f70
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 62f7f70
  <summary>Top view 2D role playing game</summary>
Richard Hughes 62f7f70
  <description>
Richard Hughes 62f7f70
    

Richard Hughes 62f7f70
      Haxima is a 2D role playing game (RPG) that runs on the Nazghul engine.
Richard Hughes 62f7f70
      You start out as a defenseless wanderer, you have to equip yourself,
Richard Hughes 62f7f70
      learn spells, and travel the land completing quests.
Richard Hughes 62f7f70
    

Richard Hughes 62f7f70
  </description>
Richard Hughes 62f7f70
  <url type="homepage">http://myweb.cableone.net/gmcnutt/nazghul.html</url>
Richard Hughes 62f7f70
  <screenshots>
Richard Hughes 62f7f70
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/a.png</screenshot>
Richard Hughes 62f7f70
    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/b.png</screenshot>
Richard Hughes 62f7f70
  </screenshots>
Richard Hughes 62f7f70
</application>
Richard Hughes 62f7f70
EOF
043d1e4
dd169bf
%files
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
%{_bindir}/haxima
dd169bf
%{_datadir}/nazghul/haxima
Richard Hughes 62f7f70
%{_datadir}/appdata/*.appdata.xml
0401519
%{_datadir}/applications/*haxima.desktop
dd169bf
%{_datadir}/pixmaps/haxima.png
043d1e4
%doc USERS_GUIDE haxima-music-license
dd169bf
dd169bf
dd169bf
%changelog
71571b0
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-33.20120228gitb0a402a
71571b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
71571b0
85032a8
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-32.20120228gitb0a402a
85032a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
85032a8
8b014e2
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-31.20120228gitb0a402a
8b014e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
8b014e2
478baaa
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-30.20120228gitb0a402a
478baaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
478baaa
0681438
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-29.20120228gitb0a402a
0681438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0681438
f8ec11b
* Tue Aug 18 2020 Jeff Law <law@redhat.com> - 0.7.1-28.20120228gitb0a402a
f8ec11b
- Force C++14 as this code is not C++17 ready
f8ec11b
28e8381
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-27.20120228gitb0a402a
28e8381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
28e8381
80c19dd
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-26.20120228gitb0a402a
80c19dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
80c19dd
72d0fc0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-25.20120228gitb0a402a
72d0fc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
72d0fc0
a1eceee
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-24.20120228gitb0a402a
a1eceee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a1eceee
d178648
* Mon Dec 17 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-23.20120228gitb0a402a
d178648
- Stop using xcf2png because it's been orphaned.
d178648
9aa6f2c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-22.20120228gitb0a402a
9aa6f2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9aa6f2c
7c6ef32
* Sun Feb 18 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-21.20120228gitb0a402a
7c6ef32
- Add g++ build dependency.
7c6ef32
8fa8c60
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-20.20120228gitb0a402a
8fa8c60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8fa8c60
42a67bb
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-19.20120228gitb0a402a
42a67bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
42a67bb
9c5b985
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-18.20120228gitb0a402a
9c5b985
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9c5b985
91b9aaa
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-17.20120228gitb0a402a
91b9aaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
91b9aaa
237d011
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-16.20120228gitb0a402a
237d011
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
237d011
88df562
* Mon Jan 25 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-15.20120228gitb0a402a
88df562
- Remove pointless %%defattr statements.
88df562
070e45b
* Fri Dec 25 2015 Jason L Tibbitts III <tibbs@math.uh.edu>
070e45b
- Change %%define to %%global.
070e45b
4789cb0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-14.20120228gitb0a402a
4789cb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4789cb0
cae2f0b
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.7.1-13.20120228gitb0a402a
cae2f0b
- Rebuilt for GCC 5 C++11 ABI change
cae2f0b
Richard Hughes 62f7f70
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.7.1-12.20120228gitb0a402a
Richard Hughes 62f7f70
- Add an AppData file for the software center
Richard Hughes 62f7f70
91c75fb
* Sat Feb 21 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-11.20120228gitb0a402a
91c75fb
- Generate a 256x256 icon from the included XCF to fix bug 1157591.
91c75fb
3474ccc
* Sat Feb 21 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-10.20120228gitb0a402a
3474ccc
- Fix build on ARM.
3474ccc
8e8f44e
* Sat Feb 21 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.1-9.20120228gitb0a402a
8e8f44e
- Fix format-security errors.
8e8f44e
- Fix upstream URL.
8e8f44e
a5e2b08
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-8.20120228gitb0a402a
a5e2b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a5e2b08
4fcfc37
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-7.20120228gitb0a402a
4fcfc37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4fcfc37
f598452
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-6.20120228gitb0a402a
f598452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f598452
0401519
* Mon Apr 29 2013 Jon Ciesla <limburgher@gmail.com> - 0.7.1-5.20120228gitb0a402a
0401519
- Drop desktop vendor tag.
0401519
b1535dc
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-4.20120228gitb0a402a
b1535dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b1535dc
0e86dff
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3.20120228gitb0a402a
0e86dff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e86dff
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