diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c0d7d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ansible-collection-netbox-netbox-0.1.10.tar.gz diff --git a/ansible-collection-netbox-netbox.spec b/ansible-collection-netbox-netbox.spec new file mode 100644 index 0000000..7ddef6d --- /dev/null +++ b/ansible-collection-netbox-netbox.spec @@ -0,0 +1,42 @@ +%global collection_namespace netbox +%global collection_name netbox + +Name: ansible-collection-%{collection_namespace}-%{collection_name} +Version: 0.1.10 +Release: 1%{?dist} +Summary: Netbox modules for Ansible + +License: GPLv3+ +URL: %{ansible_collection_url} +Source: https://github.com/netbox-community/ansible_modules/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: ansible +BuildRequires: python3-rpm-macros +Requires: python%{python3_version}dist(pynetbox) >= 4.2.5 + +BuildArch: noarch + +%description +%{summary}. + +%prep +%autosetup -n ansible_modules-%{version} +sed -i -e '1{\@^#!.*@d}' plugins/modules/*.py + +%build +%ansible_collection_build + +%install +%ansible_collection_install + +%files +%license LICENSE +%doc README.md CHANGELOG.md +%{ansible_collection_files} + +%changelog +* Sun Apr 19 2020 Igor Raits - 0.1.10-1 +- Update to 0.1.10 + +* Wed Mar 04 2020 Igor Raits - 0.1.9-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ac1f516 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ansible-collection-netbox-netbox-0.1.10.tar.gz) = aa7c83e93b60c07a9603f1afeb2bba29e4af09860e5ab16ec1b6fe4f6e541870e2f6ee06a1b1e111e4112298a5213ad638711d7f0392707003461b7c1d78e8e3