File vbam.spec of Package vbam
#
# spec file for package vbam
#
# Copyright (c) 2025 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/
#
%global fullname visualboyadvance-m
Name: vbam
Version: 2.1.11
Release: 0
Summary: Nintendo GameBoy Advance Emulator
License: GPL-2.0-only
Group: System/Emulators/Other
URL: https://www.visualboyadvance-m.org/
Source0: https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gettext-runtime
BuildRequires: gettext-tools
# things for OBS tidiness
BuildRequires: hicolor-icon-theme
BuildRequires: hxtools
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: pkgconfig(sdl2)
BuildRequires: sfml2-devel
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-devel >= 3.2
# needed to generate wxvbam.xrs for wx GUI
BuildRequires: zip
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(gdk-x11-3.0) >= 3.24.0
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.24.15
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(lirc)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(zlib)
%ifarch %{ix86}
BuildRequires: nasm
%endif
%description
VBA-M is a Nintendo GameBoy Advance Emulator which is under the GPL
%lang_package
%prep
%autosetup -p1 -n %{fullname}-%{version}
%build
%cmake -DCMAKE_SKIP_RPATH:BOOL=on \
-DCMAKE_BUILD_TYPE=Release \
-DVERSION="%{version}" \
-DVERSION_RELEASE=1 \
-DENABLE_WX=1 \
-DENABLE_LINK=1 \
-DENABLE_GBA_LOGGING=0 \
%ifarch %{ix86}
-DENABLE_ASM_CORE=1 \
%endif
-DENABLE_LIRC=1 \
-DENABLE_FFMPEG=0
%make_build
%install
%cmake_install
install -D -m 755 build/%{fullname} %{buildroot}%{_bindir}/%{fullname}
%suse_update_desktop_file -r -G %{fullname} %{fullname} System Emulator
%fdupes %{buildroot}
%find_lang wx%{name}
%files
%license doc/License.txt doc/gpl.txt
%doc doc/ReadMe.MFC.txt doc/ReadMe.SDL.txt doc/ips.htm doc/DevInfo.txt
%{_bindir}/%{fullname}
%{_bindir}/%{name}
/usr/etc/vbam.cfg
%{_mandir}/man6/%{name}.6%{?ext_man}
%{_datadir}/%{name}
%{_datadir}/applications/%{fullname}.desktop
%{_datadir}/icons/hicolor/*/apps/%{fullname}.*
%{_datadir}/metainfo/%{fullname}.metainfo.xml
%{_mandir}/man6/%{fullname}.6%{?ext_man}
%files lang -f wx%{name}.lang
%changelog