File blastem.spec of Package blastem

#
# spec file for package blastem
#
# Copyright (c) 2024 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           blastem
Version:        0.6.2~r2677
Release:        0
Summary:        Higly accurate emulator for the Genesis/Megadrive
License:        GPL-3.0
Group:          System/Emulators/Other
Url:            https://www.retrodev.com/blastem/
Source:         %{name}-%{version}.tar.xz
Source99:       blastem-rpmlintrc
BuildRequires:  ImageMagick
BuildRequires:  python3-base
BuildRequires:  python3-Pillow
BuildRequires:  vasm
BuildRequires:  glew-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(zlib)

%description
BlastEm is an open source, higly accurate emulator for the Genesis/Megadrive
that runs on modest hardware. It is the first emulator to properly run Titan's
impressive Overdrive 2 demo and it is the only other emulator besides
Genesis Plus GX that can properly run the original Overdrive.
It is the only emulator other than Exodus that passes Nemesis' VDP FIFO Testing ROM,
can display "Direct Color DMA" demos and emulates CRAM contention (aka CRAM dots).

Despite this high accuracy, even the most demanding software runs at full speed
on modest hardware like a 1.6GHz AMD E-350 laptop. In the future, I would like
to port it to the ARM architecture and optimize it further to run on systems as
modest as the original Raspberry Pi. 

%prep
%autosetup -p1

%build
make HOST_ZLIB=1 OPT="%{optflags} -O3 -fcommon" %{?_smp_mflags} all menu.bin tmss.md


%install
chmod -v -x shaders/* images/* *.*
chmod -v +x blastem dis zdis termhelper
mkdir -p "%{buildroot}%{_datadir}/%{name}"
cp -vR blastem dis zdis termhelper menu.bin tmss.md \
 shaders images default.cfg rom.db gamecontrollerdb.txt systems.cfg \
 %{buildroot}%{_datadir}/%{name}/
mkdir -p "%{buildroot}%{_bindir}"
ln -s "%{_datadir}/%{name}/%{name}" "%{buildroot}%{_bindir}/%{name}"

%files
%defattr(-,root,root)
%doc CHANGELOG README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by