%global collection_namespace google %global collection_name cloud Name: ansible-collection-%{collection_namespace}-%{collection_name} Version: 1.0.1 Release: 1%{?dist} Summary: Google Cloud Platform collection # roles/gcloud: MIT License: GPLv2+ and MIT URL: %{ansible_collection_url} Source: https://github.com/ansible-collections/google.cloud/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: ansible BuildRequires: python3-rpm-macros Requires: python%{python3_version}dist(requests) Requires: python%{python3_version}dist(google-auth) BuildArch: noarch %description %{summary}. %prep %autosetup -n google.cloud-%{version} -p1 rm -vr molecule .github .ansible-lint .yamllint requirements.txt find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + find -type f -name '.gitignore' -print -delete find roles -mindepth 2 -type d -name 'molecule' -exec rm -vr '{}' + %build %ansible_collection_build %install %ansible_collection_install rm -vr %{buildroot}%{ansible_collection_files}/%{collection_name}/tests %files %license LICENSE %doc README.md %{ansible_collection_files} %changelog * Tue Dec 29 2020 Igor Raits - 1.0.1-1 - Update to 1.0.1 * Sun Aug 09 2020 Igor Raits - 0.10.3-1 - Initial package