File opendune.spec of Package opendune

#
# spec file for package opendune
#
# Copyright (c) 2021 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/
#


Summary:        A faithful re-creation of the popular game Dune II
License:        GPL-2.0-only
Group:          Amusements/Games/Strategy/Real Time
Name:           opendune
Version:        0.9
Release:        0
Source:         https://github.com/OpenDUNE/OpenDUNE/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
URL:            http://www.opendune.org/
# PATCH-FIX-UPSTREAM https://github.com/OpenDUNE/OpenDUNE/pull/357
Patch0:         gcc10.patch
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libmt32emu-devel
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(sdl2)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
OpenDUNE is an open source re-creation of the popular game "Dune II",
originally made by Westwood Studios, and released by Virgin Entertainment.
It attempts to re-create the original game and apply modern technology to it
to allow it to be run natively on most operating systems.

%prep
%autosetup -n OpenDUNE-%{version} -p1

%build
./configure --prefix=%{_prefix}
make %{?_smp_mflags}

%install
make install INSTALL_DIR=%{buildroot}
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/games/%{name} %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/doc/%{name}
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

%changelog
openSUSE Build Service is sponsored by