Blame ansible-collection-ansible-netcommon.spec

e16168a
%global collection_namespace ansible
e16168a
%global collection_name netcommon
e16168a
e16168a
Name:           ansible-collection-%{collection_namespace}-%{collection_name}
e16168a
Version:        1.1.2
e16168a
Release:        1%{?dist}
e16168a
Summary:        Ansible Network Collection for Common Code
e16168a
e16168a
# plugins/module_utils/compat/ipaddress.py: Python Software Foundation License version 2
e16168a
# plugins/module_utils/network/common/config.py: BSD 2-clause "Simplified" License
e16168a
# plugins/module_utils/network/common/netconf.py: BSD 2-clause "Simplified" License
e16168a
# plugins/module_utils/network/common/network.py: BSD 2-clause "Simplified" License
e16168a
# plugins/module_utils/network/common/parsing.py: BSD 2-clause "Simplified" License
e16168a
# plugins/module_utils/network/common/utils.py: BSD 2-clause "Simplified" License
e16168a
# plugins/module_utils/network/restconf/restconf.py: BSD 2-clause "Simplified" License
e16168a
License:        GPLv3+ and BSD and Python
e16168a
URL:            %{ansible_collection_url}
e16168a
Source:         https://github.com/ansible-collections/ansible.netcommon/archive/%{version}/%{name}-%{version}.tar.gz
e16168a
e16168a
BuildRequires:  ansible >= 2.9.10
e16168a
e16168a
BuildArch:      noarch
e16168a
e16168a
%description
e16168a
%{summary}.
e16168a
e16168a
%prep
e16168a
%autosetup -n ansible.netcommon-%{version}
e16168a
sed -i -e '/version:/s/null/%{version}/' galaxy.yml
e16168a
find -type f ! -executable -type f -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
e16168a
rm -vr tests/integration bindep.txt .yamllint
e16168a
find -type f -name '.gitignore' -print -delete
e16168a
e16168a
%build
e16168a
%ansible_collection_build
e16168a
e16168a
%install
e16168a
%ansible_collection_install
e16168a
e16168a
%files
e16168a
%license LICENSE
e16168a
%doc README.md
e16168a
%{ansible_collection_files}
e16168a
e16168a
%changelog
e16168a
* Sat Aug 08 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.1.2-1
e16168a
- Initial package