From 4851a1455766adef7516536e44cfd0aae7ccc079 Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Sun, 7 Jun 2026 16:14:55 -0500 Subject: [PATCH] add: torrentp Signed-off-by: Owen-sz --- anda/langs/python/torrentp/anda.hcl | 6 +++ anda/langs/python/torrentp/torrentp.spec | 47 ++++++++++++++++++++++++ anda/langs/python/torrentp/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/langs/python/torrentp/anda.hcl create mode 100644 anda/langs/python/torrentp/torrentp.spec create mode 100644 anda/langs/python/torrentp/update.rhai diff --git a/anda/langs/python/torrentp/anda.hcl b/anda/langs/python/torrentp/anda.hcl new file mode 100644 index 0000000000..a4f3f25f91 --- /dev/null +++ b/anda/langs/python/torrentp/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "torrentp.spec" + } +} diff --git a/anda/langs/python/torrentp/torrentp.spec b/anda/langs/python/torrentp/torrentp.spec new file mode 100644 index 0000000000..e66328d4e5 --- /dev/null +++ b/anda/langs/python/torrentp/torrentp.spec @@ -0,0 +1,47 @@ +%global pypi_name torrentp +%global _desc Python torrent downloader - Download from torrent with .torrent file or magnet link, with just 3 lines of python code. + +Name: python-%{pypi_name} +Version: 0.2.7 +Release: 1%{?dist} +Summary: Python torrent downloader - Download from torrent with .torrent file or magnet link, with just 3 lines of python code +License: BSD-2-Clause +URL: https://github.com/iw4p/torrentp +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} +%pyproject_patch_dependency rich:drop_constraints + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%{_bindir}/torrentp + +%changelog +* Sun Jun 07 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/torrentp/update.rhai b/anda/langs/python/torrentp/update.rhai new file mode 100644 index 0000000000..9f038e875f --- /dev/null +++ b/anda/langs/python/torrentp/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("torrentp"));