%global debug_package %{nil} %global collection_namespace theforeman %global collection_name foreman %global collection_folder %{_datadir}/ansible/collections/%{collection_namespace}.%{collection_name} Name: ansible-collection-%{collection_namespace}-%{collection_name} Version: 0.0.0 Release: 0%{?dist} Summary: The Foreman Project Ansible modules collection License: GPLv3+ URL: https://theforeman.org/plugins/foreman-ansible-modules Source0: https://codeload.github.com/theforeman/foreman-ansible-modules/tar.gz/master#/ansible-collection-theforeman-foreman-0.0.0.tar.gz Requires: ansible >= 2.8 %if 0%{?fedora} || 0%{?rhel} >= 8 Requires: python3-apypie %else Requires: python2-apypie %endif %description Collection %prep %setup -q -n foreman-ansible-modules-master %build %install mkdir -p %{buildroot}%{collection_folder} cp -pR plugins %{buildroot}%{collection_folder} chmod -x %{buildroot}%{collection_folder}/plugins/*/*.py %files %{collection_folder}/ %license LICENSE %changelog * Wed Jul 17 2019 Evgeni Golov - 0.0.0-0 - Initial package