File azimuth.spec of Package azimuth

#
# spec file for package azimuth
#
# 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:           azimuth
Version:        1.0.3
Release:        0
Summary:        A metroidvania with vector graphics
License:        GPL-3.0-only
Group:          Amusements/Games/Action/Shoot
URL:            https://mdsteele.games/azimuth/
Source:         https://codeload.github.com/mdsteele/azimuth/tar.gz/refs/tags/v%{version}#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM desktop.patch -- https://github.com/mdsteele/azimuth/pull/14
Patch0:         desktop.patch
# PATCH-FIX-UPSTREAM fix-install.patch -- https://github.com/mdsteele/azimuth/pull/19
Patch1:         fix-install.patch
# PATCH-FIX-SUSE allow-custom-cflags.patch -- Allow custom CFLAGS used for our builds
Patch2:         allow-custom-cflags.patch
BuildRequires:  gcc
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(sdl)

%description
Azimuth is inspired by such games as the Metroid series
(particularly Super Metroid and Metroid Fusion),
SketchFighter 4000 Alpha, and Star Control II
(a.k.a. The Ur-Quan Masters)
-- all fine games that are well worth your time.

%prep
%autosetup -p1

%build
make %{?_smp_mflags} OPTFLAGS="%{optflags}" V=1

%install
make install DESTDIR=%{buildroot}

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

%changelog
openSUSE Build Service is sponsored by