File stargus.spec of Package stargus
#
# spec file for package stargus
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: stargus
Version: 2.4.1
Release: 0
Summary: Starcraft mod for the Stratagus engine
License: GPL-2.0-or-later
Group: Amusements/Games/Strategy/Real Time
URL: http://stargus.sourceforge.net/
Source: https://github.com/Wargus/stargus/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: 0006-update-stargus-launcher-to-work-with-extraction-supp.patch
Patch1: 0017-stargus-needs-to-check-extracted-version.patch
Patch2: 0018-fixed-gzip-use-after-free-issue.patch
Patch3: 0019-Fix-MPQ-archive-scanner-add-more-file-paths-and-simp.patch
Patch4: 0020-Update-startool.cpp.patch
Patch5: 0021-Update-startool.cpp.patch
Patch6: 0022-Add-files-via-upload.patch
Patch7: 0023-Fix-MPQ-archive-scanner-add-more-file-paths-and-simp.patch
Patch8: 0024-Temporary-workaround-for-missing-fog.png-see-31.patch
Patch9: 0025-Fixed-bug-that-left-file-open-in-scanner-when-invali.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: stratagus-devel
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libmikmod)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(zlib)
Requires: stratagus >= %{version}
%description
Stargus is a Starcraft Mod that allows you to play Starcraft with the Stratagus engine,
as opposed to play it with the original Starcraft one. So unless you have a legal copy
of Starcraft, Stargus will be pretty useless to you, since it doesn't come with any
graphics or sounds itself.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
sed -i 's|%{_prefix}/games/stargus|%{_bindir}/stargus|' stargus.desktop
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
mv %{buildroot}%{_prefix}/games/stargus %{buildroot}%{_bindir}/stargus
%fdupes %{buildroot}%{_prefix}
%files
%license COPYING
%doc README.md doc/
%{_bindir}/stargus
%{_bindir}/scmconvert
%{_bindir}/startool
%{_datadir}/pixmaps/stargus.png
%{_datadir}/applications/stargus.desktop
%dir %{_datadir}/games
%dir %{_datadir}/games/stratagus
%dir %{_datadir}/games/stratagus/stargus
%{_datadir}/games/stratagus/stargus
%dir %{_datadir}/games/stratagus/stargus/scripts
%{_datadir}/games/stratagus/stargus/scripts
%dir %{_datadir}/games/stratagus/stargus/graphics
%dir %{_datadir}/games/stratagus/stargus/graphics/tilesets
%{_datadir}/games/stratagus/stargus/graphics/tilesets/fog.png
%changelog