File openmsx-catapult.spec of Package openmsx-catapult

#
# spec file for package openmsx-catapult
#
# Copyright (c) 2020 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:           openmsx-catapult
Version:        19.0
Release:        0
Summary:        GUI for openMSX
License:        GPL-2.0-only
Group:          System/Emulators/Other
URL:            https://openmsx.org/
Source:         %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE
Patch0:         adjust-default-paths.patch
BuildRequires:  gcc-c++
BuildRequires:  libxml2-devel
BuildRequires:  python3
BuildRequires:  wxWidgets-devel
Requires:       openmsx

%description
openMSX Catapult is an optional part (a subproject) of openMSX, the MSX
emulator that aims for perfection. With Catapult you can control openMSX via
a graphical user interface. A release of Catapult is compatible with the
current release of openMSX.

%prep
%setup -q
%patch0

%build
CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" make %{?_smp_mflags}

%install
make install INSTALL_BASE=%{buildroot}/usr/lib/openMSX-Catapult
install -d -m 755 %{buildroot}/usr/bin
ln -sf ../lib/openMSX-Catapult/bin/catapult %{buildroot}/usr/bin/catapult
install -d -m 755 %{buildroot}%{_datadir}/applications
sed -e "s|%%INSTALL_BASE%%|/usr/lib/openMSX-Catapult|" desktop/openMSX-Catapult.desktop >%{buildroot}%{_datadir}/applications/openMSX-Catapult.desktop

%files
%doc README
/usr/bin/catapult
/usr/lib/openMSX-Catapult
%{_datadir}/applications/openMSX-Catapult.desktop

%changelog
openSUSE Build Service is sponsored by