Group :: Games/Other
RPM: nazghul
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Games/Other
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install libSDL-devel perl(FileHandle.pm) perl(SDL/Rect.pm) perl(SDL/Surface.pm)
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: nazghul
Version: 0.7.1
Release: alt2_29.20120228gitb0a402a
Summary: A computer role-playing game (CRPG) engine
License: GPLv2+
URL: http://sourceforge.net/projects/nazghul/
# Occasionally upstream names things with an underscore.
%global version_us %(echo %{version} | sed -e 's/\\./_/g')
# Construct cvs checkout tarball with:
# ./nazghul-make-snapshot %%{cvsdate}
Source0: nazghul-20120228gitb0a402a.txz
Source1: haxima-music-license
# Since xcftools is orphaned, this was converted manually from haxima.xcf. If
# there is ever an update, upstream will hopefully include this icon in the
# tarball.
Source2: haxima.png
Patch0: nazghul-desktop.patch
Patch1: nazghul-format-security.patch
Patch2: nazghul-armbuild.patch
# For building from a CVS snapshot
BuildRequires: automake, autoconf, gcc-c++
BuildRequires: libSDL_image-devel, libSDL_mixer-devel, desktop-file-utils
BuildRequires: libpng-devel
Source44: import.info
%description
Nazghul is an old-school RPG engine modeled after those made in the
heyday of top-down, 2d tile-based graphics. It is specifically modeled
after Ultima V.
%package -n haxima
Group: Games/Other
Summary: A full-featured role-playing game for the Nazghul engine
# The music files installed in /usr/share/nazghul/haxima/music have been
# relicensed as CC-BY-SA (specifically version 2). See the
# haxima-music-license file for details. The rest of the package is GPLv2+.
License: GPLv2+ and CC-BY-SA
Requires: nazghul = %{version}
Provides: nazghul-haxima = %{version}-%{release}
Obsoletes: nazghul-haxima < 0.6.0-8
%description -n haxima
A complete, playable and full-featured role playing game which runs
under the Nazghul CRPG engine.
You must install Nazghul in order to play Haxima.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
# clean up CVS directories left in the source tarball
find . -depth -type d -name CVS -exec rm -rf {} \;
# Fix line endings
sed -i -e 's/\r//' doc/engine_extension_and_design/my_TODO.2004.05.05.txt
mv doc/* .
cp %SOURCE1 .
%build
export CFLAGS="-std=c++14 $RPM_OPT_FLAGS"
./autogen.sh
%configure
%make_build
%install
make install DESTDIR=%{buildroot}
mv %{buildroot}/%{_bindir}/haxima.sh %{buildroot}/%{_bindir}/haxima
desktop-file-install \
--dir %{buildroot}/%{_datadir}/applications \
haxima.desktop
install -D -m 644 %SOURCE2 %{buildroot}/%{_datadir}/pixmaps/haxima.png
# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/haxima.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
<!--
BugReportURL: https://sourceforge.net/p/nazghul/support-requests/5/
SentUpstream: 2014-09-24
-->
<application>
<id type="desktop">haxima.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<summary>Top view 2D role playing game</summary>
<description>
<p>
Haxima is a 2D role playing game (RPG) that runs on the Nazghul engine.
You start out as a defenseless wanderer, you have to equip yourself,
learn spells, and travel the land completing quests.
</p>
</description>
<url type="homepage">http://myweb.cableone.net/gmcnutt/nazghul.html</url>
<screenshots>
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/a.png</screenshot>
<screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/b.png</screenshot>
</screenshots>
</application>
EOF
%files
%{_bindir}/nazghul
%dir %{_datadir}/nazghul
%doc AUTHORS ChangeLog COPYING NEWS GAME_RULES GHULSCRIPT
%doc MAP_HACKERS_GUIDE engine_extension_and_design world_building
%files -n haxima
%{_bindir}/haxima
%{_datadir}/nazghul/haxima
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*haxima.desktop
%{_datadir}/pixmaps/haxima.png
%doc USERS_GUIDE haxima-music-license
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install libSDL-devel perl(FileHandle.pm) perl(SDL/Rect.pm) perl(SDL/Surface.pm)
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: nazghul
Version: 0.7.1
Release: alt2_29.20120228gitb0a402a
Summary: A computer role-playing game (CRPG) engine
License: GPLv2+
URL: http://sourceforge.net/projects/nazghul/
# Occasionally upstream names things with an underscore.
%global version_us %(echo %{version} | sed -e 's/\\./_/g')
# Construct cvs checkout tarball with:
# ./nazghul-make-snapshot %%{cvsdate}
Source0: nazghul-20120228gitb0a402a.txz
Source1: haxima-music-license
# Since xcftools is orphaned, this was converted manually from haxima.xcf. If
# there is ever an update, upstream will hopefully include this icon in the
# tarball.
Source2: haxima.png
Patch0: nazghul-desktop.patch
Patch1: nazghul-format-security.patch
Patch2: nazghul-armbuild.patch
# For building from a CVS snapshot
BuildRequires: automake, autoconf, gcc-c++
BuildRequires: libSDL_image-devel, libSDL_mixer-devel, desktop-file-utils
BuildRequires: libpng-devel
Source44: import.info
%description
Nazghul is an old-school RPG engine modeled after those made in the
heyday of top-down, 2d tile-based graphics. It is specifically modeled
after Ultima V.
%package -n haxima
Group: Games/Other
Summary: A full-featured role-playing game for the Nazghul engine
# The music files installed in /usr/share/nazghul/haxima/music have been
# relicensed as CC-BY-SA (specifically version 2). See the
# haxima-music-license file for details. The rest of the package is GPLv2+.
License: GPLv2+ and CC-BY-SA
Requires: nazghul = %{version}
Provides: nazghul-haxima = %{version}-%{release}
Obsoletes: nazghul-haxima < 0.6.0-8
%description -n haxima
A complete, playable and full-featured role playing game which runs
under the Nazghul CRPG engine.
You must install Nazghul in order to play Haxima.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
# clean up CVS directories left in the source tarball
find . -depth -type d -name CVS -exec rm -rf {} \;
# Fix line endings
sed -i -e 's/\r//' doc/engine_extension_and_design/my_TODO.2004.05.05.txt
mv doc/* .
cp %SOURCE1 .
%build
export CFLAGS="-std=c++14 $RPM_OPT_FLAGS"
./autogen.sh
%configure
%make_build
%install
make install DESTDIR=%{buildroot}
mv %{buildroot}/%{_bindir}/haxima.sh %{buildroot}/%{_bindir}/haxima
desktop-file-install \
--dir %{buildroot}/%{_datadir}/applications \
haxima.desktop
install -D -m 644 %SOURCE2 %{buildroot}/%{_datadir}/pixmaps/haxima.png
# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/haxima.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
<!--
BugReportURL: https://sourceforge.net/p/nazghul/support-requests/5/
SentUpstream: 2014-09-24
-->
<application>
<id type="desktop">haxima.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<summary>Top view 2D role playing game</summary>
<description>
<p>
Haxima is a 2D role playing game (RPG) that runs on the Nazghul engine.
You start out as a defenseless wanderer, you have to equip yourself,
learn spells, and travel the land completing quests.
</p>
</description>
<url type="homepage">http://myweb.cableone.net/gmcnutt/nazghul.html</url>
<screenshots>
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/a.png</screenshot>
<screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/haxima/b.png</screenshot>
</screenshots>
</application>
EOF
%files
%{_bindir}/nazghul
%dir %{_datadir}/nazghul
%doc AUTHORS ChangeLog COPYING NEWS GAME_RULES GHULSCRIPT
%doc MAP_HACKERS_GUIDE engine_extension_and_design world_building
%files -n haxima
%{_bindir}/haxima
%{_datadir}/nazghul/haxima
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*haxima.desktop
%{_datadir}/pixmaps/haxima.png
%doc USERS_GUIDE haxima-music-license
%changelog
…
Full changelog you can see here