File enigma.spec of Package enigma

# spec file for package enigma
# Copyright (c) 2021 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

Name:           enigma
Version:        1.30
Release:        0
Summary:        An Excellent Oxyd Clone
License:        GPL-2.0-or-later
Group:          Amusements/Games/Action/Arcade
Source1:        %{name}-help.desktop
Source3:        %{name}.png
Source4:        %{name}-help.png
Source5:        enigma_de.pdf
Source6:        french_russian.tar.bz2
BuildRequires:  ImageMagick
BuildRequires:  enet-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libpng-tools
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(xerces-c)

Enigma is similar to the well known game Oxyd.

%setup -q

%configure \
make %{?_smp_mflags}

install -D -m 644 %{_sourcedir}/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 644 %{_sourcedir}/%{name}-help.png %{buildroot}%{_datadir}/pixmaps/%{name}-help.png
%suse_update_desktop_file -i %{name}
%suse_update_desktop_file -i %{name}-help

mkdir -p %{buildroot}%{_defaultdocdir}
mv %{buildroot}%{_datadir}/doc/enigma/ %{buildroot}%{_defaultdocdir}/%{name}
install -m 644 %{SOURCE5} %{buildroot}%{_defaultdocdir}/%{name}
tar -xjf %{SOURCE6} -C %{buildroot}%{_defaultdocdir}/%{name}
%png_fix_dir %{buildroot}/%{_datadir}/enigma
%fdupes %{buildroot}%{_datadir}

%doc %{_defaultdocdir}/%{name}

openSUSE Build Service is sponsored by