File dynablaster_revenge.spec of Package dynablaster_revenge

#
# spec file for package dynablaster_revenge
#
# Copyright (c) 2024 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:           dynablaster_revenge
Version:        1.0.2
Release:        0
Summary:        Remake of the game Dynablaster
License:        CC-BY-NC-4.0
Group:          Amusements/Games/Action/Arcade
URL:            https://github.com/varnholt/dynablaster_revenge
Source0:        https://github.com/varnholt/dynablaster_revenge/archive/%{version}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.png
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(sdl2)
#Requires:

%description
Dynablaster Revenge is a remake of the game Dynablaster, released by Hudson Soft in 1991. The goal of this remake is to keep the original game-play as untouched as possible while adding some new features such as networked multiplayer and real-time 3D rendering. In case you're not yet familiar with the original game goal, it's quite simple: Bomb all other players from the screen. Either by collecting flame extras to increase the bomb radius or by picking up bomb extras in order to have more bombs to drop you're able to surround your enemies with your bombs, or blow them away with clever bomb chain reactions.

%prep
%setup -q

%build
echo "-= Building Client =-"
pushd client
%qmake5
%make_build -j8
popd
# TODO: Building Server
#echo "-= Building Server =-"
#pushd server
#%%qmake5
#%%make_build -j8
#popd

%install
#%%qmake5_install
# bin file
install -dm 755 %{buildroot}/%{_bindir}
install -pm 755 client/dynablaster %{buildroot}/%{_bindir}/
# destop file
install -dm 755 %{buildroot}%{_datadir}/applications
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -dm 755 %{buildroot}%{_datadir}/pixmaps
install -pm 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -r %{name} Game ArcadeGame

%files
%license LICENSE.md
%doc README.md
%{_bindir}/dynablaster
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by