File FOTAQ.spec of Package FOTAQ
#
# spec file for package FOTAQ
#
# 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:           FOTAQ
URL:            http://www.scummvm.org/games/#games-queen
Version:        20040315
Release:        0
Summary:        Flight of the Amazon Queen (Adventure Game)
License:        SUSE-Freeware
Group:          Amusements/Games/Other
Source0:        http://www.scummvm.org/frs/extras/Flight%20of%20the%20Amazon%20Queen/FOTAQ_Fr_Talkie_1.0.zip
Source1:        http://www.scummvm.org/frs/extras/Flight%20of%20the%20Amazon%20Queen/FOTAQ_Ger_talkie-1.0.zip
Source2:        http://www.scummvm.org/frs/extras/Flight%20of%20the%20Amazon%20Queen/FOTAQ_Heb_talkie.zip
Source3:        http://www.scummvm.org/frs/extras/Flight%20of%20the%20Amazon%20Queen/FOTAQ_It_Talkie_1.0.zip
Source4:        http://www.scummvm.org/frs/extras/Flight%20of%20the%20Amazon%20Queen/FOTAQ_Talkie-1.1.zip
Source5:        %name
Source6:        %name.desktop
Source7:        %name.png
Source8:        info
BuildRequires:  fdupes
BuildRequires:  unzip
BuildRequires:  update-desktop-files
Requires:       scummvm
Recommends:     xmessage
BuildArch:      noarch
%description
Flight of the Amazon Queen is a 2D point-and-click adventure game set
in the 1940s, and originally published for DOS and the Amiga.
You assume the role of Joe King, a pilot for hire who is given the job
of flying Faye Russell (a famous movie star) into the Amazon jungle for
a photo shoot. Of course, things never go according to plan. After an
unfortunate turn of events, they find themselves stranded in the heart
of the Amazon jungle where Joe embarks on a quest to rescue a kidnapped
princess and, in the process, discovers the sinister intentions of a
suspiciously-located Lederhosen company. Joe crosses paths with a
variety of unlikely jungle inhabitants, including a tribe of Amazon
women and 6-foot-tall pygmies.
Authors:
--------
    John Passfield (Krome Studios, Australia)
    Steve Stamatiadis (Krome Studios, Australia)
%prep
mkdir -p en de fr it he
unzip -d en %_sourcedir/FOTAQ_Talkie-1.1.zip
unzip -d de %_sourcedir/FOTAQ_Ger_talkie-1.0.zip
unzip -d fr %_sourcedir/FOTAQ_Fr_Talkie_1.0.zip
unzip -d it %_sourcedir/FOTAQ_It_Talkie_1.0.zip
unzip -d he %_sourcedir/FOTAQ_Heb_talkie.zip
for i in en fr it; do
  mv $i/readme.txt readme-$i.txt
done
for i in de he; do
  mv $i/COPYING COPYING-$i
done
%build
%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{_sourcedir}/%{name} %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/{en,de,fr,it,he}
for i in en de fr it he; do
  install -m 644 $i/queen.1c %{buildroot}%{_datadir}/%{name}/$i
done
install -m 644 $RPM_SOURCE_DIR/info %{buildroot}%{_datadir}/%{name}
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-en.txt readme-fr.txt readme-it.txt COPYING-de COPYING-he
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%name.desktop
%{_datadir}/pixmaps/%name.png
%changelog