File signus.spec of Package signus

#
# spec file for package signus
#
# 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 https://bugs.opensuse.org/
#


%define major   1.96
Name:           signus
Version:        1.96.1
Release:        0
Summary:        Turn-based strategy game
License:        GPL-2.0-only
Group:          Amusements/Games/Strategy/Turn Based
URL:            https://github.com/signus-game/signus
Source:         %{url}/releases/download/v%{version}/signus-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(x11)
Requires:       signus-data >= %{major}

%description
Classic turn-based strategy war game similar to the old Battle Isle series.

%prep
%setup -q

%build
# Required for gcc11, see: https://github.com/signus-game/signus/releases/tag/v1.96.0
export CXXFLAGS="%{optflags} -std=c++11"
%configure
%make_build

%install
%make_install
rm %{buildroot}%{_datadir}/doc/signus/README.txt

%files
%license COPYING
%doc README.txt
%{_bindir}/signus
%dir %{_datadir}/signus
%dir %{_datadir}/signus/%{major}
%{_datadir}/signus/%{major}/default_signus.ini

%changelog
openSUSE Build Service is sponsored by