File opensimh.spec of Package opensimh
#
# spec file for package opensimh
#
# 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/
#
%define srcname simh
Name: opensimh
URL: http://simh.trailing-edge.com/
Version: 4.0.0+git20240905.2437b13
Release: 0
Summary: A collection of simulators of historically significant data processing systems
License: BSD-3-Clause
Group: System/Emulators/Other
Source: %{srcname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: cyreal-lobster-cyrillic-fonts
BuildRequires: dos2unix
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: help2man
BuildRequires: libpcap-devel
BuildRequires: libpng16-devel
BuildRequires: libslirp-devel
BuildRequires: libvdeplug-devel
BuildRequires: pcre-devel
BuildRequires: png++-devel
BuildRequires: SDL2-devel
BuildRequires: SDL2_ttf-devel
BuildRequires: zlib-devel
%description
This package contains simulators of the following systems:
Data General Nova
Data General Eclipse
Digital Equipment Corporation PDP-1
Digital Equipment Corporation PDP-4
Digital Equipment Corporation PDP-7
Digital Equipment Corporation PDP-8
Digital Equipment Corporation PDP-9
Digital Equipment Corporation PDP-10
Digital Equipment Corporation PDP-11
Digital Equipment Corporation PDP-15
Digital Equipment Corporation PDP-18B
IBM 1401
IBM System 3
Hewlett-Packard HP 2100
Honeywell H316
MITS Altair 8800
A disk image with UNIX V7 for the PDP-11 is included, instructions on
how to make it work can be found in the file
/usr/share/doc/packages/simh/simh_swre.txt in chapter 2.1.3.
A selection of software for other systems can be found at The Computer
History Simulation Project at http://simh.trailing-edge.com/
%prep
%setup -n %{srcname}-%{version}
%build
%{cmake} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
..
make RPM_OPT_FLAGS="%{optflags}" %{?_smp_mflags}
%install
dos2unix 0readmeAsynchIO.txt
dos2unix 0readme_39.txt
dos2unix 0readme_ethernet.txt
dos2unix SIMH-V4-status.md
%cmake_install
%files
%defattr(-,root,root)
%doc 0*.txt
%doc *.md
%doc doc/*
%license LICENSE.txt
%{_bindir}/*
%changelog