Blame ansible-collection-community-general.spec

2c95328
%global collection_namespace community
2c95328
%global collection_name general
2c95328
2c95328
Name:           ansible-collection-%{collection_namespace}-%{collection_name}
2c95328
Version:        1.0.0
2c95328
Release:        1%{?dist}
2c95328
Summary:        Modules and plugins supported by Ansible community
2c95328
2c95328
# plugins/module_utils/_netapp.py: BSD 2-clause "Simplified" License
2c95328
# plugins/module_utils/compat/ipaddress.py: Python Software Foundation License version 2
2c95328
# plugins/module_utils/identity/keycloak/keycloak.py: BSD 2-clause "Simplified" License
2c95328
License:        GPLv3+ and BSD and Python
2c95328
URL:            %{ansible_collection_url}
2c95328
Source:         https://github.com/ansible-collections/community.general/archive/%{version}/%{name}-%{version}.tar.gz
2c95328
2c95328
BuildRequires:  ansible >= 2.9.10
2c95328
Requires:       ansible >= 2.9.10
2c95328
2c95328
BuildArch:      noarch
2c95328
2c95328
%description
2c95328
%{summary}.
2c95328
2c95328
%prep
2c95328
%autosetup -n community.general-%{version}
2c95328
rm -vr .github
2c95328
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
2c95328
find -type f -name '.gitignore' -print -delete
2c95328
2c95328
%build
2c95328
%ansible_collection_build
2c95328
2c95328
%install
2c95328
%ansible_collection_install
2c95328
rm -vr %{buildroot}%{ansible_collection_files}/%{collection_name}/tests
2c95328
2c95328
%files
2c95328
%license COPYING
2c95328
%doc README.md CHANGELOG.rst
2c95328
%{ansible_collection_files}
2c95328
2c95328
%changelog
2c95328
* Sun Aug 09 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.0.0-1
2c95328
- Initial package