File bitfighter.spec of Package bitfighter
#
# spec file for package bitfighter
#
# 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: bitfighter
Version: 022
Release: 0
Summary: A 2-D multi-player space combat game
License: GPL-2.0-only
Group: Amusements/Games/Action/Arcade
URL: https://bitfighter.org/
Source: https://github.com/bitfighter/bitfighter/archive/refs/tags/bitfighter-022.tar.gz
BuildRequires: alure-devel
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libSDL2-devel
BuildRequires: libmodplug-devel
BuildRequires: libmysqlclient-devel
BuildRequires: libpng-devel
BuildRequires: libtomcrypt-devel
BuildRequires: libvorbis-devel
BuildRequires: openal-soft-devel
BuildRequires: speex-devel
BuildRequires: sqlite3-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(luajit)
BuildRequires: pkgconfig(lua)
%description
Bitfighter is a free 2-D multi-player space combat game. It's a team-based strategy game
featuring retro vector graphics and customizable ships. It's fast, fun, and frenetic.
%prep
%setup -q
%build
#%%ifarch ppc64
#%%cmake -DMASTER_MINIMAL=1 -DLUAJIT_DISABLE_JIT=1 -DBUILD_SHARED_LIBS=0
#%%else
%cmake -DMASTER_MINIMAL=1 -DLUAJIT_BUILTIN=OFF -DBUILD_SHARED_LIBS=0
#%%endif
%cmake_build
%install
%cmake_install
# Clean up old python bitfighter_notifier
rm %{buildroot}%{_bindir}/bitfighter_notifier
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}/%{name}
%files
%license LICENSE.txt
%doc doc/README.txt
%{_mandir}/man6/%{name}.6%{ext_man}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog