|
| 1 | +%define name tarantool-python |
| 2 | + |
| 3 | +Summary: Python client library for Tarantool Database |
| 4 | +Name: %{name} |
| 5 | +Version: 0.5.1 |
| 6 | +Release: 1%{dist} |
| 7 | +Source0: %{version}.tar.gz |
| 8 | +License: BSD |
| 9 | +Group: Development/Libraries |
| 10 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
| 11 | +Prefix: %{_prefix} |
| 12 | +BuildArch: noarch |
| 13 | +Vendor: Konstantin Cherkasoff <k.cherkasoff@gmail.com> |
| 14 | +Requires: python-yaml python-msgpack |
| 15 | +Url: https://github.com/tarantool/tarantool-python |
| 16 | + |
| 17 | +%description |
| 18 | +Python driver for Tarantool 1.6 |
| 19 | +=============================== |
| 20 | + |
| 21 | +This package is a pure-python client library for `Tarantool`_. |
| 22 | + |
| 23 | +`Documentation`_ | `Downloads`_ | `PyPI`_ | `GitHub`_ | `Issue tracker`_ |
| 24 | + |
| 25 | +.. _`Documentation`: http://tarantool-python.readthedocs.org/en/latest/ |
| 26 | +.. _`Downloads`: http://pypi.python.org/pypi/tarantool#downloads |
| 27 | +.. _`PyPI`: http://pypi.python.org/pypi/tarantool |
| 28 | +.. _`GitHub`: https://github.com/tarantool/tarantool-python |
| 29 | +.. _`Issue tracker`: https://github.com/tarantool/tarantool-python/issues |
| 30 | + |
| 31 | +.. image:: https://travis-ci.org/tarantool/tarantool-python.svg?branch=master |
| 32 | + :target: https://travis-ci.org/tarantool/tarantool-python |
| 33 | + |
| 34 | +Download and Install |
| 35 | +-------------------- |
| 36 | + |
| 37 | +The recommended way to install ``tarantool`` package is using PIP |
| 38 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 39 | + |
| 40 | +For Tarantool version < 1.6.0 you must get ``0.3.*`` connector version:: |
| 41 | + |
| 42 | + $ pip install tarantool\<0.4 |
| 43 | + |
| 44 | +For later Tarantool use version ``0.5.*`` connector version:: |
| 45 | + |
| 46 | + $ pip install tarantool\>0.4 |
| 47 | + |
| 48 | +You can also download zip archive, unpack it and run |
| 49 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | + |
| 51 | +:: |
| 52 | + |
| 53 | + $ python setup.py install |
| 54 | + |
| 55 | +To install development version of the package using pip |
| 56 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 57 | + |
| 58 | +For Tarantool version < 1.6.0 you must get ``stable`` branch:: |
| 59 | + |
| 60 | + $ pip install git+https://github.com/tarantool/tarantool-python.git@stable |
| 61 | + |
| 62 | +For later Tarantool use ``master`` branch:: |
| 63 | + |
| 64 | + $ pip install git+https://github.com/tarantool/tarantool-python.git@master |
| 65 | + |
| 66 | +-------------------------------------------------------------------------------- |
| 67 | + |
| 68 | +What is Tarantool? |
| 69 | +------------------ |
| 70 | + |
| 71 | +`Tarantool`_ is a NoSQL database running inside a Lua program. It combines the network programming power of Node.JS with data persistency capabilities of Redis. It's open source, `BSD licensed`_. |
| 72 | + |
| 73 | +Features |
| 74 | +-------- |
| 75 | + |
| 76 | + * Lua packages for non-blocking I/O, fibers and HTTP |
| 77 | + * MsgPack data format and MsgPack based client-server protocol |
| 78 | + * Two data engines: |
| 79 | + * 100% in-memory with optional persistence |
| 80 | + * 2-level disk-based B-tree, to use with large data sets (powered by `Sophia`_) |
| 81 | + * secondary key and index iterators support (can be non-unique and composite) |
| 82 | + * multiple index types: HASH, BITSET, TREE |
| 83 | + * asynchronous master-master replication |
| 84 | + * authentication and access control |
| 85 | + |
| 86 | + |
| 87 | +See More |
| 88 | +^^^^^^^^ |
| 89 | + |
| 90 | + * `Tarantool Homepage`_ |
| 91 | + * `Tarantool at Github`_ |
| 92 | + * `Tarantool User Guide`_ |
| 93 | + * `Client-server Protocol Specification`_ |
| 94 | + |
| 95 | + |
| 96 | +.. _`Tarantool`: |
| 97 | +.. _`Tarantool Database`: |
| 98 | +.. _`Tarantool Homepage`: http://tarantool.org |
| 99 | +.. _`Tarantool at Github`: https://github.com/tarantool/tarantool |
| 100 | +.. _`Tarantool User Guide`: http://tarantool.org/doc/user_guide.html |
| 101 | +.. _`Client-server protocol specification`: http://tarantool.org/doc/dev_guide/box-protocol.html |
| 102 | +.. _`Sophia`: http://sphia.org |
| 103 | +.. _`BSD licensed`: http://www.gnu.org/licenses/license-list.html#ModifiedBSD |
| 104 | + |
| 105 | + |
| 106 | +%prep |
| 107 | +%setup -q -c %{name}-%{version} |
| 108 | + |
| 109 | +%build |
| 110 | +python setup.py build |
| 111 | + |
| 112 | +%install |
| 113 | +python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES |
| 114 | + |
| 115 | +%clean |
| 116 | +rm -rf $RPM_BUILD_ROOT |
| 117 | + |
| 118 | +%files -f INSTALLED_FILES |
| 119 | +%defattr(-,root,root) |
0 commit comments