From 6171293b45eb3aaedfba38f6aed9422414847b997ac6f71ae4612313fa13fe9d Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 19 Oct 2017 14:12:29 +0000 Subject: [PATCH] Accepting request 535241 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version - Update to version 5.4.0 * see changelog at https://github.com/elastic/elasticsearch-py/blob/5.4.0/Changelog.rst OBS-URL: https://build.opensuse.org/request/show/535241 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=6 --- elasticsearch-5.2.0.tar.gz | 3 --- elasticsearch-5.4.0.tar.gz | 3 +++ python-elasticsearch.changes | 7 +++++ python-elasticsearch.spec | 50 ++++++++++++++++++++++++------------ 4 files changed, 44 insertions(+), 19 deletions(-) delete mode 100644 elasticsearch-5.2.0.tar.gz create mode 100644 elasticsearch-5.4.0.tar.gz diff --git a/elasticsearch-5.2.0.tar.gz b/elasticsearch-5.2.0.tar.gz deleted file mode 100644 index 9781ca0..0000000 --- a/elasticsearch-5.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45d9f8fbe0878a1b7493afeb20f4f6677a43982776ed1a77d9373e9c5b9de966 -size 63593 diff --git a/elasticsearch-5.4.0.tar.gz b/elasticsearch-5.4.0.tar.gz new file mode 100644 index 0000000..163b2a1 --- /dev/null +++ b/elasticsearch-5.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e754c688e20fe73160fb6f7f5b63f2a71c78788dc9e6908950681d3a39b56e85 +size 64429 diff --git a/python-elasticsearch.changes b/python-elasticsearch.changes index 6126f64..9dfef35 100644 --- a/python-elasticsearch.changes +++ b/python-elasticsearch.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Oct 19 00:43:55 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to version 5.4.0 + * see changelog at https://github.com/elastic/elasticsearch-py/blob/5.4.0/Changelog.rst + ------------------------------------------------------------------- Tue Feb 14 20:34:21 UTC 2017 - jengelh@inai.de diff --git a/python-elasticsearch.spec b/python-elasticsearch.spec index 7b9c6b6..79ea8b4 100644 --- a/python-elasticsearch.spec +++ b/python-elasticsearch.spec @@ -16,38 +16,56 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Test files not included in source archive +%bcond_with test Name: python-elasticsearch -Version: 5.2.0 +Version: 5.4.0 Release: 0 Summary: Python client for Elasticsearch License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/elasticsearch/elasticsearch-py -Source: https://pypi.io/packages/source/e/elasticsearch/elasticsearch-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -Requires: python-urllib3 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +Url: https://github.com/elastic/elasticsearch-py +Source: https://files.pythonhosted.org/packages/source/e/elasticsearch/elasticsearch-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nosexcover} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pyaml} +BuildRequires: %{python_module requests >= 2.0.0} +BuildRequires: %{python_module urllib3 >= 1.8} %endif +Requires: python-urllib3 >= 1.8 +BuildArch: noarch + +%python_subpackages %description -Official low-level client for Elasticsearch. It provides common -code for all further Elasticsearch-related code in Python. +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 %setup -q -n elasticsearch-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS Changelog.rst LICENSE README README.rst %{python_sitelib}/*