File xcpc.spec of Package xcpc

#
# spec file for package xcpc
#
# Copyright (c) 2026 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:           xcpc
Version:        0.52.1
Release:        0
Summary:        Amstrad CPC emulator for Linux, BSD and Unix
License:        GPL-3.0
URL:            https://www.xcpc-emulator.net
Source0:        https://github.com/ponceto/xcpc-emulator/releases/download/xcpc-%{version}/xcpc-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(gtk+-3.0)

%description
Xcpc is a portable Amstrad CPC 464/664/6128 emulator written in
C and C++. It is designed to run on any POSIX compliant system
having an X11 server, including Linux, BSD and Unix.

Note there is absolutely no support for Microsoft Windows operating
systems and there never will be. Please do not ask me to add such
functionality.

Xcpc is designed to emulate classic range of the Amstrad CPC systems:

 * Amstrad CPC 464 (v1).
 * Amstrad CPC 664 (v2).
 * Amstrad CPC 6128 (v3).

 The Amstrad CPC+ range and the GX4000 console are not currently emulated
 and likely will not be.

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README.md doc/EXECUTE.md doc/FEATURES.md
%license doc/LICENSES.md
%{_bindir}/xcpc
%{_datadir}/applications/xcpc.desktop
%{_datadir}/mime/packages/x-amstrad-cpc-disk-image.xml
%{_datadir}/mime/packages/x-amstrad-cpc-snapshot.xml
%{_datadir}/pixmaps/xcpc.png
%{_datadir}/xcpc/roms/*
%dir %{_datadir}/xcpc
%dir %{_datadir}/xcpc/roms
%exclude %{_datadir}/xcpc/disks/README.md
%exclude %{_datadir}/xcpc/roms/README.md
%exclude %{_datadir}/xcpc/snapshots/README.md

%changelog
openSUSE Build Service is sponsored by