From 5e8aacf15aeada7c9b1017d4308c8e723f3ea7ff Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Mar 08 2023 15:40:22 +0000 Subject: Import ansible-collection-ansible-netcommon-4.1.0-2 from Fedora Related-to: https://review.rdoproject.org/r/q/I8d10723826b60dff186ef4475912c5a558ae2b30 --- diff --git a/.ansible-collection-ansible-netcommon.metadata b/.ansible-collection-ansible-netcommon.metadata new file mode 100644 index 0000000..2290c8b --- /dev/null +++ b/.ansible-collection-ansible-netcommon.metadata @@ -0,0 +1 @@ +573bc6852fca34ff68bf9bba1ae4674da1949549 SOURCES/ansible-collection-ansible-netcommon-4.1.0.tar.gz diff --git a/SOURCES/0001-build_ignore-unnecessary-files.patch b/SOURCES/0001-build_ignore-unnecessary-files.patch new file mode 100644 index 0000000..9698601 --- /dev/null +++ b/SOURCES/0001-build_ignore-unnecessary-files.patch @@ -0,0 +1,39 @@ +From 0616c8cd27b47edadbc0bcfcb4d57610abe866e5 Mon Sep 17 00:00:00 2001 +From: Maxwell G +Date: Thu, 8 Sep 2022 10:06:17 -0500 +Subject: [PATCH] build_ignore unnecessary files + +This is a downstream only patch. Upstream has reasons for continuing to +include files. + +diff --git a/galaxy.yml b/galaxy.yml +index 5671d47..4dacf87 100644 +--- a/galaxy.yml ++++ b/galaxy.yml +@@ -14,3 +14,23 @@ tags: [networking, security, cloud, network_cli, netconf, httpapi, grpc] + # NOTE(pabelanger): We create an empty version key to keep ansible-galaxy + # happy. We dynamically inject version info based on git information. + version: null ++build_ignore: ++ - .pre-commit-config.yaml ++ - .gitignore ++ - .yamllint ++ - .github ++ - .flake8 ++ - .isort.cfg ++ - .prettierignore ++ - tests ++ - changelogs/fragments/.keep ++ - requirements.txt ++ - test-requirements.txt ++ - tox.ini ++ # We install these files with %doc/%license. We don't want them duplicated. ++ - CHANGELOG.rst ++ - README.md ++ - LICENSE ++ - LICENSES ++ - docs ++ +-- +2.37.3 + diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..2af4c9f --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# ansible-collection-ansible-netcommon + +The ansible-collection-ansible-netcommon package diff --git a/SPECS/ansible-collection-ansible-netcommon.spec b/SPECS/ansible-collection-ansible-netcommon.spec new file mode 100644 index 0000000..ddf15c1 --- /dev/null +++ b/SPECS/ansible-collection-ansible-netcommon.spec @@ -0,0 +1,109 @@ +%global _docdir_fmt %{name} + +Name: ansible-collection-ansible-netcommon +Version: 4.1.0 +Release: 2%{?dist} +Summary: Ansible Network Collection for Common Code + +# All files are licensed under GPL-3.0-or-later except: +# rg --pcre2 -g '!tests/sanity/extra/licenses.py' 'SPDX-License-Identifier: (?!GPL-3\.0-or-later)' | sort | sed 's|^|# |' +# +# plugins/module_utils/cli_parser/cli_parserbase.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/cli_parser/cli_parsertemplate.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/config.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/netconf.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/network.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/network_template.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/parsing.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/resource_module.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/rm_base/network_template.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/rm_base/resource_module_base.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/rm_base/resource_module.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/common/utils.py:# SPDX-License-Identifier: BSD-2-Clause +# plugins/module_utils/network/restconf/restconf.py:# SPDX-License-Identifier: BSD-2-Clause +License: GPL-3.0-or-later AND BSD-2-Clause +URL: https://galaxy.ansible.com/ansible/netcommon +Source: https://github.com/ansible-collections/ansible.netcommon/archive/%{version}/%{name}-%{version}.tar.gz +# Patch galaxy.yml to exclude unnecessary files from the built collection. +# This is a downstream only patch. +Patch: 0001-build_ignore-unnecessary-files.patch + +BuildRequires: ansible-packaging + +BuildArch: noarch + +%global _description %{expand: +The Ansible ansible.netcommon collection includes common content to help +automate the management of network, security, and cloud devices. This includes +connection plugins, such as network_cli, httpapi, and netconf.} + +%description %_description + +%package doc +Summary: %{summary} - Docs + +%description doc %_description + +This subpackage provides documentation for ansible-collection-ansible-netcommon. + +%prep +%autosetup -n ansible.netcommon-%{version} -p1 +sed -i -e '/version:/s/null/%{version}/' galaxy.yml +find -type f ! -executable -type f -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + + +%build +%ansible_collection_build + +%install +%ansible_collection_install + +%files -f %{ansible_collection_filelist} +%license LICENSE LICENSES/ +%doc README.md CHANGELOG.rst + +%files doc +%license LICENSE +%doc docs + +%changelog +* Wed Jan 18 2023 Fedora Release Engineering - 4.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 04 2022 Maxwell G - 4.1.0-1 +- Update to 4.1.0. Fixes rhbz#2139971. + +* Wed Oct 19 2022 Maxwell G - 4.0.0-1 +- Update to 4.0.0. Fixes rhbz#2124745. + +* Sat Aug 27 2022 Maxwell G - 3.1.0-1 +- Update to 3.1.0. Fixes rhbz#2089526. + +* Wed Jul 20 2022 Fedora Release Engineering - 2.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 2.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Oct 13 2021 Sagi Shnaidman - 2.2.0-2 +- Use ansible or ansible-core as BuildRequires + +* Thu Jul 22 2021 Sagi Shnaidman - 2.2.0-1 +- Update to 2.2.0 + +* Wed Jul 21 2021 Fedora Release Engineering - 1.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Feb 04 2021 Igor Raits - 1.5.0-1 +- Update to 1.5.0 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Jan 16 2021 Kevin Fenzi - 1.4.1-2 +- Rebuild for new ansible-generator and allow to be used with ansible-base-2.10.x + +* Tue Dec 29 2020 Igor Raits - 1.4.1-1 +- Update to 1.4.1 + +* Sat Aug 08 2020 Igor Raits - 1.1.2-1 +- Initial package