%global _hardened_build 1 Summary: Apple IIgs Emulator Name: gsplus Version: 0.14 Release: 9%{?dist} License: GPLv2 Group: Applications/Emulators URL: https://apple2.gs/plus/ Source0: https://github.com/digarok/gsplus/archive/v%{version}.tar.gz#/%name-%version.tar.gz Source1: %{name}-getroms.sh Source4: %{name}.png Source5: %{name}.desktop Patch0: %{name}-xdg.patch Requires: xorg-x11-fonts-misc Requires: pulseaudio-utils BuildRequires: gcc gcc-c++ BuildRequires: perl BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: freetype-devel BuildRequires: SDL2-devel BuildRequires: SDL2_image-devel BuildRequires: libpcap-devel %description gsplus is a portable (in the programming sense) Apple IIgs emulator, based on the KEGS cross-platform IIgs emulator by Kent Dickey. The base emulator builds and runs on all of the same platforms that KEGS did, and the new capabilities are being integrated as contributors have time and interest. %prep %autosetup -p1 %build # Setup linux vars pushd src cat >vars <$RPM_BUILD_ROOT/%{_datadir}/%{name}/config.txt.dist <$RPM_BUILD_ROOT/%{_bindir}/%{name} <<'EOF' #!/usr/bin/env bash # Simple wrapper to start GSplus via PulseAudio OSS Wrapper to enable # sound via the older /dev/dsp interface. # First run, get roms if needed and setup config file. if [[ ! -f ${HOME}/.config/%{name}/config.txt && -n ${HOME} ]]; then /usr/bin/%{name}-getroms.sh fi cd %{_datadir}/%{name} exec padsp %{_bindir}/%{name}.bin -audio 1 EOF desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE5} %files %defattr(-,root,root) %license LICENSE.txt %doc COPYRIGHT.txt README.md doc/gsplusmanual.pdf %attr(755,root,root) %{_bindir}/* %{_datadir}/%{name}/* %{_datadir}/applications/* %{_datadir}/pixmaps/* %changelog * Sat Jun 26 2021 Greg Wildman - 0.14-9 - Add the manual doc to package. * Sun Apr 21 2019 Greg Wildman - 0.14-8 - Update to release version. * Wed Aug 29 2018 Greg Wildman - 0.14git6ebebfa-4 - Update to latest commit. * Mon Aug 27 2018 Greg Wildman - 0.14git712c079-3 - Update to latest commit. * Sat Aug 25 2018 Greg Wildman - 0.14git17f22c3-2 - Update to latest commit. * Thu Jun 28 2018 Greg Wildman - 0.13-11 - Patch for XDG folder compliance * Thu Jun 28 2018 Greg Wildman - 0.13-10 - Update config file detection * Sun Sep 25 2016 Greg Wildman - 0.31-7 - Include GUI .desktop file and appdata xml. * Sun Sep 25 2016 Greg Wildman - 0.31-6 - Include ROM01 as well. * Fri Dec 18 2015 Greg Wildman - 3.2-1 - Initial spec.