summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 23:23:15 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 23:23:15 +0000
commit4e6ea88e141c45567180e774ea85835f7eb136aa (patch)
tree93a6a7747de63bde009ed4aef99b182e4d9ffe4a
parent2300bb3a2c24b6a561a0a2cbb23556036a354182 (diff)
automatic import of python-elasticsearch7
-rw-r--r--.gitignore1
-rw-r--r--python-elasticsearch7.spec88
-rw-r--r--sources1
3 files changed, 90 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..276eedc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/elasticsearch7-7.17.9.tar.gz
diff --git a/python-elasticsearch7.spec b/python-elasticsearch7.spec
new file mode 100644
index 0000000..eed1ead
--- /dev/null
+++ b/python-elasticsearch7.spec
@@ -0,0 +1,88 @@
+%global _empty_manifest_terminate_build 0
+Name: python-elasticsearch7
+Version: 7.17.9
+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/d8/b8/b29728b0375b4a4a7c4a4a069fda6a2b973be27cd4fda884709ce4a10d50/elasticsearch7-7.17.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-urllib3
+Requires: python3-certifi
+Requires: python3-aiohttp
+Requires: python3-requests
+Requires: python3-coverage
+Requires: python3-mock
+Requires: python3-pyyaml
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-black
+Requires: python3-jinja2
+Requires: python3-sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-requests
+
+%description
+*The official Python client for Elasticsearch.*
+
+%package -n python3-elasticsearch7
+Summary: Python client for Elasticsearch
+Provides: python-elasticsearch7
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-elasticsearch7
+*The official Python client for Elasticsearch.*
+
+%package help
+Summary: Development documents and examples for elasticsearch7
+Provides: python3-elasticsearch7-doc
+%description help
+*The official Python client for Elasticsearch.*
+
+%prep
+%autosetup -n elasticsearch7-7.17.9
+
+%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-elasticsearch7 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 7.17.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5f4d329
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0b4b3ce5b6cf274e8c5abfc52d52db84 elasticsearch7-7.17.9.tar.gz