File libretro-desmume.spec of Package libretro-desmume

# spec file for package libretro-desmume
# 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

Name:           libretro-desmume
Version:        0~git20190902
Release:        0
Summary:        DeSmuME libretro core for Nintendo DS emulation
License:        GPL-2.0-only
Group:          System/Emulators/Other
Source:         %{name}-%{version}.tar.xz

BuildRequires:  Mesa-devel
BuildRequires:  gcc-c++
BuildRequires:  libpcap-devel
BuildRequires:  make

DeSmuME is a Nintendo DS emulator. This package is for
RetroArch/libretro front-end.

%setup -q

cd desmume/src/frontend/libretro
make -f Makefile.libretro

mkdir -p %{buildroot}%{_libdir}/libretro
cp desmume/src/frontend/libretro/ %{buildroot}%{_libdir}/libretro

%dir %{_libdir}/libretro