From 8aef79671f14624ea0ec1968ef1e6715363d6dae Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Sun, 15 Mar 2026 16:26:46 -0500 Subject: [PATCH] add: enum_tools (#10628) --- anda/langs/python/enum-tools/anda.hcl | 6 +++ anda/langs/python/enum-tools/enum-tools.spec | 47 ++++++++++++++++++++ anda/langs/python/enum-tools/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/langs/python/enum-tools/anda.hcl create mode 100644 anda/langs/python/enum-tools/enum-tools.spec create mode 100644 anda/langs/python/enum-tools/update.rhai diff --git a/anda/langs/python/enum-tools/anda.hcl b/anda/langs/python/enum-tools/anda.hcl new file mode 100644 index 0000000000..fa4ffe84f2 --- /dev/null +++ b/anda/langs/python/enum-tools/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "enum-tools.spec" + } +} diff --git a/anda/langs/python/enum-tools/enum-tools.spec b/anda/langs/python/enum-tools/enum-tools.spec new file mode 100644 index 0000000000..0c50face23 --- /dev/null +++ b/anda/langs/python/enum-tools/enum-tools.spec @@ -0,0 +1,47 @@ +%global pypi_name enum_tools +%global _desc Tools to expand Python's enum module. + +Name: python-%{pypi_name} +Version: 0.13.0 +Release: 1%?dist +Summary: Tools to expand Python's enum module +License: LGPL-3.0-or-later +URL: https://enum-tools.readthedocs.io/en/latest/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-whey + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: python3-enum-tools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n enum_tools-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files enum_tools + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE + +%changelog +* Sun Mar 15 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/enum-tools/update.rhai b/anda/langs/python/enum-tools/update.rhai new file mode 100644 index 0000000000..05e5175c4a --- /dev/null +++ b/anda/langs/python/enum-tools/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("enum_tools"));