From 57418cbb207e82e27cad8edda9d5ebb61d5ddb65 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Mon, 3 Nov 2025 20:11:11 -0600 Subject: [PATCH] add: spake2 (#7055) * add: spake2 Signed-off-by: Owen-sz * changelog Signed-off-by: Owen-sz --------- Signed-off-by: Owen-sz --- anda/langs/python/spake2/anda.hcl | 6 ++++ anda/langs/python/spake2/spake2.spec | 49 ++++++++++++++++++++++++++++ anda/langs/python/spake2/update.rhai | 1 + 3 files changed, 56 insertions(+) create mode 100644 anda/langs/python/spake2/anda.hcl create mode 100644 anda/langs/python/spake2/spake2.spec create mode 100644 anda/langs/python/spake2/update.rhai diff --git a/anda/langs/python/spake2/anda.hcl b/anda/langs/python/spake2/anda.hcl new file mode 100644 index 0000000000..2cc82f2e67 --- /dev/null +++ b/anda/langs/python/spake2/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "spake2.spec" + } +} diff --git a/anda/langs/python/spake2/spake2.spec b/anda/langs/python/spake2/spake2.spec new file mode 100644 index 0000000000..64061662c8 --- /dev/null +++ b/anda/langs/python/spake2/spake2.spec @@ -0,0 +1,49 @@ +%global pypi_name spake2 +%global _desc pure-python implementation of the SPAKE2 Password-Authenticated Key Exchange algorithm. + +Name: python-%{pypi_name} +Version: 0.9 +Release: 1%?dist +Summary: pure-python implementation of the SPAKE2 Password-Authenticated Key Exchange algorithm +License: MIT +URL: https://github.com/warner/python-spake2 +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +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 spake2-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files spake2 + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%python3_sitelib/spake2-%version.dist-info/* + +%changelog +* Mon Nov 03 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/spake2/update.rhai b/anda/langs/python/spake2/update.rhai new file mode 100644 index 0000000000..ac1e790f98 --- /dev/null +++ b/anda/langs/python/spake2/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("spake2"));