diff --git a/elasticsearch8-8.14.0.tar.gz b/elasticsearch8-8.14.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..111d8c04c04cabbf322ea33cc213684bb45fb7cc Binary files /dev/null and b/elasticsearch8-8.14.0.tar.gz differ diff --git a/python-elasticsearch8.spec b/python-elasticsearch8.spec new file mode 100644 index 0000000000000000000000000000000000000000..4a211973a4b8ccfb7b0c7998f450937764c329ff --- /dev/null +++ b/python-elasticsearch8.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-elasticsearch8 +Version: 8.14.0 +Release: 1 +Summary: Python client for Elasticsearch +License: Apache-2.0 +URL: https://github.com/elastic/elasticsearch-py +Source0: https://files.pythonhosted.org/packages/eb/e1/e49a777b6ed42eb030a4db50e8fa16aa6fb195763fda50d31ec907d3933c/elasticsearch8-8.14.0.tar.gz +BuildArch: noarch + +Requires: (python3-elastic-transport<9 with python3-elastic-transport>=8.13) +Requires: (python3-aiohttp<4 with python3-aiohttp>=3) +Requires: (python3-orjson>=3) +Requires: (python3-requests!=2.32.2 with python3-requests<3.0.0 with python3-requests>=2.4.0) +Requires: (python3-numpy>=1) +Requires: (python3-simsimd>=3) + +%description +The official Python client for Elasticsearch8. + +%package -n python3-elasticsearch8 +Summary: Python client for Elasticsearch +Provides: python-elasticsearch8 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-elasticsearch8 +The official Python client for Elasticsearch8. + +%package help +Summary: Development documents and examples for elasticsearch8 +Provides: python3-elasticsearch8-doc +%description help +Man page of python3-elasticsearch. + +%prep +%autosetup -n elasticsearch8-%{version} + +%build +%pyproject_build + +%install +%pyproject_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} +touch filelist.lst +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-elasticsearch8 -f filelist.lst +%{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Jun 13 2024 wangqiang - 8.14.0-1 +- Package init diff --git a/python-elasticsearch8.yaml b/python-elasticsearch8.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a56c2925378094e32848d6255f7b5a0a7de03782 --- /dev/null +++ b/python-elasticsearch8.yaml @@ -0,0 +1,4 @@ +on-ctrl: pypi +src_repo: elasticsearch8 +tag_prefix: "" +seperator: "."