File arx-libertatis.spec of Package arx-libertatis

# spec file for arx-libertatis
# Copyright (c) 2012-2019 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

# The blender plugin requires python 3
%define __python %{__python3}

Name:           arx-libertatis
Version:        1.1.9999+dev+2020.08.23
Release:        1%{?dist}
%if 0%{?suse_version}
License:        GPL-3.0+
License:        GPLv3+
Summary:        Cross-platform port of Arx Fatalis, a first-person role-playing game
%if 0%{?suse_version}
Group:          Amusements/Games/RPG
Group:          Amusements/Games
%if 0%{?suse_version}
BuildRequires:  c++_compiler
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  boost-devel >= 1.48
BuildRequires:  glm-devel >=
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(sdl2) >= 2.0.0
BuildRequires:  pkgconfig(freetype2) >= 2.3.0
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(epoxy) >= 1.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(libcurl) >= 7.20.0
BuildRequires:  xz
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%if 0%{?mageia} != 6
BuildRequires:  blender-rpm-macros
BuildRequires:  blender
Recommends:     arxcrashreporter
Recommends:     arx-libertatis-tools
Conflicts:      arxcrashreporter < %{version}
Conflicts:      arxcrashreporter > %{version}-9999
Suggests:       innoextract
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 tools
Summary:        Arx Libertatis tools
%if 0%{?suse_version}
Group:          Productivity/Archiving/Compression
Group:          Applications/Archiving
Provides:       arxsavetool = %{version}
Provides:       arxunpak = %{version}
Conflicts:      arxsavetool < %{version}
Conflicts:      arxunpak < %{version}
Obsoletes:      arxsavetool < %{version}
Obsoletes:      arxunpak < %{version}
%description tools
Tools to work with Arx Fatalis data:

arxsavetool can inspect and extract .sav files containing saved game states.

arxunpak can 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 arxcrashreporter
Summary:        Arx Libertatis crash reporter
%if 0%{?suse_version}
Group:          Development/Tools/Debuggers
Group:          Development/Tools
Requires:       gdb
%description -n arxcrashreporter
A GUI tool to report detailed information to
if Arx Libertatis crashes.

%package -n libArxIO0
Summary:        Arx compression helper library
%if 0%{?suse_version}
Group:          System/Libraries
Group:          System Environment/Libraries
%description -n libArxIO0
Arx Fatalis compression helper library used by the Blender addon.

%package -n libArxIO-devel
Summary:        Arx compression helper library (development files)
%if 0%{?suse_version}
Group:          Development/Libraries/C and C++
Group:          Development/Libraries
Requires:       libArxIO0 = %{version}-%{release}
%description -n libArxIO-devel
Arx Fatalis compression helper library used by the Blender addon (development files).

%if 0%{?mageia} != 6
%package -n arx-blender-addon
Summary:        Arx Libertatis Blender addon
%if 0%{?suse_version}
Group:          Productivity/Graphics/3D Editors
Group:          Applications/Editors
Requires:       libArxIO0 >= %{version}-%{release}
Requires:       blender
Enhances:       blender
BuildArch:      noarch
%description -n arx-blender-addon
Blender addon to edit Arx Fatalis data files.

%setup -q -n arx-libertatis-1.2-dev-2020-08-23

%if 0%{?mageia} != 6
%cmake \
	-DCMAKE_INSTALL_LIBEXECDIR="%{_libexecdir}" \
	-DINSTALL_BLENDER_PLUGINDIR="%{blender_addons}/arx" \
	-DINSTALL_DATADIR="%{_datadir}/arx" \
%cmake \
	-DCMAKE_INSTALL_LIBEXECDIR="%{_libexecdir}" \
	-DINSTALL_DATADIR="%{_datadir}/arx" \
%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

%if 0%{?suse_version}
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps

%files tools

%files -n arxcrashreporter

%files -n libArxIO0

%files -n libArxIO-devel

%if 0%{?mageia} != 6
%files -n arx-blender-addon
%dir %{blender_addons}

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

%post -n libArxIO0 -p /sbin/ldconfig


%postun -n libArxIO0 -p /sbin/ldconfig

* Sun Aug 23 2020 Daniel Scharrer <> - 1.1.9999+dev+2020.08.23-1
- This is an automatically generated development snapshot!
- Improved Windows filesystem error handling
- Fixed a crash when trying to pickpocket an NPC without an inventory (bug #1485)
- Fixed a crash when no suitable OpenGL context could be created (bug #1378)

* Thu Oct 17 2013 Daniel Scharrer <> - 1.1.2-1
- 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-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-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

* Tue Jul 31 2012 Daniel Scharrer <> - 1.0.3-1
- 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-1
- 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-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

* Mon Mar 26 2012 Daniel Scharrer <> - 1.0-1
- created package