File mupen64plus.spec of Package mupen64plus

%global debug_package %{nil}

Name:      mupen64plus
Summary:   Nintendo 64 emulator and plugins
Version:   2.5
Release:   1
Group:     Applications/Emulators
License:   GPLv2
Source:    mupen64plus-bundle-src-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: SDL-devel, libpng-devel, gtk2-devel, SDL_ttf-devel, lirc-devel, boost-devel

Mupen64Plus is a cross-platform plugin-based N64 emulator which is capable of
accurately playing many games. Included are four MIPS R4300 CPU emulators, with
dynamic recompilers for 32-bit x86 and 64-bit amd64 systems, and necessary
plugins for audio, graphical rendering (RDP), signal co-processor (RSP), and
input. There is 1 included OpenGL video plugin, called RiceVideo. There are 3
other excellent video plugins being maintained by wahrhaft, called Arachnoid,
Glide64, and Z64.

%package devel
Summary:  Mupen64plus Headers
Group:    Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains headers for mupen64plus plugins.

%setup -qn mupen64plus-bundle-src-%{version}
##sed -i 's|x86_64 amd64|x86_64 aarch64 amd64|' source/mupen64plus-*/projects/unix/Makefile

COREDIR=%_libdir/%name/ PLUGINDIR=%_libdir/%name LIRC=1 bash -x

LIBDIR=$RPM_BUILD_ROOT%_libdir/%name \
MANDIR=$RPM_BUILD_ROOT%_mandir bash -x

%{__rm} -rf $RPM_BUILD_ROOT

%doc %_mandir/*

%files devel

* Thu Aug 17 2017 Huaren Zhong <> 2.5
- Rebuild for Fedora
* Sun Oct 14 2012 TingPing <> - 1.99.5-1
- first version for fedora based off opensuse's package