File hota-redux.spec of Package hota-redux

#
# spec file for package hota-redux
#
# 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/
#


Name:           hota-redux
Version:        1.2.4
Release:        0
Summary:        Heart of The Alien Redux
License:        GPL-2.0-only
Group:          Amusements/Games/Strategy/Real Time
URL:            http://hota.sourceforge.net/
Source:         https://github.com/carstene1ns/hota-redux/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/carstene1ns/hota-redux/commit/e92706c2144a122d964be771f73f242fa53de52e
Patch0:         fix-compilation.patch
# PATCH-FIX-UPSTREAM https://github.com/carstene1ns/hota-redux/commit/d45073d1acc402610456ffad46308b5e873a3463
Patch1:         license.patch
# PATCH-FIX-UPSTREAM https://github.com/carstene1ns/hota-redux/pull/2
Patch2:         smpeg-config.patch
BuildRequires:  gcc
BuildRequires:  smpeg-devel
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(sdl)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A complete rewrite of Heart of The Alien for modern computers.

%prep
%autosetup -p1
chmod -x AUTHORS NEWS README

%build
cd src
make alien

%install
mkdir -p %{buildroot}%{_bindir}
install src/alien %{buildroot}%{_bindir}
chmod +x %{buildroot}%{_bindir}/alien

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README
%license COPYING
%{_bindir}/alien

%changelog
openSUSE Build Service is sponsored by