From e16168ae2d7ec60ca93cbba339d800d0cca65cc5 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Aug 09 2020 10:58:04 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f83e58f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ansible-collection-ansible-netcommon-1.1.2.tar.gz diff --git a/ansible-collection-ansible-netcommon.spec b/ansible-collection-ansible-netcommon.spec new file mode 100644 index 0000000..4af598b --- /dev/null +++ b/ansible-collection-ansible-netcommon.spec @@ -0,0 +1,47 @@ +%global collection_namespace ansible +%global collection_name netcommon + +Name: ansible-collection-%{collection_namespace}-%{collection_name} +Version: 1.1.2 +Release: 1%{?dist} +Summary: Ansible Network Collection for Common Code + +# plugins/module_utils/compat/ipaddress.py: Python Software Foundation License version 2 +# plugins/module_utils/network/common/config.py: BSD 2-clause "Simplified" License +# plugins/module_utils/network/common/netconf.py: BSD 2-clause "Simplified" License +# plugins/module_utils/network/common/network.py: BSD 2-clause "Simplified" License +# plugins/module_utils/network/common/parsing.py: BSD 2-clause "Simplified" License +# plugins/module_utils/network/common/utils.py: BSD 2-clause "Simplified" License +# plugins/module_utils/network/restconf/restconf.py: BSD 2-clause "Simplified" License +License: GPLv3+ and BSD and Python +URL: %{ansible_collection_url} +Source: https://github.com/ansible-collections/ansible.netcommon/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: ansible >= 2.9.10 + +BuildArch: noarch + +%description +%{summary}. + +%prep +%autosetup -n ansible.netcommon-%{version} +sed -i -e '/version:/s/null/%{version}/' galaxy.yml +find -type f ! -executable -type f -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + +rm -vr tests/integration bindep.txt .yamllint +find -type f -name '.gitignore' -print -delete + +%build +%ansible_collection_build + +%install +%ansible_collection_install + +%files +%license LICENSE +%doc README.md +%{ansible_collection_files} + +%changelog +* Sat Aug 08 2020 Igor Raits - 1.1.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..02d7a0a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ansible-collection-ansible-netcommon-1.1.2.tar.gz) = 18f9a990d8711b53e960a45bb4a70dee28bb23500b74c71f2c674813b0667c24d0100640f7d5b1c00b1489a7529ffc02b995ff599fccdb2f84aab549a879413c