File libretro-mesen-sx.spec of Package libretro-mesen-sx
#
# spec file for package libretro-Mesen-SX
#
# Copyright (c) 2024 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: libretro-mesen-sx
Version: git
Release: 0
Summary: Homebrew development oriented fork of Mesen-S - Libretro Core
License: GPL-2.0-only
Group: System/Emulators/Other
URL: http://www.retroarch.com
Source: %{name}-%{version}.tar.xz
BuildRequires: Mesa-devel
BuildRequires: gcc-c++
BuildRequires: zip
BuildRequires: pkgconfig(mono)
BuildRequires: pkgconfig(sdl2)
BuildRequires: make
%{?suse_build_hwcaps_libs}
%description
Homebrew development oriented fork of Mesen-S - a cross-platform (Windows & Linux) SNES emulator built in C++ and C#.
Updated with libretro changes.
%prep
%setup -q
%build
LTO=true MESENPLATFORM=x64 make -C ./Libretro
%install
mkdir -p %{buildroot}%{_libdir}/libretro
cp Libretro/mesen-sx_libretro.so %{buildroot}%{_libdir}/libretro
%files
%dir %{_libdir}/libretro
%{_libdir}/libretro/mesen-sx_libretro.so
%changelog