File axpbox.spec of Package axpbox

#
# spec file for package axpbox
#
# Copyright (c) 2021 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:           axpbox
Version:        1.1.2
Release:        0
Summary:        Alpha emulator
License:        GPL-2.0-or-later
URL:            https://github.com/lenticularis39/axpbox
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  cmake >= 3.10
BuildRequires:  gcc-c++
%if 0%{?suse_version} > 1500
BuildRequires:  pkgconfig(libpcap)
%else
BuildRequires:  libpcap-devel
%endif
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(x11)

%description
AXPbox is a fork of the discontinued es40 emulator. It could theoretically
be used for running any operating system that runs on the OpenVMS or Tru64
PALcode (e.g. OpenVMS, Tru64 UNIX, Linux, NetBSD), however as of now only
OpenVMS and some versions of NetBSD can be installed.

The emulator supports SCSI, IDE, serial ports, Ethernet (using PCAP) and
VGA graphics (using SDL).

%prep
%autosetup

%build
%cmake
%cmake_build

%install
install -Dm0755 build/axpbox %{buildroot}%{_bindir}/%{name}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by