summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-21 01:43:24 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-21 01:43:24 +0000
commitcdc1a9455344a145c8cad659f18c8ddfc7f58732 (patch)
treec00e7ca1a5cbc97dd9f99cdfef364da6d90aa5eb
parent7ea97d624eb560ad5af995e85a6d9afeb8ffaba6 (diff)
automatic import of python-ansible-coreopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--python-ansible-core.spec96
-rw-r--r--sources1
3 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1fe9a6f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ansible_core-2.16.10.tar.gz
diff --git a/python-ansible-core.spec b/python-ansible-core.spec
new file mode 100644
index 0000000..9e849a5
--- /dev/null
+++ b/python-ansible-core.spec
@@ -0,0 +1,96 @@
+%global _empty_manifest_terminate_build 0
+%global common_description \
+Ansible is a radically simple IT automation system. \
+It handles configuration management, application deployment, \
+cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration.
+
+Name: python-ansible-core
+Version: 2.16.10
+Release: 1
+Summary: Radically simple IT automation
+License: GPLv3+
+URL: https://ansible.com/
+Source0: https://files.pythonhosted.org/packages/c3/94/a4ce3ff57aebbf5350ea983b6e67b769711449241423d47d8ee3724e3062/ansible_core-2.16.10.tar.gz
+BuildArch: noarch
+%description
+%{common_description}
+
+%package -n python3-ansible-core
+Summary: Radically simple IT automation
+Provides: python-ansible-core
+# Base build requires
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+# General build requires
+BuildRequires: python3-jinja2 >= 3.0.0
+BuildRequires: python3-pyyaml >= 5.1
+BuildRequires: python3-cryptography
+BuildRequires: python3-packaging
+BuildRequires: python3-resolvelib < 1.1.0
+BuildRequires: python3-resolvelib >= 0.5.3
+# General requires
+Requires: python3-jinja2 >= 3.0.0
+Requires: python3-pyyaml >= 5.1
+Requires: python3-cryptography
+Requires: python3-packaging
+Requires: python3-resolvelib < 1.1.0
+Requires: python3-resolvelib >= 0.5.3
+%description -n python3-ansible-core
+%{common_description}
+
+%package help
+Summary: Radically simple IT automation
+Provides: python3-ansible-core-doc
+%description help
+%{common_description}
+
+%prep
+%autosetup -n ansible_core-%{version}
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%check
+%{__python3} setup.py test
+
+%files -n python3-ansible-core -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Aug 21 2024 OpenStack_SIG <openstack@openeuler.org> - 2.16.10-1
+- Init package python3-ansible-core of version 2.16.10
diff --git a/sources b/sources
new file mode 100644
index 0000000..5aef802
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b6fd8f6b684a32a48aea78d229ba7ebf ansible_core-2.16.10.tar.gz