File nile.spec of Package nile
#
# spec file for package nile
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
Name: nile
Version: 1.1.2
Release: 0
Summary: Unofficial Amazon Games client
License: GPL-3.0-only
URL: https://github.com/imLinguin/nile.git
Source: %{name}-%{version}.tar.xz
BuildRequires: python313-PyInstaller
BuildRequires: %{python_module json5 >= 0.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module protobuf >= 4.0}
BuildRequires: %{python_module pycryptodome >= 3.0}
BuildRequires: %{python_module requests < 3.0}
BuildRequires: %{python_module setuptools}
BuildArch: noarch
%description
Nile is a CLI and GUI tool for managing and playing games from Amazon.
%prep
%autosetup -p1
# Fixes pyproject and adds a data section.
cat >> pyproject.toml <<'PYEOF'
[tool.setuptools.packages.find]
where = ["."]
include = ["nile", "nile.*"]
[tool.setuptools.package-data]
"nile" = ["assets/**/*"]
PYEOF
%build
pyinstaller --onefile --name nile nile/cli.py
%install
install -Dm0755 dist/nile %{buildroot}/%{_bindir}/nile
%files
%license LICENSE*
%{_bindir}/nile
%changelog