Blob Blame History Raw
# spec file for package 3omns
# 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

%if 0%{?suse_version} > 1320
%bcond_without lua53
%bcond_with lua53
Name:           3omns
Version:        0.2
Release:        0
Summary:        Old-school Arcade-style Tile-based Bomb-dropping Deathmatch Game
License:        GPL-3.0-or-later
Group:          Amusements/Games/Action/Arcade
Patch0:         appdata.patch
# PATCH-FEATURE-UPSTREAM upgrade to Lua 5.3
Patch1:         lua53.patch
BuildRequires:  asciidoc
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bitstream-vera-fonts
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  docbook_5
BuildRequires:  fdupes
BuildRequires:  glibc-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(sdl2)
Requires:       bitstream-vera-fonts
%if %{with lua53}
BuildRequires:  lua53-devel
BuildRequires:  lua-devel < 5.3
BuildRequires:  lua-devel >= 5.2

3omns is an old-school arcade-style tile-based bomb-dropping deathmatch game.

%setup -q
%patch0 -p1
%if %{with lua53}
%patch1 -p1

autoreconf -fi


# Use system fonts instead of bundling our own
rm -f %{buildroot}%{_datadir}/%{name}/ttf/Vera.ttf
ln -s ../../fonts/truetype/Vera.ttf %{buildroot}%{_datadir}/%{name}/ttf/Vera.ttf

%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix}

%license COPYING
%dir %{_datadir}/appdata