Summary: Curated set of Ansible collections included in addition to ansible-core Name: ansible Version: 9.1.0 Release: 1 License: GPL v3+ Group: Development/Libraries Source0: https://files.pythonhosted.org/packages/source/a/ansible/%{name}-%{version}.tar.gz # Source0-md5: dcc0b77c8d808668232f190934a95acb Patch0: setup.patch URL: https://ansible.com BuildRequires: python3-PyYAML BuildRequires: python3-modules BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.710 Requires: %{name}-core >= 2.6.11 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Ansible is a radically simple model-driven configuration management, multi-node deployment, and remote task execution system. Ansible works over SSH and does not require any software or daemons to be installed on remote nodes. Extension modules can be written in any language and are transferred to managed machines automatically. %prep %setup -q %patch0 -p1 grep -rlZ -0 '#!/usr/bin/env bash' ansible_collections | xargs -0 sed -i -e 's,#!/usr/bin/env bash,#!/bin/bash,g' %build %py3_build %install rm -rf $RPM_BUILD_ROOT %py3_install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/ansible-community %{py3_sitescriptdir}/ansible_collections %{py3_sitescriptdir}/ansible-%{version}-*.egg-info