File NooDS.spec of Package NooDS

#
# spec file for package NooDS
#
# Copyright (c) 2022 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:           NooDS
Version:        git20230103
Release:        0
Summary:        A (hopefully!) speedy NDS emulator
License:        GPL-3.0-only
Group:          System/Emulators/Other
URL:            https://github.com/Hydr8gon/NooDS
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  portaudio-devel
BuildRequires:  update-desktop-files
BuildRequires:  wxGTK3-3_2-devel

%description
The goal of NooDS is to be a fast and portable Nintendo DS emulator. It's not quite there speed-wise, but it does
offer most other features that you might expect from a DS emulator. It even supports GBA backwards compatability!

%prep
%autosetup -p1 -c %{name}-%{version}

%build
%make_build

%install
make install DESTDIR=%{buildroot}%{_prefix}

%suse_update_desktop_file -i com.hydra.noods

%filetriggerin -- %{_datadir}/applications
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true

%filetriggerpostun -- %{_datadir}/applications
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true

%files
%license LICENSE
%doc README.md
%{_bindir}/noods
%{_datadir}/applications/com.hydra.noods.desktop
%{_datadir}/icons/hicolor/

%changelog
openSUSE Build Service is sponsored by