From ecfa3174f9980641a270930d8e5572c2f39831de Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 8 Oct 2025 20:41:16 -0700 Subject: [PATCH] add: PGPy13 (#6722) (#6726) (cherry picked from commit 638b3daabba26abba55c05b1d5ffddb6e774e2e7) Signed-off-by: Owen Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/pgpy13/anda.hcl | 6 +++ anda/langs/python/pgpy13/pgpy13.spec | 57 ++++++++++++++++++++++++++++ anda/langs/python/pgpy13/update.rhai | 1 + 3 files changed, 64 insertions(+) create mode 100644 anda/langs/python/pgpy13/anda.hcl create mode 100644 anda/langs/python/pgpy13/pgpy13.spec create mode 100644 anda/langs/python/pgpy13/update.rhai diff --git a/anda/langs/python/pgpy13/anda.hcl b/anda/langs/python/pgpy13/anda.hcl new file mode 100644 index 0000000000..b15add48ac --- /dev/null +++ b/anda/langs/python/pgpy13/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "pgpy13.spec" + } +} diff --git a/anda/langs/python/pgpy13/pgpy13.spec b/anda/langs/python/pgpy13/pgpy13.spec new file mode 100644 index 0000000000..678d1f481c --- /dev/null +++ b/anda/langs/python/pgpy13/pgpy13.spec @@ -0,0 +1,57 @@ +%global pypi_name PGPy13 +%global _desc PGPy is a Python library for implementing Pretty Good Privacy into Python programs, conforming to the OpenPGP specification per RFC 4880. + +Name: python-%{pypi_name} +Version: 0.6.1rc1 +Release: 1%?dist +Summary: Pretty Good Privacy for Python +License: BSD-3-Clause +URL: https://github.com/memory/PGPy +Source0: https://files.pythonhosted.org/packages/source/P/PGPy13/pgpy13-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3 +BuildRequires: python3.10 +BuildRequires: python3-build +BuildRequires: python3-installer +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-devel +BuildRequires: python3-installer +BuildRequires: git + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: PGPy13 +Provides: pgpy13 +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n pgpy13-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files pgpy + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc + +%changelog +* Wed Oct 08 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/pgpy13/update.rhai b/anda/langs/python/pgpy13/update.rhai new file mode 100644 index 0000000000..2f77501f77 --- /dev/null +++ b/anda/langs/python/pgpy13/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("PGPy13"));