File ceferino.spec of Package ceferino

#
# spec file for package ceferino
#
# 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 https://bugs.opensuse.org/
#


Name:           ceferino
Version:        0.97.9+git20210103
Release:        0
Summary:        Game similar to Super Pang
License:        GPL-2.0-only
Group:          Amusements/Games/Arcade
URL:            http://www.losersjuegos.com.ar/juegos/ceferino
# Downloaded from https://github.com/hugoruscitti/donceferino
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}.desktop
# PATCH-FIX-UPSTREAM missing-return-value.patch -- https://github.com/hugoruscitti/donceferino/pull/5
Patch0:         missing-return-value.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(sdl)

%description
A game similar to 'Super Pang'. You are attacked by little green balls
which are bouncing around and which you have to destroy with your knife.

Your knife however is limited to being thrown upwards, thus you have
to get under the balls to destroy them. Even worse, if you destroy
a large ball, it doesn't just vanish, but breaks apart into two smaller balls.
Levels consist of little platforms connected by ladders, so you can go
up and down or find cover if needed.

%prep
%autosetup -p1 -n donceferino

%build
autoreconf -fi
%configure
%make_build

%install
%make_install

# install icon
install -Dm 0644 data/ima/icono.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
# link the icon back to the install directory. In preparation for app containerisation, as well
# as AppStream metadata generation, we need a real file in /usr/share/icons
# fdupes later on is likely to put the symlink there though
ln -sf %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{buildroot}%{_datadir}/%{name}/ima/icono.png
# install Desktop file
%suse_update_desktop_file -i %{name}
%fdupes -s %{buildroot}%{_prefix}
%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_bindir}/%{name}editor
%{_bindir}/%{name}setup
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by