From 9716ce8e112e6a159524c79d9f9200a5efa1935c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 25 May 2026 00:31:11 -0500 Subject: [PATCH] add: wget (#12596) (#12597) (cherry picked from commit 52f9838c49457f4ad5b3b2049f335d2ae003b677) Co-authored-by: J. <105894089+Its-J@users.noreply.github.com> --- anda/langs/python/wget/anda.hcl | 6 ++++ anda/langs/python/wget/update.rhai | 1 + anda/langs/python/wget/wget.spec | 47 ++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 anda/langs/python/wget/anda.hcl create mode 100644 anda/langs/python/wget/update.rhai create mode 100644 anda/langs/python/wget/wget.spec diff --git a/anda/langs/python/wget/anda.hcl b/anda/langs/python/wget/anda.hcl new file mode 100644 index 0000000000..34e120a05f --- /dev/null +++ b/anda/langs/python/wget/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "wget.spec" + } +} diff --git a/anda/langs/python/wget/update.rhai b/anda/langs/python/wget/update.rhai new file mode 100644 index 0000000000..e1b4acd9d8 --- /dev/null +++ b/anda/langs/python/wget/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("wget")); diff --git a/anda/langs/python/wget/wget.spec b/anda/langs/python/wget/wget.spec new file mode 100644 index 0000000000..63ae72b24e --- /dev/null +++ b/anda/langs/python/wget/wget.spec @@ -0,0 +1,47 @@ +%global pypi_name wget +%global _desc Pure Python download utility. + +%global commit fdd3a0f8404ccab90f939f9952af139e6c55142a +%global commit_date 20141004 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: python-%{pypi_name} +Version: 3.2^%{commit_date}git%{shortcommit} +Release: 1%{?dist} +Summary: Pure Python download utility +License: LicenseRef-Fedora-Public-Domain +URL: https://pypi.org/project/wget/ +Source0: https://github.com/steveej/python-wget/archive/%commit/python-wget-%commit.zip +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip + +Packager: Its-J + +%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 %{name}-%{commit} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files wget + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.txt + +%changelog +* Sun May 24 2026 Its-J +- Initial commit