File rpcemu.spec of Package rpcemu

#
# spec file for package rpcemu
#
# Copyright (c) 2023 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:           rpcemu
Version:        0.9.4
Release:        0
Summary:        Acorn RiscPC Emulator
License:        GPL-2.0-only
URL:            https://www.marutan.net/rpcemu
Source0:        http://www.marutan.net/rpcemu/%{version}/%{name}-%{version}.tar.gz
Patch2:         %{name}-config.patch
BuildRequires:  dos2unix
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Widgets)
ExclusiveArch:  %{ix86} x86_64

%description
Acorn RiscPC emulator. Requires RISC OS ROMs >= 3.70 in
%{_datadir}/rpcemu/roms. Press Ctrl + End to access the GUI.

%prep
%autosetup -p1
dos2unix readme.txt

%build
%qmake5 src/qt5
make %{?_smp_mflags}
%qmake5 src/qt5 "CONFIG+=dynarec"
make %{?_smp_mflags}

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 rpcemu-interpreter %{buildroot}%{_bindir}
install -m 755 rpcemu-recompiler %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/rpcemu
cp -a cmos.ram rpc.cfg roms %{buildroot}%{_datadir}/rpcemu
chmod -x riscos-progs/HostFS/hostfs*

%files
%doc readme.txt riscos-progs
%{_bindir}/rpcemu-interpreter
%{_bindir}/rpcemu-recompiler
%config %{_datadir}/rpcemu/rpc.cfg
%config %{_datadir}/rpcemu/cmos.ram
%{_datadir}/rpcemu/roms
%dir %{_datadir}/rpcemu

%changelog
openSUSE Build Service is sponsored by