LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mupen64plus.spec of Package mupen64plus (Project home:KAMiKAZOW:Emulators)

#
# Spec file for package Mupen64Plus
#
# Copyright © 2008–2010 SUSE LINUX GmbH <uli@suse.de>
# Copyright © 2012 TingPing <tingping@tingping.se>
# Copyright © 2017 Huaren Zhong <huaren.zhong@gmail.com>
#
# 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:             mupen64plus
Summary:          Nintendo 64 emulator and plugins
Version:          2.5.9
Release:          1
Group:            Applications/Emulators
License:          GPL-2.0-or-later
URL:              https://github.com/mupen64plus/mupen64plus-core
Source:           mupen64plus-bundle-src-%{version}.tar.gz
BuildRequires:    binutils gcc-c++
BuildRequires:    freeglut-devel
BuildRequires:    libpng-devel
BuildRequires:    gtk2-devel
BuildRequires:    lirc-devel
BuildRequires:    nasm
BuildRequires:    pkgconfig(freetype2)
BuildRequires:    pkgconfig(gl)
BuildRequires:    pkgconfig(sdl2)
BuildRequires:    pkgconfig(SDL2_ttf)
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?suse_version} <= 1320
BuildRequires:    boost-devel
%endif
%if 0%{?suse_version} > 1320
BuildRequires:    libboost_filesystem-devel
BuildRequires:    libboost_system-devel
%endif

%if 0%{?fedora} > 26
%undefine _debugsource_packages
%endif

%description
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 one included OpenGL video plugin, called RiceVideo. There are
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.

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

%build
export RPM_OPT_FLAGS
CC="gcc $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS" \
COREDIR=%_libdir/%name/ PLUGINDIR=%_libdir/%name LIRC=1 bash -x m64p_build.sh

%install
PREFIX=$RPM_BUILD_ROOT/usr \
LIBDIR=$RPM_BUILD_ROOT%_libdir/%name \
MANDIR=$RPM_BUILD_ROOT%_mandir bash -x m64p_install.sh

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%_bindir/mupen64*
%_libdir/mupen64plus
%_datadir/mupen64plus
%doc %_mandir/*
%_datadir/applications/mupen64plus.desktop
%_datadir/icons/hicolor/*/apps/mupen64plus.*

%files devel
%_includedir/%name

%changelog