File bastet.spec of Package bastet

#
# spec file for package bastet
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2017 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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:           bastet
Version:        0.43.2
Release:        0
Summary:        An evil falling brick game
License:        GPL-3.0-only
Group:          Amusements/Games/Action/Arcade
URL:            https://fph.altervista.org/prog/bastet.html
Source0:        https://github.com/fph/bastet/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        bastet.png
# PATCH-FIX-UPSTREAM unordered_set.patch - Fix build with boost >= 1.65
Patch0:         unordered_set.patch
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libboost_headers-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  ncurses-devel

%description
Bastet is a simple ncurses-based falling bricks like game. Unlike
normal, however, Bastet does not choose your next brick at random.
Instead, it uses a special algorithm designed to choose the worst
brick possible. As you can imagine, playing Bastet can be a very
frustrating experience!

%prep
%autosetup -p1

%build
%make_build CXXFLAGS="%{optflags}"

%install
# Manual install
install -Dm0644 bastet.appdata.xml %{buildroot}%{_datadir}/appdata/bastet.appdata.xml
install -Dm0755 bastet %{buildroot}%{_bindir}/bastet
install -Dm0644 %{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6
install -Dm0644 bastet.desktop %{buildroot}%{_datadir}/applications/bastet.desktop
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/bastet.png

%files
%license LICENSE
%doc AUTHORS NEWS
%{_bindir}/bastet
%{_datadir}/appdata/bastet.appdata.xml
%{_datadir}/applications/bastet.desktop
%{_datadir}/pixmaps/bastet.png
%{_mandir}/man6/bastet.6%{?ext_man}

%changelog
openSUSE Build Service is sponsored by