[python-elasticsearch] First commit to python-elasticsearch

Daniel Bruno dbruno at fedoraproject.org
Fri Dec 13 13:25:37 UTC 2013


commit b1297e040a1b1280a53e58ee6af40dbd154ba6e3
Author: Daniel Bruno <danielbrunos at gmail.com>
Date:   Fri Dec 13 09:25:12 2013 -0400

    First commit to python-elasticsearch

 .gitignore                |    1 +
 python-elasticsearch.spec |   56 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..98ba866 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/elasticsearch-0.4.3.tar.gz
diff --git a/python-elasticsearch.spec b/python-elasticsearch.spec
new file mode 100644
index 0000000..2def26f
--- /dev/null
+++ b/python-elasticsearch.spec
@@ -0,0 +1,56 @@
+%global tarball_name elasticsearch 
+
+Name:           python-elasticsearch
+Version:        0.4.3
+Release:        3%{?dist}
+Summary:        Client for Elasticsearch 
+
+Group:          Development/Languages
+License:        ASL 2.0
+URL:            https://github.com/elasticsearch/elasticsearch-py
+Source0:        https://pypi.python.org/packages/source/e/%{tarball_name}/%{tarball_name}-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  python2-devel python-setuptools
+Requires:       python-thrift
+Requires:       python-urllib => 3
+
+%description
+Low level client for Elasticsearch. It's goal is to provide common ground
+for all Elasticsearch-related code in Python. The client's features include:
+
+- Translating basic Python data types to and from json
+- Configurable automatic discovery of cluster nodes
+- Persistent connections
+- Load balancing (with pluggable selection strategy) across all available nodes
+- Failed connection penalization (time based - failed connections won't be
+  retried until a timeout is reached)
+- Thread safety
+- Pluggable architecture
+
+%prep
+%setup -qn %{tarball_name}-%{version}
+rm -fr %{tarball_name}.egg-info
+rm README
+cp README.rst README 
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+%files
+%{python2_sitelib}/*
+%doc README LICENSE
+
+%changelog
+* Wed Dec 11 2013 Daniel Bruno <dbruno at fedoraproject.org> - 0.4.3-3
+- Standarizing the spec
+
+* Wed Dec 11 2013 Daniel Bruno <dbruno at fedoraproject.org> - 0.4.3-2
+- Fixing lib require
+
+* Tue Nov 26 2013 Daniel Bruno <dbruno at fedoraproject.org> - 0.4.3-1
+- First RPM release
+
diff --git a/sources b/sources
index e69de29..54d9ce3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b6ec207c268e4d71374d7427065a623c  elasticsearch-0.4.3.tar.gz


More information about the scm-commits mailing list