diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d327273 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ansible-collection-community-kubernetes-1.0.0.tar.gz diff --git a/ansible-collection-community-kubernetes.spec b/ansible-collection-community-kubernetes.spec new file mode 100644 index 0000000..909c258 --- /dev/null +++ b/ansible-collection-community-kubernetes.spec @@ -0,0 +1,41 @@ +%global collection_namespace community +%global collection_name kubernetes + +Name: ansible-collection-%{collection_namespace}-%{collection_name} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Kubernetes Collection for Ansible + +License: GPLv3+ +URL: %{ansible_collection_url} +Source: https://github.com/ansible-collections/community.kubernetes/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: ansible +BuildRequires: python3-rpm-macros +Requires: python%{python3_version}dist(openshift) + +BuildArch: noarch + +%description +%{summary}. + +%prep +%autosetup -n community.kubernetes-%{version} +rm -vr tests/integration molecule .github .yamllint codecov.yml setup.cfg +find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + +find -type f -name '.gitignore' -print -delete + +%build +%ansible_collection_build + +%install +%ansible_collection_install + +%files +%license LICENSE +%doc README.md CHANGELOG.rst +%{ansible_collection_files} + +%changelog +* Sun Aug 09 2020 Igor Raits - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..541da70 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ansible-collection-community-kubernetes-1.0.0.tar.gz) = f62a3190fa7d9fd193a84f519b34f972400353535d6be0c731251b83fcde3533af1f4e3b1eb17a2e43a954f1c7f2f68f271ccb4458494b97ff2677139feaf760