File arcem.spec of Package arcem

#
# spec file for package arcem
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


Name:           arcem
Version:        1.50.2
Release:        0
Summary:        Acorn Archimedes Emulator
License:        GPL-2.0-only
Group:          System/Emulators/Other
URL:            http://arcem.sourceforge.net
Source:         %{name}-%{version}-src.zip
Source1:        blank.adf.gz
Source2:        hostfs_hdform.adf.gz
Patch1:         0001-set-default-ROM-path.patch
BuildRequires:  unzip
BuildRequires:  xorg-x11-devel

%description
Acorn Archimedes emulator. Requires a RISC OS 2 or 3 ROM image. The default
name expected is /usr/share/arcem/ROM. You can override this with the "--rom"
option.

Some hints:
- Capture/uncapture the mouse pointer by pressing + on the numeric keypad.
- Floppy and hard disc images need to reside in the current directory and have
  to be named "FloppyImage<number>" and "HardImage<number>". Note that the
  number for the first drive is 0 for floppies and 1 for hard discs.
- Formatting floppy discs from the emulator does not work. You can find an
  empty formatted disc image in /usr/share/arcem.
- Hard discs have to be defined in the configuration file ("~/.arcemrc"). An
  example can be found in /usr/share/doc/packages/arcem/arcemrc.
- Use the parameter "--hostfsdir <directory>" to make host directories
  accessible from RISC OS. There is a floppy image containing the necessary
  RISC OS modules (as well as a tool for formatting hard discs) in
  /usr/share/arcem.

%prep
%setup -q -n %{name}-src
%patch1 -p1

%build
%make_build
%ifarch ppc ppc64 s390 s390x
HOST_BIGENDIAN=yes
%else
HOST_BIGENDIAN=no
%endif

%install
mkdir -p %{buildroot}%{_bindir}
%make_install prefix=%{buildroot}%{_prefix}
install -Dm 644 %{SOURCE1} %{SOURCE2} -t %{buildroot}%{_datadir}/arcem

%files
%attr(644,root,root) %license docs/COPYING
%attr(644,root,root) %doc arcemrc docs/*.*
%{_bindir}/arcem
%{_datadir}/arcem

%changelog
openSUSE Build Service is sponsored by