File hermes.spec of Package hermes

#
# spec file for package hermes
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#


Name:           hermes
Version:        1.02
Release:        0
Summary:        A Jump'n' Run game with plenty of bad taste humour
License:        SUSE-NonFree
Group:          Amusements/Games/Logic
URL:            http://www.retroguru.com/hermes/
Source:         http://www.retroguru.com/%{name}/%{name}-v.latest-linux64.tar.gz
Source1:        http://www.retroguru.com/%{name}/%{name}-v.latest-linux32.tar.gz
Source2:        %{name}-wrapper.sh
Source99:       %{name}-rpmlintrc
BuildRequires:  update-desktop-files
ExclusiveArch:  %{ix86} x86_64

%description
Hermes is an extraordinary Jump'n' Run game with plenty of bad taste
humour. If you feel offended by crude and dirty humour you may run
away now. The game also features pixel violence and promotes the
consumption of meat. If you are a hardcore vegetarian, you might very
much dislike the game or just have a good laugh.

Hermes Features:
 * Hand set pixels!
 * Amiga chiptunes!
 * Score tracking!
 * 32 levels!
 * Hidden warp zones!
 * Boss fight!

%prep
%setup -c -q -n %{name}
mkdir 32/
tar xzvf %{SOURCE1} -C 32/
chmod -x *.txt
sed -i 's/\r$//' *.txt

%build

%install
%ifarch x86_64
install -D -m0775 %{name} %{buildroot}/%{_libexecdir}/%{name}/%{name}
%endif
%ifarch %{ix86}
install -D -m0775 32/%{name} %{buildroot}/%{_libexecdir}/%{name}/%{name}
%endif
install -D -m0755 %{SOURCE2} %{buildroot}/%{_bindir}/%{name}
install -D -m0644 icon.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
install -d %{buildroot}/%{_datadir}/%{name}
mv data/ %{buildroot}/%{_datadir}/%{name}/
%suse_update_desktop_file -c %{name} %{name} "Hermes - A Jump'n' Run game" %{name} %{name} Game LogicGame

%if 0%{?suse_version} < 1330
%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files
%doc hermes.txt
%{_bindir}/%{name}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by