Name: aria2p Version: 0.12.1 %global forgeurl https://github.com/pawamoy/%{name} %global tag %{version} %global date 20241225 %forgemeta Release: 1%{?dist} Summary: Command-line tool and library to interact with an aria2c daemon process with JSON-RPC License: ISC URL: %{forgeurl} Source: %{forgesource} #------------------------------------------------------------------------------ BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: libxcrypt-compat BuildRequires: python3-build BuildRequires: python3-devel BuildRequires: python3-distutils-extra BuildRequires: python3-installer BuildRequires: python3-psutil BuildRequires: python3-pytest BuildRequires: python3-responses BuildRequires: python3-setuptools BuildRequires: python3-wheel Requires: python3-loguru Requires: python3-platformdirs Requires: python3-requests Requires: python3-websocket-client Recommends: python3-asciimatics Recommends: python3-pyperclip #------------------------------------------------------------------------------ %description aria2p (p for Python) is a command-line client that can interact with an aria2c daemon. It is not an official client. There are other Python packages allowing you to interact with an aria2c daemon. These other packages do not offer enough usability (in my opinion), this is why I'm developing aria2p. Purpose: aria2c can run in the foreground, for one-time downloads, or in the background, as a daemon. This is where aria2p intervenes: when an instance of aria2c is running in the background, aria2p will be able to communicate with it to add downloads to the queue, remove, pause or resume them, etc. In order for aria2p to be able to communicate with the aria2c process, RPC mode must be enabled with the --enable-rpc option of aria2c. RPC stands for Remote Procedure Call. Although aria2c supports both JSON-RPC and XML-RPC protocols, aria2p works with JSON only (not XML). More information about how to configure aria2c to run as a daemon with RPC mode enabled can be found in the Configuration section of the documentation. %files -f %{pyproject_files} %license LICENSE %{_bindir}/%{name} #------------------------------------------------------------------------------ %pyproject_extras_subpkg -n aria2p tui %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires -x tui %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{name} -L %check %pyproject_check_import # %%pytest tests #------------------------------------------------------------------------------ %changelog * Wed Feb 25 2026 Hazel Bunny - 0.12.1-1 - initial package