File bedlam2.spec of Package bedlam2

#
# spec file for package bedlam2
#
# Copyright (c) 2021-2023, 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/
#


# The 32bit package (bedlam2-32bit) can be obtained using the following command:
# osc build --baselibs --disable-debuginfo openSUSE_Tumbleweed i586 bedlam2.spec
Name:           bedlam2
Version:        2.23
Release:        0
Summary:        Game Engine for Bedlam 2: Absolute Bedlam
License:        NonFree
URL:            https://github.com/8street/Bedlam2
Source:         https://github.com/8street/Bedlam2/archive/refs/tags/%{version}.tar.gz#/Bedlam2-%{version}.tar.gz
BuildRequires:  JWasm
BuildRequires:  clang12
BuildRequires:  execstack
BuildRequires:  libstdc++-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(sdl2)
ExclusiveArch:  %{ix86}

%description
An open-source game engine for the isometric shooter
Bedlam 2: Absolute Bedlam.

NOTE:
To play Bedlam 2 with this game engine you need the original game files.

%prep
%setup -q -n Bedlam2-%{version}

%build
cd linux
chmod +x compile.sh
./compile.sh

%install
install -Dm 0755 linux/bedlam2 %{buildroot}%{_bindir}/bedlam2
# Hack
execstack -c %{buildroot}%{_bindir}/bedlam2

%files
%doc README.md
%{_bindir}/bedlam2

%changelog
openSUSE Build Service is sponsored by