File python-m64py.spec of Package python-m64py

#

BuildRequires: qt6-tools-linguist qt6-tools python3-PyQt6-devel qt6-base-common-devel
# spec file for package python-m64py
#
# Copyright (c) 2025 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 https://bugs.opensuse.org/
#
# Enable libalternatives by default
%bcond_without libalternatives


Name:           python-m64py
Version:        0.3.0
Release:        0
Summary:        A frontend for Mupen64Plus
License:        None
URL:            None
Source:         m64py-%{version}.tar.gz
Source15: file.specpart
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module PyQt6}
BuildRequires:  %{python_module PySDL2}
# /SECTION
BuildRequires:  fdupes
BuildRequires:  alts
Requires:       alts
Requires:       python-PyQt6
Requires:       python-PySDL2
BuildArch:      noarch
%python_subpackages

%description
None

%prep
%autosetup -p1 -n m64py-%{version}

%build
export PATH=$PATH:%{_libexecdir}/qt6

%pyproject_wheel

%install
install -Dm644 %{SOURCE15} %{specpartsdir}/main.specpart

%pyproject_install
 mv %{buildroot}%{_datadir} $PWD/vcs; rmdir %{buildroot}/%{_datadir} ||: ; export VCS=$PWD/vcs ; 

%python_clone -a %{buildroot}%{_bindir}/m64py

%python_expand %fdupes %{buildroot}%{$python_sitelib}
  mv $VCS/* %{buildroot}%{_datadir}/ 


%files %{python_files}
%doc AUTHORS CHANGELOG README.rst
%license COPYING LICENSES
%python_alternative %{_bindir}/m64py
%{python_sitelib}/m64py
%{python_sitelib}/m64py-%{version}.dist-info







%changelog
openSUSE Build Service is sponsored by