File X-Emulators.spec of Package X-Emulators

#
# spec file for package X-Emulators
#
# 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/
#

Name:           X-Emulators
Version:        0~git20250423.84a7e254
Release:        0
Summary:        Emulations of some 8-bit machines
License:        GPL-2.0
URL:            https://github.com/lgblgblgb/xemu
Source0:        xemu-%{version}.tar.gz
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(readline)
BuildRequires:  pkgconfig(sdl2)

%description
Emulators running on Linux/Unix/Windows/OSX of various (mainly 8 bit)
machines, including the Commodore LCD and Commodore 65 and MEGA65 as
well.

 * MEGA65: Emulation of the modern reincarnation of the Commodore 65
   with many-many enhancements and new features: https://mega65.org/
 * Commodore 65: Emulation of Commodore's final, never finished 8 bit
   machine, quite rare, and expensive to buy.
 * Commodore LCD: Emulation of Commodore's portable LCD based computer,
   never released, about 4-5 units estimated to exist (much more rare
   than the Commodore 65, and not possible to get one). I've created
   the first working emulation of this machine ever. This emulator
   within Xemu is a refactored version of that emulator of mine.
 * Enterprise 128: Emulation of a not so well known but neat, versatile,
   Z80 based computer with very unique features among 8 bit systems,
   both in hardware and software solutions.
 * Videoton TV Computer ("TVC"): Emulation of a Hungarian computer.
 * Primo: Emulation of a simple but neat Hungarian computer.

%prep
%autosetup -n xemu-%{version}
sed -i 's|/usr/local/bin|%{buildroot}%{_bindir}|g' build/Makefile.common

%build
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
%make_install

%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_bindir}/xemu-xc65
%{_bindir}/xemu-xclcd
%{_bindir}/xemu-xep128
%{_bindir}/xemu-xmega65
%{_bindir}/xemu-xprimo
%{_bindir}/xemu-xtvc
%{_bindir}/xemu-xvic20

%changelog
openSUSE Build Service is sponsored by