Compare commits
No commits in common. "885a36b2a73d3647560148381a62e74cc898cd04" and "36c51face69dd2a002fddb602597cf12ebe4d5e9" have entirely different histories.
885a36b2a7
...
36c51face6
BIN
1.0.0.tar.gz
BIN
1.0.0.tar.gz
Binary file not shown.
@ -1,96 +0,0 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
|
||||||
Name: poissonsearch-py
|
|
||||||
Version: 1.0.0
|
|
||||||
%define package_version 1.0.0
|
|
||||||
Release: 2
|
|
||||||
Summary: Python client for Elasticsearch
|
|
||||||
License: Apache-2.0
|
|
||||||
URL: https://gitee.com/openeuler/poissonsearch-py
|
|
||||||
Source0: https://gitee.com/openeuler/poissonsearch-py/archive/refs/tags/%{package_version}.tar.gz
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: python3-urllib3
|
|
||||||
Requires: python3-certifi
|
|
||||||
BuildRequires: python3-mock
|
|
||||||
BuildRequires: python3-numpy
|
|
||||||
BuildRequires: python3-pandas
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
|
|
||||||
%description
|
|
||||||
Official low-level client for Elasticsearch, forked from elastic/elasticsearch-py 7.10.1. Its goal is to provide common
|
|
||||||
ground for all Elasticsearch-related code in Python; because of this it tries
|
|
||||||
to be opinion-free and very extendable.
|
|
||||||
|
|
||||||
%package -n python3-poissonsearch-py
|
|
||||||
Summary: Python client for Elasticsearch
|
|
||||||
Provides: elasticsearch-py = 7.10.1
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
%description -n python3-poissonsearch-py
|
|
||||||
Official low-level client for Elasticsearch. Its goal is to provide common
|
|
||||||
ground for all Elasticsearch-related code in Python; because of this it tries
|
|
||||||
to be opinion-free and very extendable.
|
|
||||||
|
|
||||||
%package help
|
|
||||||
Summary: Development documents and examples for elasticsearch
|
|
||||||
Provides: python3-poissonsearch-py-doc
|
|
||||||
%description help
|
|
||||||
Official low-level client for Elasticsearch. Its goal is to provide common
|
|
||||||
ground for all Elasticsearch-related code in Python; because of this it tries
|
|
||||||
to be opinion-free and very extendable.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%autosetup -n %{package_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
|
|
||||||
pushd test_elasticsearch
|
|
||||||
pytest test_serializer.py
|
|
||||||
pytest test_helpers.py
|
|
||||||
pytest test_connection_pool.py
|
|
||||||
pytest test_cases.py
|
|
||||||
pushd ../
|
|
||||||
|
|
||||||
%files -n python3-poissonsearch-py -f filelist.lst
|
|
||||||
%dir %{python3_sitelib}/*
|
|
||||||
|
|
||||||
%files help -f doclist.lst
|
|
||||||
%{_docdir}/*
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Thu Mar 28 2024 linshoubao <linshoubao@163.com> - 1.0.0-2
|
|
||||||
- Package Spec generated and version 1.0.0.
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user