File wargus.spec of Package wargus

# spec file for package wargus
# Copyright (c) 2022 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

Name:           wargus
Version:        3.3.2
Release:        0
Summary:        Warcraft II mod for the Stratagus engine
License:        GPL-2.0-or-later
Group:          Amusements/Games/Strategy/Real Time
BuildRequires:  StormLib-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  stratagus-devel = %{version}
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libmikmod)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(zlib)
Recommends:     ffmpeg
Requires:       stratagus = %{version}

Wargus is a Warcraft2 Mod that allows you to play Warcraft2 with the Stratagus engine, as
opposed to play it with the original Warcraft2 one. So unless you have a legal copy of
Warcraft2 (original DOS Version required, won't work with the edition) Wargus
will be pretty useless to you, since it doesn't come with any graphics or sounds itself.

%setup -q

%cmake -DGAMEDIR=%{_bindir}

install -D -m 0644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6
install -D -m 0644 doc/wartool.6 %{buildroot}%{_mandir}/man6/wartool.6
install -D -m 0644 doc/pudconvert.6 %{buildroot}%{_mandir}/man6/pudconvert.6

# remove shebang from - fixes rpmlint non-executable-script warning
sed -i 1d %{buildroot}%{_datadir}/games/stratagus/wargus/scripts/translate/

%fdupes %{buildroot}%{_datadir}/games/stratagus/wargus

%license COPYING
%doc doc/changelog doc/pud-specs.txt
%dir %{_datadir}/games/stratagus

openSUSE Build Service is sponsored by