File curseofwar.spec of Package curseofwar
#
# spec file for package curseofwar
#
# Copyright (c) 2020 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "sdl"
%bcond_without sdl
%else
%bcond_with sdl
%endif
Name: curseofwar
Version: 1.3.0
Release: 0
Summary: Real Time Strategy Game
License: GPL-3.0+
Group: Amusements/Games/Strategy/Real Time
URL: https://a-nikolaev.github.io/curseofwar/
Source: https://github.com/a-nikolaev/curseofwar/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: hicolor-icon-theme
%if %{with sdl}
BuildRequires: pkgconfig(sdl)
%else
BuildRequires: pkgconfig(ncurses)
%endif
%description
This is a fast-paced action real-time strategy game.
Unlike most RTS, you are not controlling units, but focus on high-level
strategic planning: Building infrastructure, securing resources,
and moving your armies.
The core game mechanics turns out to be quite close to WWI-WWII type of
warfare, however, there is no explicit reference to any historical period.
This is the text based version.
%if %{with sdl}
%package sdl
Summary: Real Time Strategy Game
Group: Amusements/Games/Strategy/Real Time
%description sdl
This is a fast-paced action real-time strategy game.
Unlike most RTS, you are not controlling units, but focus on high-level
strategic planning: Building infrastructure, securing resources,
and moving your armies.
The core game mechanics turns out to be quite close to WWI-WWII type of
warfare, however, there is no explicit reference to any historical period.
This is the graphical version.
%endif
%prep
%autosetup
%build
%if %{with sdl}
%make_build SDL=yes
%else
%make_build
%endif
%install
%if %{with sdl}
%make_install SDL=yes
%else
%make_install
%endif
%if %{with sdl}
%files sdl
%license LICENSE
%doc README
%{_datadir}/%{name}
%{_bindir}/%{name}-sdl
%{_mandir}/man6/%{name}-sdl.6%{?ext_man}
%endif
%if ! %{with sdl}
%files
%license LICENSE
%doc README
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6%{?ext_man}
%{_datadir}/doc/%{name}/
%endif
%changelog