File griffon.spec of Package griffon

#
# spec file for package griffon
#
# Copyright (c) 2022 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:           griffon
URL:            http://www.scummvm.org/games
Version:        1.0
Release:        0
Summary:        The Griffon Legend
License:        CC-BY-3.0
Group:          Amusements/Games/Other
Source0:        https://downloads.scummvm.org/frs/extras/Griffon%20Legend/griffon-1.0.zip
Source7:        %name
Source8:        %name.desktop
Source9:        %name.png
BuildRequires:  fdupes
BuildRequires:  unzip
BuildRequires:  update-desktop-files
Requires:       scummvm
BuildArch:      noarch

%description
The Griffon Legend - by - Syn9 - http://syn9.thingie.net - syn9@rpgdx.net

programming/graphics by syn9
music/sound effects by David Turner
beta testing and gameplay design help provided by:
  Deleter, Cha0s, Aether Fox, and Kiz

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{_sourcedir}/%{name} %{buildroot}/%{_bindir}

mkdir -p %{buildroot}%{_datadir}/%{name}
unzip -d %{buildroot}%{_datadir}/%{name} %_sourcedir/%{name}-%{version}.zip
rm %{buildroot}%{_datadir}/%{name}/*.{exe,dll}
mv %{buildroot}%{_datadir}/%{name}/readme.txt .
cp %{_sourcedir}/license.txt .

mkdir -p %{buildroot}/%{_datadir}/pixmaps/
install -m 644 %{_sourcedir}/%name.png %{buildroot}/%{_datadir}/pixmaps

%suse_update_desktop_file -i %name Game X-SuSE-AdventureGame

%fdupes -s %{buildroot}

%files
%defattr(-,root,root)
%doc readme.txt license.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%name.desktop
%{_datadir}/pixmaps/%name.png

%changelog
openSUSE Build Service is sponsored by