File mingw64-ballerburg.spec of Package mingw64-ballerburg
#
# spec file for package mingw64-ballerburg
#
# Copyright (c) 2024, 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 http://bugs.opensuse.org/
#
%define realname ballerburg
Name: mingw64-%{realname}
Version: 1.2.2
Release: 0
Summary: Two players, two castles, and a hill in between
License: GPL-3.0-only
Group: Amusements/Games/Action/Arcade
URL: http://baller.tuxfamily.org/
#Git-Clone: git://git.tuxfamily.org/gitroot/baller/baller.git
Source: http://download.tuxfamily.org/baller/%{realname}-%{version}.tar.gz
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libSDL2-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
Ballerburg is a castle combat game. Two players (which can be human or
computer-controlled) try to destroy the opponent's castle with their cannons.
Eckhard Kruse's original Ballerburg from 1987 ported to SDL.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
rm -Rfv %{buildroot}%{_mingw64_datadir}/doc/ballerburg/
%check
%files
%license COPYING.txt
%doc LIESMICH.txt README.txt doc/de/anleitung.html doc/en/manual.html
%{_mingw64_bindir}/ballerburg.exe
%{_mingw64_datadir}/ballerburg/
%{_mingw64_mandir}/man6/ballerburg.6%{?ext_man}
%exclude %{_mingw64_datadir}/locale/
%changelog