%global collection_namespace ansible %global collection_name netcommon Name: ansible-collection-%{collection_namespace}-%{collection_name} Version: 9.9.9 Release: 999%{?dist} Summary: Ansible Network Collection for Common Code License: GPLv3+ and BSD and Python URL: %{ansible_collection_url} Source: https://github.com/ansible-collections/ansible.netcommon/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: (ansible >= 2.9.10 or ansible-core >= 2.11.0) BuildArch: noarch %description %{summary}. %prep %autosetup -n ansible.netcommon-%{version} sed -i -e '/version:/s/null/%{version}/' galaxy.yml find -type f ! -executable -type f -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + rm -fvr tests/integration bindep.txt .yamllint changelogs/fragments/.keep find -type f -name '.gitignore' -print -delete %build %ansible_collection_build %install %ansible_collection_install %files %license LICENSE %doc README.md %{ansible_collection_files} %changelog * Mon Jul 05 2021 Sagi Shnaidman - 9.9.9 - Clone this spec from: https://src.fedoraproject.org/rpms/ansible-collection-ansible-netcommon/blob/rawhide/f/ansible-collection-ansible-netcommon.spec