File tuxemon.spec of Package tuxemon
#
# spec file for package tuxemon
#
# Copyright (c) 2021 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/
#
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pname Tuxemon
Name: tuxemon
Version: 0.4.26
Release: 0
Summary: Open source monster-fighting RPG
License: GPL-2.0-only AND CC-BY-SA-3.0
URL: https://www.tuxemon.org/
Source: https://github.com/%{pname}/%{pname}/archive/refs/tags/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-mod-path.patch -- Fix path to mod directory
Patch0: fix-mod-path.patch
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: libShake-devel
BuildRequires: python-rpm-macros
BuildRequires: python3
BuildRequires: python3-Babel
BuildRequires: python3-pygame
BuildRequires: python3-setuptools
BuildArch: noarch
# Version scheme changed
Obsoletes: %{name} = 2020.10.29
Requires: python-neteria
Requires: python-pyscroll >= 2.19.2
Requires: python3-Pillow
Requires: python3-cbor
Requires: python3-click
Requires: python3-natsort
Requires: python3-pygame
Requires: python3-pytmx
Requires: python3-requests >= 2.19.1
%description
Tuxemon is a free, open source monster-fighting RPG.
%prep
%setup -q -n %{pname}-%{version}
%patch0 -p1
%build
%python3_build
%install
%python3_install
cp -r mods %{buildroot}%{python3_sitelib}/tuxemon
%fdupes %{buildroot}%{python3_sitelib}/tuxemon
%files
%license LICENSE
%{_bindir}/tuxemon
%{python3_sitelib}/tuxemon*
%changelog