%global collection_namespace chocolatey %global collection_name chocolatey Name: ansible-collection-%{collection_namespace}-%{collection_name} Version: 1.0.2 Release: 1%{?dist} Summary: Ansible collection for Chocolatey License: GPLv3+ URL: %{ansible_collection_url} Source: https://github.com/chocolatey/chocolatey-ansible/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: ansible >= 2.9.10 BuildArch: noarch %description The collection includes the modules required to configure Chocolatey, as well as manage packages on Windows using Chocolatey. %prep %autosetup -n chocolatey-ansible-%{version} rm -vr azure-pipelines.yml find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + find -type f -name '.gitignore' -print -delete sed -i -e 's/{{ REPLACE_VERSION }}/%{version}/' chocolatey/galaxy.yml %build cd chocolatey %ansible_collection_build %install cd chocolatey %ansible_collection_install rm -vr %{buildroot}%{ansible_collection_files}/%{collection_name}/tests %files %license LICENSE %doc README.md %{ansible_collection_files} %changelog * Fri Mar 12 2021 Orion Poplawski - 1.0.2-1 - Initial package