File barony.spec of Package barony

#
# spec file for package barony
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
# Copyright (c) 2025 SUSE LLC
#
# 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 http://bugs.opensuse.org/
#


Name:           barony
Version:        3.3.7
Release:        0
Summary:        A 3D, first-person roguelik game
License:        GPL-3.0-only
Group:          Amusements/Games/3D/Other
URL:            http://www.baronygame.com/
Source:         https://github.com/TurningWheel/Barony/archive/v%{version}.tar.gz
Patch0:         barony-fix-build.patch
BuildRequires:  cmake
BuildRequires:  cmake(OpenAL)
BuildRequires:  cmake(RapidJSON)
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_image) >= 2.0.0
BuildRequires:  pkgconfig(SDL2_net)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(physfs)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(zlib)

%description
Barony is a 3D, first-person roguelike that brings back the cryptic and
intricate designs of classic roguelikes such as Nethack and melds them
with RPGs like Ultima Underworld, System Shock, and Daggerfall.
Challenge is the calling card of this hard-boiled dungeon-crawler.

NOTE: To play Barony you need the original data files from your
GOG/Steam/CD-ROM installation of the game.

%prep
%setup -q -n Barony-%{version}
%patch -P 0 -p1

%build
%cmake -DOPENAL_ENABLED=ON
%make_jobs

%install
%cmake_install
mv %{buildroot}%{_bindir}/editor %{buildroot}%{_bindir}/barony-editor

%files
%license LICENSE.txt
%doc CONTRIBUTING.md EDITING.txt gamecontrollerdb.txt GPL.3.0.txt
%license GPL.3.0.txt LICENSE.txt
%{_bindir}/barony
%{_bindir}/barony-editor
%dir %{_datadir}/barony
%dir %{_datadir}/barony/lang
%{_datadir}/barony/lang/en.ttf
%{_datadir}/barony/lang/en.txt

%changelog
openSUSE Build Service is sponsored by