File Enigma.spec of Package Enigma

#
# spec file for package Enigma
#
# Copyright (c) 2015 COMBES Pascal <pascom@orange.fr>
#
# 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/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name:           Enigma
Version:        1.04
Release:        0
Summary:        A tricky console puzzle game
License:        MIT
Group:          Amusements/Games/Logic
Url:            http://www.chiark.greenend.org.uk/~sgtatham/enigma/
Source0:        enigma-1.04.tar.xz
#Source1:	enigma.6
#Source2:	Enigma.desktop
BuildRequires:	Enigma-data >= 1.04
BuildRequires:	ncurses-devel
BuildRequires:	system-user-games
BuildRequires:	update-desktop-files

%description
Enigma is a puzzle game involving falling blocks, exploding bombs, and pushing stuff around. It has elements of Boulderdash and elements of Sokoban, and anybody old enough to remember XOR on the Spectrum will see large elements of that in it.

The game rules were devised by somebody who wishes to remain anonymous. He has donated the levels to the public domain. The implementation was written from scratch by Simon Tatham (http://www.chiark.greenend.org.uk/~sgtatham/).

%prep
%setup -q
#cp %%{SOURCE1} .
#cp %%{SOURCE2} .

%build
%configure
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man6
mkdir -p %{buildroot}%{_localstatedir}
make install DESTDIR=%{buildroot}
# Installs the shortcut:
mkdir -p %{buildroot}%{_datadir}/applications
install -c -m 644 Enigma.desktop %{buildroot}%{_datadir}/applications/

%files
%defattr(-, root, root)
%doc %{_mandir}/man6/enigma.6.gz
%{_datadir}/applications/Enigma.desktop
%dir %{_localstatedir}/games

%defattr(-, root, games)
%{_bindir}/enigma
%{_localstatedir}/games/enigma/

%post
%if 0%{?suse_version} >= 1140
%desktop_database_post
%endif

%postun
%if 0%{?suse_version} >= 1140
%desktop_database_postun
%endif

%changelog

openSUSE Build Service is sponsored by