File desmume.spec of Package desmume

#
# spec file for package desmume
#
# Copyright © 2007–2009 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright © 2013 Stefan Elser
# Copyright © 2013 Ryan Bach
# Copyright © 2017–2018 Keith Hizal
# Copyright © 2018–2021 Markus S.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

Name:           desmume
Version:        0.9.11
Release:        1
License:        GPL-2.0-or-later
Summary:        Nintendo DS Emulator
Url:            http://desmume.org/
Group:          System/Emulators/Other
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake binutils
BuildRequires:  cmake
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gtkglext-devel
BuildRequires:  intltool
BuildRequires:  libpcap-devel
BuildRequires:  lua-devel
BuildRequires:  make
BuildRequires:  meson
BuildRequires:  soundtouch-devel
BuildRequires:  tinyxml-devel
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(sdl2)
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%description
DeSmuME is a Nintendo DS emulator.

%prep
%setup
cd desmume
dos2unix AUTHORS
dos2unix COPYING

%build
cd desmume/src/frontend/posix
%meson
%meson_build

%install
cd desmume/src/frontend/posix
%meson_install

%fdupes -s %{buildroot}

%clean
rm -rf '%{buildroot}'

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_datadir}/applications/org.desmume.DeSmuME.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.desmume.DeSmuME.svg
%{_datadir}/metainfo/org.desmume.DeSmuME.metainfo.xml
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by