File xhomer.spec of Package xhomer
##
# spec file for package xhomer
#
# 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/
#
%define srcversion 2-19-24
Name: xhomer
Version: 240219
Release: 0
Summary: DEC Pro 350 Emulator
License: MIT and GPL-2.0
Group: System/Emulators/Other
URL: https://xhomer.isani.org/xhomer
Source: %{name}-%{srcversion}.tgz
Patch1: 0001-Fix-prototypes.patch
Patch2: 0002-Fix-GCC-warnings.patch
BuildRequires: fdupes
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: make
%description
Xhomer is a machine emulator for the Digital Equipment Corporation (DEC) Pro 350 computer, a
PDP-11-based machine that was sold in the early to mid-'80's. Xhomer is based on the PDP-11
CPU core from the SIMH simulator, and is written entirely in C.
%package docs
Summary: DEC Pro 350 Emulator documentation
License: MIT and GPL-2.0
%description docs
This is the (html) documentation for xhomer, a DEC Pro 350 emulator.
%prep
%setup -q -n %{name}-%{srcversion}
%patch -P1 -p1
%patch -P2 -p1
%build
make %{?_smp_mflags}
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_docdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}
install -m 644 DOC/* %{buildroot}%{_docdir}/%{name}
install -m 755 %{name} %{buildroot}%{_bindir}
install -m 644 %{name}.cfg %{buildroot}%{_datadir}/%{name}
%fdupes %{buildroot}%{_docdir}
%files
%defattr(-, root, root)
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%license COPYING LICENSE SIMH
%doc README
%files docs
%defattr(-, root, root)
%license COPYING LICENSE
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%exclude %{_docdir}/%{name}/README
%changelog