File fMSX.spec of Package fMSX
#
# spec file for package fMSX
#
# 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/
#
%define _over 60
Name: fMSX
Version: 6.0
Release: 0
Summary: MSX Emulator
License: SUSE-Permissive
URL: https://fms.komkon.org/fMSX/
Source: https://fms.komkon.org/fMSX/fMSX%{_over}.zip
Source1: ROMs.tar.gz
Patch0: %{name}40.patch
Patch1: %{name}40-roms.patch
BuildRequires: unzip
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(zlib)
%description
Mainline fMSX for Unix.
%prep
%setup -q -c -a 1
%patch0
%patch1
%build
cd fMSX/Unix
make %{?_smp_mflags}
%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 fMSX/Unix/fmsx %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/fMSX
install -m 644 ROMs/* %{buildroot}%{_datadir}/fMSX
install -m 644 fMSX/Unix/CARTS.SHA %{buildroot}%{_datadir}/fMSX
%files
%doc fMSX/fMSX.html
%{_bindir}/fmsx
%{_datadir}/fMSX
%changelog