File war1gus.spec of Package war1gus
#
# spec file for package war1gus
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2019-2021, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: war1gus
Version: 3.3.2
Release: 0
Summary: Warcraft: Orc & Humans data game set for the Stratagus engine
License: GPL-2.0-or-later
Group: Amusements/Games/Strategy/Real Time
URL: https://wargus.github.io/war1gus.html
Source: https://github.com/Wargus/war1gus/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: ImageMagick
BuildRequires: cmake
BuildRequires: fdupes
%if 0%{?suse_version} <= 1500
BuildRequires: gcc10-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: pkgconfig
BuildRequires: stratagus-devel = %{version}
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(zlib)
Recommends: ffmpeg
Requires: stratagus = %{version}
%description
War1gus is a Warcraft Mod that allows you to play Warcraft1 with the Stratagus engine
opposed to play it with the original Warcraft1 one. So unless you have a legal copy of
Warcraft1 (original DOS Version required) War1gus will be pretty useless to you, since
it doesn't come with any graphics or sounds itself.
%prep
%setup -q
sed -i 's/\r$//' README.md
%build
%if 0%{?suse_version} <= 1500
export CXX=g++-10
%else
export CXX=g++
%endif
%cmake -DGAMEDIR=%{_bindir}
%make_jobs
%install
%cmake_install
%files
%license COPYING
%doc README.md
%{_bindir}/war1gus
%{_bindir}/war1tool
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/games/stratagus
%{_datadir}/games/stratagus/war1gus
%changelog