File meritous.spec of Package meritous
#
# spec file for package meritous
#
# Copyright (c) 2023 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:           meritous
Version:        1.2
Release:        0
Summary:        Action-adventure dungeon crawl game
License:        GPL-3.0-only
Group:          Amusements/Games/Other
URL:            http://asceai.net/meritous/
Source0:        meritous_v12_src.tar.bz2
Source1:        %{name}.sh
Source2:        %{name}.desktop
# PATCH-FIX-UPSTREAM fix-makefile.patch
Patch0:         fix-makefile.patch
# PATCH-FIX-UPSTREAM fix-version-and-compile-warnings.patch
Patch1:         fix-version-and-compile-warnings.patch
BuildRequires:  gcc-c++
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel
%description
Far below the surface of the planet is a secret.
A place of limitless power. Those that seek to
control such a utopia will soon bring an end
to themselves.
Seeking an end to the troubles that plague him,
PSI user MERIT journeys into the hallowed Orcus
Dome in search of answers.
%prep
%setup -q -n meritous_v12_src
%autopatch -p1
%build
%make_build
%install
install -Ds %{name} %{buildroot}%{_bindir}/%{name}.bin
install -D %{SOURCE1} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a dat %{buildroot}%{_datadir}/%{name}/
%suse_update_desktop_file -i %{name} Game AdventureGame
%fdupes %{buildroot}
%files
%license gpl.txt
%doc readme.txt
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/%{name}
%{_bindir}/*
%changelog