File drascula.spec of Package drascula

#
# spec file for package drascula
#
# 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:           drascula
BuildRequires:  unzip
BuildRequires:  update-desktop-files
URL:            https://www.scummvm.org/games/
Requires:       scummvm
Recommends:     xmessage
Version:        1.0
Release:        0
Summary:        Drascula: The Vampire Strikes Back
License:        SUSE-Freeware
Group:          Amusements/Games/Other
Source0:        %name-1.0.zip
Source1:        %name-audio-2.0.zip
Source2:        %name-int-1.1.zip
Source3:        %name
Source4:        %name.desktop
Source5:        info
Source6:        %name.png
Source7:        drascula-manual.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
These are the data files for the game Drascula: The Vampire Strikes Back,
which was kindly freewared by Alcachofa Soft S.L. and particularly thanks
to support of Emilio de Paz.

%prep
unzip $RPM_SOURCE_DIR/%name-audio-2.0.zip
mv readme.txt readme-audio.txt
mv changelog changelog-audio
unzip $RPM_SOURCE_DIR/%name-int-1.1.zip
mv %name-int-1.1/* .
mv readme.txt readme-int.txt
unzip $RPM_SOURCE_DIR/%name-1.0.zip
tar xjf $RPM_SOURCE_DIR/%name-manual.tar.bz2 drascula-manual.pdf

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/%name/audio
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%name
install -m 644 Packet.* PACKET.* $RPM_BUILD_ROOT/usr/share/%name
install -m 644 audio/* $RPM_BUILD_ROOT/usr/share/%name/audio
install -m 644 $RPM_SOURCE_DIR/info $RPM_BUILD_ROOT/usr/share/%name
install -m 755 $RPM_SOURCE_DIR/%name $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
install -m 644 $RPM_SOURCE_DIR/%name.png $RPM_BUILD_ROOT/usr/share/pixmaps
%suse_update_desktop_file -i %name Game X-SuSE-AdventureGame

%files
%defattr(-,root,root)
%doc readme.txt readme-audio.txt readme-int.txt changelog-audio drascula-manual.pdf
/usr/bin/%name
/usr/share/%name/
/usr/share/applications/%name.desktop
/usr/share/pixmaps/%name.png

%changelog
openSUSE Build Service is sponsored by