File edgar.spec of Package edgar

# spec file for package edgar
# 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:           edgar
Version:        1.34
Release:        0
Summary:        2D platform game with a persistent world
License:        GPL-2.0-or-later
Group:          Amusements/Games/Action/Arcade
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(sdl2)
Requires:       %{name}-data = %{version}
Recommends:     %{name}-lang = %{version}

The Legend of Edgar is a platform game, not unlike those found on the Amiga and
SNES. Edgar must battle his way across the world, solving puzzles and defeating
powerful enemies to achieve his quest.

A 2D platform game with a persistent world.
When Edgar's father fails to return home after venturing out one dark and stormy
night, Edgar fears the worst: he has been captured by the evil sorcerer who
lives in a fortress beyond the forbidden swamp.

Donning his armour, Edgar sets off to rescue him, but his quest will not be

%package data
Summary:        Architecture independent data for %{name}
Group:          Amusements/Games/Action/Arcade
Requires:       %{name} = %{version}
BuildArch:      noarch

%description data
This package contains the game data for %{name}.
It is required to play the game.

%setup -q
mv makefile Makefile

# SED-FIX-OPENSUSE -- Fix paths
sed -i -e 's|$(PREFIX)/games/|$(PREFIX)/bin/|;
           s|/share/games/edgar/|/share/edgar/|' Makefile

make %{?_smp_mflags} CC="cc %{optflags}"

%find_lang %{name}

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

%doc doc/*
%dir %{_datadir}/appdata

%files lang -f %{name}.lang

%files data

openSUSE Build Service is sponsored by