summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 08:09:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 08:09:03 +0000
commit137453ecbe3c30cbbbf1cba9ff652e0bc01f6a35 (patch)
treefb968aeb522d7dddb9182386138809c67022b97c
parent3f96b24b2249edfcf6e4c510262567c7bd575962 (diff)
automatic import of python-elasticsearch
-rw-r--r--.gitignore1
-rw-r--r--python-elasticsearch.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9673c2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/elasticsearch-8.7.0.tar.gz
diff --git a/python-elasticsearch.spec b/python-elasticsearch.spec
new file mode 100644
index 0000000..6ce8c14
--- /dev/null
+++ b/python-elasticsearch.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-elasticsearch
+Version: 8.7.0
+Release: 1
+Summary: Python client for Elasticsearch
+License: Apache-2.0
+URL: https://github.com/elastic/elasticsearch-py
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fe/af/c3822861b6d965c2a588ce4159d870f6d906e4cc74a4f9d1ced737bd70be/elasticsearch-8.7.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-elastic-transport
+Requires: python3-aiohttp
+Requires: python3-requests
+
+%description
+*The official Python client for Elasticsearch.*
+
+%package -n python3-elasticsearch
+Summary: Python client for Elasticsearch
+Provides: python-elasticsearch
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-elasticsearch
+*The official Python client for Elasticsearch.*
+
+%package help
+Summary: Development documents and examples for elasticsearch
+Provides: python3-elasticsearch-doc
+%description help
+*The official Python client for Elasticsearch.*
+
+%prep
+%autosetup -n elasticsearch-8.7.0
+
+%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 .
+
+%files -n python3-elasticsearch -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 8.7.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..809401d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0ebc73f0f9c0eae1a5458ecc183517cd elasticsearch-8.7.0.tar.gz