%global pypi_name west Name: python-%{pypi_name} Version: 1.5.0 Release: %autorelease Summary: A meta-tool for building Zephyr RTOS License: Apache-2.0 URL: https://github.com/zephyrproject-rtos/west Source0: %url/archive/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools %global _description %{expand: This is the Zephyr RTOS meta tool to assist in building ZephyRTOS. } %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/west* %changelog %autochangelog