LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File m64py.spec of Package m64py (Project Emulators)

# spec file for package m64py
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/

Name:             m64py
Version:          0.2.4
Release:          0
Summary:          A frontend for Mupen64Plus
License:          GPL-3.0
Group:            System/Emulators/Other
Url:              http://m64py.sourceforge.net/
Source:           https://github.com/mupen64plus/mupen64plus-ui-python/releases/download/%{version}/m64py-%{version}.tar.gz
# PATCH-FIX-OPENSUSE m64py-0.2.4_xdg.patch -- use correct paths for icons
Patch0:           m64py-0.2.4_xdg.patch

BuildArch:        noarch
BuildRequires:    fdupes
BuildRequires:    python-qt5-devel
BuildRequires:    update-desktop-files
BuildRoot:        %{_tmppath}/%{name}-%{version}-build

Requires:         python-qt5
Requires:         python-PySDL2
Requires:         libmupen64plus2 >= 2.0
Requires:         mupen64plus-plugin-audio
Requires:         mupen64plus-plugin-input
Requires:         mupen64plus-plugin-rsp
Requires:         mupen64plus-plugin-video
Requires(post):   hicolor-icon-theme
Requires(postun): hicolor-icon-theme

Provides:         mupen64plus-ui

M64Py is a Qt5 front-end (GUI) for Mupen64Plus 2.0, a cross-platform plugin-based Nintendo 64 emulator.
Front-end is written in Python and it provides a user-friendly interface over Mupen64Plus shared library.

%setup -q
%patch0 -p0

python setup.py build

python setup.py install -O1 --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python_sitelib} --record=INSTALLED_FILES

# Use correct category in desktop file
%suse_update_desktop_file -r %{name} "System;Emulator"

# fdupes
%fdupes %{buildroot}%{python_sitelib}/%{name}/
%fdupes %{buildroot}%{_datadir}/icons/hicolor/96x96/



%dir %{python_sitelib}/%{name}
%dir %{python_sitelib}/%{name}/core
%dir %{python_sitelib}/%{name}/frontend
%dir %{python_sitelib}/%{name}/ui