File libretro-gambatte.spec of Package libretro-gambatte

# spec file for package libretro-gambatte
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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-gambatte
Version:        0~20170829.f020a1f
Release:        0
Summary:        Game Boy Emulator for Retro-based frontends
License:        GPL-2.0
Group:          Amusements/Games/Other
Source:         gambatte-libretro-%{version}.tar.xz
Source1:        gambatte.libretro
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains a libretro port of the Gambatte emulator.
It can be used by various frontends to load Game Boy / Game Boy Color games.

%setup -q -n gambatte-libretro-%{version}

make %{?_smp_mflags} prefix=%{_prefix} core_installdir=%{_libdir}/libretro/

make DESTDIR=%{buildroot} install prefix=%{_prefix} core_installdir=%{_libdir}/libretro/
mkdir -p %{buildroot}%{_libdir}/libretro/
install -m644 -p %{SOURCE1} %{buildroot}%{_libdir}/libretro/

%dir %{_libdir}/libretro

openSUSE Build Service is sponsored by