File xu4.spec of Package xu4
Name: xu4
Version: 1.4.3
Release: 0
Summary: Ultima IV Recreated
License: GPL-3.0-or-later
Group: Amusements/Games/RPG
URL: https://xu4.sourceforge.net/
Source0: https://sourceforge.net/projects/xu4/files/xu4/1.4/%{name}-%{version}.tar.gz
# Ultima 4 VGA Upgrade
Source1: https://downloads.sourceforge.net/xu4/Ultima%204%20VGA%20Upgrade/1.3/u4upgrad.zip
BuildRequires: boron-devel
BuildRequires: faun-devel
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
BuildRequires: zlib-devel
BuildRequires: pkgconfig(xcursor)
BuildRequires: libpng12-compat-devel
%description
XU4 is a recreation of the classic computer game Ultima IV. The
purpose of the project is to make it easy and convenient to play on
modern operating systems. xu4 is primarily inspired by the much more
ambitious project Exult. Linux is the primary development platform,
but it should be trivial to port to any system with SDL support.
XU4 isn't a new game based on the Ultima IV story -- it is a faithful
recreation of the old game, right up to the crappy graphics. If you
are looking for a game with modern gameplay and graphics, this is not
it -- yet. New features that improve the gameplay and keep with the
spirit of the original game will be added.
NOTE:
The ultima4.zip (or ultima4-1.01.zip) must be installed manually into
~/.local/share/xu4/
%prep
%autosetup
%build
%make_build src/xu4
boron -s tools/pack-xu4.b -f module/render -o render.pak
boron -s tools/pack-xu4.b module/Ultima-IV
boron -s tools/pack-xu4.b module/U4-Upgrade
%install
install -Dm 0755 src/xu4 %{buildroot}%{_bindir}/xu4
install -Dm 0644 icons/shield.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/xu4.png
install -Dm 0644 dist/xu4.desktop %{buildroot}%{_datadir}/applications/xu4.desktop
install -d %{buildroot}%{_datadir}/xu4/
install -m 0644 Ultima-IV.mod U4-Upgrade.mod render.pak %{buildroot}%{_datadir}/xu4/
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/xu4/
%files
%license COPYING
%doc README.md ChangeLog doc/FileFormats.md doc/tools.txt
%{_bindir}/xu4
%dir %{_datadir}/xu4
%{_datadir}/icons/hicolor/48x48/apps/xu4.png
%{_datadir}/applications/xu4.desktop
%{_datadir}/xu4/render.pak
%{_datadir}/xu4/Ultima-IV.mod
%{_datadir}/xu4/U4-Upgrade.mod
%{_datadir}/xu4/u4upgrad.zip
%changelog