From feda493cd7f1e51a629224bb3da65662066d682e Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 27 Dec 2025 15:05:25 -0800 Subject: [PATCH] add: standard-chunk (#8670) (#8700) (cherry picked from commit 4af9af2e16baf80a0f1bd95549e512cacd2d231e) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/standard-chunk/anda.hcl | 6 +++ .../python/standard-chunk/standard-chunk.spec | 52 +++++++++++++++++++ anda/langs/python/standard-chunk/update.rhai | 1 + 3 files changed, 59 insertions(+) create mode 100644 anda/langs/python/standard-chunk/anda.hcl create mode 100644 anda/langs/python/standard-chunk/standard-chunk.spec create mode 100644 anda/langs/python/standard-chunk/update.rhai diff --git a/anda/langs/python/standard-chunk/anda.hcl b/anda/langs/python/standard-chunk/anda.hcl new file mode 100644 index 0000000000..a4a563f6d0 --- /dev/null +++ b/anda/langs/python/standard-chunk/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "standard-chunk.spec" + } +} diff --git a/anda/langs/python/standard-chunk/standard-chunk.spec b/anda/langs/python/standard-chunk/standard-chunk.spec new file mode 100644 index 0000000000..c179ecdc74 --- /dev/null +++ b/anda/langs/python/standard-chunk/standard-chunk.spec @@ -0,0 +1,52 @@ +%global pypi_name standard-chunk +%global _desc Standard library chunk redistribution. + +Name: python-%{pypi_name} +Version: 3.13.0 +Release: 1%?dist +Summary: Standard library chunk redistribution +License: PSF-2.0 +URL: https://github.com/youknowone/python-deadlib +Source0: %url/archive/refs/tags/v%version.tar.gz +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} +Provides: standard-chunk +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n python-deadlib-%{version} + +%build +pushd chunk +%pyproject_wheel +popd + +%install +pushd chunk +%pyproject_install +%pyproject_save_files chunk +popd + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc chunk/Doc/chunk.rst +%doc chunk/README.rst +%license chunk/LICENSE + +%changelog +* Fri Dec 26 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/standard-chunk/update.rhai b/anda/langs/python/standard-chunk/update.rhai new file mode 100644 index 0000000000..53d1cc3399 --- /dev/null +++ b/anda/langs/python/standard-chunk/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("standard-chunk"));