File briquolo.spec of Package briquolo
#
# spec file for package briquolo
#
# 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: briquolo
Version: 0.5.7
Release: 0
Summary: 3D Action Breakout with Explosions and Other Effects
License: GPL-2.0+
Group: Amusements/Games/3D/Other
URL: http://briquolo.free.fr/
Source0: http://briquolo.free.fr/download/%{name}-%{version}.tar.bz2
Source1: %{name}.png
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: %{name}-gcc43.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: %{name}-libpng.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2: %{name}-desktop.patch
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libdrm-devel
BuildRequires: libpng-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-Mesa-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Briquolo features an appealing and scenic 3D view of where the action
takes place. The combination of different fullscreen views and stunning
audio/visual power-up effects ties the player to the virtual scenery of
this revamped version of Breakout.
%prep
%setup -q
%patch0
%patch1
%patch2
%build
autoreconf -fi
export CXXFLAGS="%{optflags} -std=c++14"
%configure
%make_build
%install
%make_install
install -D -m 0644 desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file %{name}
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%doc ABOUT-NLS AUTHORS ChangeLog README README.fr
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog