diff --git a/anda/langs/python/west/anda.hcl b/anda/langs/python/west/anda.hcl new file mode 100644 index 0000000000..f15f1e4d3c --- /dev/null +++ b/anda/langs/python/west/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "west.spec" + } +} diff --git a/anda/langs/python/west/update.rhai b/anda/langs/python/west/update.rhai new file mode 100644 index 0000000000..00dbbc8bac --- /dev/null +++ b/anda/langs/python/west/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("zephyrproject-rtos/west")); diff --git a/anda/langs/python/west/west.spec b/anda/langs/python/west/west.spec new file mode 100644 index 0000000000..1d3748b9b6 --- /dev/null +++ b/anda/langs/python/west/west.spec @@ -0,0 +1,55 @@ +%global pypi_name west +%global _desc West, Zephyr's meta-tool. + +Name: python-%{pypi_name} +Version: 1.5.0 +Release: 1%?dist +Summary: West, Zephyr's meta-tool +License: Apache-2.0 +URL: https://github.com/zephyrproject-rtos/west +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +BuildArch: noarch + +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 + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: west +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n west-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files west + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst MAINTAINERS.rst +%license LICENSE +%{_bindir}/west +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%python3_sitelib/west-%version.dist-info/* + +%changelog +* Fri Oct 10 2025 Owen Zimmerman +- Initial commit