File arx-libertatis.spec of Package arx-libertatis

# spec file for package arx-libertatis, arx, arxunpak, arxsavetool and arxcrashreporter
# Copyright (c) 2012-2013 Daniel Scharrer <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           arx-libertatis
Version:        1.1.2
Release:        0
License:        GPL-3.0+
Summary:        Cross-platform port of Arx Fatalis, a first-person role-playing game
Group:          Amusements/Games/RPG
Source:         %{name}-%{version}.tar.xz
Patch0:         0001-CMake-Disable-variable-expansion-for-quoted-strings-.patch
Patch1:         0002-CMake-Add-missing-include.patch
Patch2:         0003-CMake-Fix-build-with-newer-CMake-versions.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  c++_compiler
BuildRequires:  gcc-c++
BuildRequires:  cmake >= 2.8
BuildRequires:  boost-devel >= 1.39
BuildRequires:  zlib-devel
BuildRequires:  SDL-devel >= 1.2
%if 0%{?suse_version}
BuildRequires:  freetype2-devel
BuildRequires:  freetype-devel
BuildRequires:  openal-devel
BuildRequires:  pkgconfig(gl)
BuildRequires:  glew-devel >= 1.5.2
BuildRequires:  pkgconfig(Qt5Core) >= 5.0.0
BuildRequires:  pkgconfig(Qt5Concurrent) >= 5.0.0
BuildRequires:  pkgconfig(Qt5Gui) >= 5.0.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.0.0
BuildRequires:  pkgconfig(Qt5Network) >= 5.0.0
BuildRequires:  xz
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1010
Recommends:     arxcrashreporter
Suggests:       arxunpak
Suggests:       arxsavetool
Suggests:       innoextract
# TODO Fedora doesn't know these tags yet as of Fedora 19
# Drop the hard dependency once we have a sane way to specify the optional one
Requires:       arxcrashreporter
Summary:        Cross-platform port of Arx Fatalis, a first-person role-playing game
Group:          Amusements/Games/RPG
Cross-platform port of Arx Fatalis, a first-person role-playing game.
This package only includes the game executable - you will also need
the data files from the original game.

%package -n arxunpak
Summary:        Tool to extract the Arx Fatalis .pak files containing the game assets
Group:          Productivity/Archiving/Compression
%description -n arxunpak
Tool to extract the .pak files containing the game assets of the original Arx Fatalis.

This is not required to run Arx Libertatis but can be useful for development.

%package -n arxsavetool
Summary:        Tool to inspect and modify Arx Libertatis save files
Group:          Development/Tools/Other
%description -n arxsavetool
Tool to inspect and modify Arx Libertatis save files. Allows to extract
individual files from save file containers and re-pack them. Also allows
listing the information contained in save files and fixing some errors caused
by broken versions of the game.

%package -n arxcrashreporter
Summary:        Arx Libertatis crash reporter
Group:          Development/Tools/Debuggers
Requires:       gdb
%description -n arxcrashreporter
A GUI tool to report detailed information to
if Arx Libertatis crashes.

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%cmake \
	-DCMAKE_INSTALL_LIBEXECDIR="%{_libexecdir}" \
%if 0%{?sle_version} >= 150100 || 0%{?mageia} >= 8 || 0%{?fedora_version} >= 33
%if 0%{?suse_version}
make %{?_smp_mflags}

%if 0%{?suse_version} || 0%{?mageia} >= 8 || 0%{?fedora_version} >= 33
%if 0%{?mageia}
%make_install -C build
%if 0%{?suse_version}
%suse_update_desktop_file %name


%files -n arxunpak

%files -n arxsavetool

%files -n arxcrashreporter

echo "This package only installs the game binary."
echo "You will also need the demo or full game data."
echo "See for more information."


* Thu Oct 17 2013 Daniel Scharrer <> 1.1.2
- Bump version to 1.1.2 (new upstream release):
- Fixed a crash when hovering over map markers after the window was resized
* Wed Jul 17 2013 Daniel Scharrer <> 1.1.1
- Bump version to 1.1.1 (new upstream release):
- Fixed map marker labels not being saved
* Sun Jul 14 2013 Daniel Scharrer <> 1.1
- Bump version to 1.1 (new upstream release):
- Added support for multiple simultaneous data directories
- Improved error messages for missing data files
- Added an error dialog if the user directory could not be created
- Enabled up to 8xMSAA (if supported) with the SDL/OpenGL backend
- Added universal GUI+CLI data install script to packages
- Translated the .desktop file to French, German and Russian
- Fixed Am Shaegar accelerating too much during slow frames
- Increased jump distance to fix some jumps that have become too hard
- Replaced DevIL with stb_image for image loading
- Fixed improper handling of set-but-empty $XDG_* variables
- Merged remaining fixes from Nuky's arx-fatalis-fixed
- Fixed minimap showing a smaller area on higher resolutions
- Removed dependency on Boost.Program_options - Boost is now only needed
  at build-time. We tried to keep the same command-line argument syntax
  but there might be slight changes in corner cases.
- Changed to always create a user/config directory in the user's in home
  directory unless explicitly changed with the --user-dir and/or --config-dir
  options or registry keys. Previously, if no data and user directories
  were found, the current working directory was used as the user directory.
- Added /opt as a system data directory prefix (besides $XDG_DATA_DIRS)
- Added arx as a system data directory suffix (besides games/arx)
- Added the executable directory as a system data directory
- Enabled C++11 mode for GNU-compatible compilers, if supported
- Various bug fixes and tweaks
* Thu Jul 31 2012 Daniel Scharrer <> 1.0.3
- Bump version to 1.0.3:
- Fixed minor rendering glitches
- Fixed missing speech in cinematics for the Russian and Italian versions
- Fixed missing ambient sound effects
- Include attribute modifiers when calculating the effective object knowledge
  and projectile skills
- Savegames can now be deleted from the save and load menus
* Thu Jun 14 2012 Daniel Scharrer <> 1.0.2
- bump version to 1.0.2:
- Fixed various crashes
- Fixed disappearing items when sorting the inventory
- Fixed minor rendering and input bugs
- Fixed spanish version
* Sun Apr 22 2012 Daniel Scharrer <> 1.0.1
- bump version to 1.0.1:
- Fixed garbled text rendering in the Russian version (upstream bug #226)
- Fixed a crash in the critical error dialog on some Linux systems
  (upstream crash report #229)
- Loading files from the 'graph' and 'misc' directories is now case-insensitive
* Sun Mar 26 2012 Daniel Scharrer <> 1.0
- created package