File blockattack.spec of Package blockattack

#
# spec file for package blockattack
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2018-2025, Martin Hauke <mardnh@gmx.de>
#
# 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:           blockattack
Version:        2.10.0
Release:        0
Summary:        Puzzle game inspired by Tetris
License:        GPL-2.0-or-later
Group:          Amusements/Games/Strategy/Other
URL:            https://blockattack.net/
#Git-Clone:     https://github.com/blockattack/blockattack-game.git
Source:         https://github.com/blockattack/blockattack-game/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  zip
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(physfs)
Requires:       blockattack-data = %{version}
Provides:       bundled(utf8cpp)
%if 0%{?suse_version} > 1325
BuildRequires:  libboost_program_options-devel
%else
BuildRequires:  boost-devel
%endif

%description
Block Attack is a puzzle/blockfall game inspired by Nintendo's Tetris Attack
for the Super Nintendo. The game is pretty action packed for a puzzle game :-)

Features:
 * Based on the classic "Tetris Attack" for the SNES
 * 5 single player modes: Endless, Time Trial, Puzzle Mode, Stage Clear and
 Vs. Mode
 * 2 two player options: Time Trial and Vs. Mode
 * Puzzle mode has 20+ puzzles
 * Players can use a custom key setup
 * Handicap in multiplayer
 * Highscores are saved
 * Joypad support
 * Music and sound effects
 * Animations
 * Select puzzle file from a list in the game

%package data
Summary:        Architecture independent data for blockattack
Group:          Amusements/Games/Strategy/Other
Requires:       %{name} = %{version}
BuildArch:      noarch

%description data
This package contains the game data for blockattack.
It is required to play the game.

%prep
%setup -q -n blockattack-game-%{version}
chmod -x COPYING

%build
%cmake
%make_build

%install
./packdata.sh
%cmake_install

%files
%license COPYING
%doc README.md CHANGELOG.md CONTRIBUTING.md
%{_bindir}/blockattack
%{_mandir}/man6/blockattack.6%{?ext_man}
%{_datadir}/applications/blockattack.desktop
%{_datadir}/metainfo/net.blockattack.game.metainfo.xml
%{_datadir}/icons/hicolor/*/apps/blockattack.png

%files data
%{_datadir}/blockattack

%changelog
openSUSE Build Service is sponsored by