diff --git a/anda/langs/python/cobs/anda.hcl b/anda/langs/python/cobs/anda.hcl new file mode 100644 index 0000000000..acfc87affc --- /dev/null +++ b/anda/langs/python/cobs/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "cobs.spec" + } +} diff --git a/anda/langs/python/cobs/cobs.spec b/anda/langs/python/cobs/cobs.spec new file mode 100644 index 0000000000..642759e7aa --- /dev/null +++ b/anda/langs/python/cobs/cobs.spec @@ -0,0 +1,49 @@ +%global pypi_name cobs +%global _desc Python functions for encoding and decoding COBS. + +Name: python-%{pypi_name} +Version: 1.2.2 +Release: 1%?dist +Summary: Python functions for encoding and decoding COBS +License: MIT +URL: https://pypi.org/project/cobs/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: cobs +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n cobs-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files cobs + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE.txt +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc + +%changelog +* Sun Sep 28 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/cobs/update.rhai b/anda/langs/python/cobs/update.rhai new file mode 100644 index 0000000000..e9d333f16c --- /dev/null +++ b/anda/langs/python/cobs/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("cobs"));