File burgerspace.spec of Package burgerspace

#
# spec file for package burgerspace
#
# Copyright (c) 2025 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:           burgerspace
Version:        1.10.0
Release:        0
Summary:        A Burgertime(TM) clone
License:        GPL-2.0-only
Group:          Amusements/Games/Action/Arcade
URL:            http://sarrazip.com/dev/%{name}.html
Source:         http://perso.b2b2c.ca/~sarrazip/dev/burgerspace-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_gfx)
BuildRequires:  pkgconfig(SDL2_image) >= 2.0.5
BuildRequires:  pkgconfig(SDL2_mixer) >= 2.0.4
BuildRequires:  pkgconfig(SDL2_ttf) >= 2.0.15
BuildRequires:  pkgconfig(flatzebra-0.2) >= 0.2.0
BuildRequires:  pkgconfig(sdl2)
Requires:       flatzebra >= 0.2.0

%description
BurgerSpace is a game in which you are a chef, and must walk over
hamburger ingredients (buns, meat, lettuce, etc) to make them fall from
floor to floor, until they end up on the plates at the bottom of the
screen. It requires the SDL multimedia library. It is a clone of the
1982 BurgerTime video game by Bally Midway.

%prep
%setup -q

%build
%configure
%make_build

%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
#rm -rf %%{buildroot}%%{_datadir}/doc/%%{name}-%%{version}
rm -rf %{buildroot}%{_datadir}/doc/%{name}
rm %{buildroot}/%{_datadir}/applications/*.desktop

install -D -m644 src/%{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -i %{name} -n

%files
%license COPYING
%doc AUTHORS NEWS README THANKS
%{_datadir}/applications/*%{name}.desktop
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_mandir}/man*/*
%dir %{_datadir}/burgerspace
%dir %{_datadir}/burgerspace/sounds
%{_datadir}/burgerspace/sounds/*

%changelog
openSUSE Build Service is sponsored by