From 0d23d70095264c819f70a3153afc56303070ff30 Mon Sep 17 00:00:00 2001
From: Dmitry Simonenko <pmwkaa@gmail.com>
Date: Thu, 6 Feb 2014 16:18:45 +0400
Subject: [PATCH] tarantool-sql-module: add rpm package for the module.

---
 extra/rpm.spec.in | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/extra/rpm.spec.in b/extra/rpm.spec.in
index 5a4b2174ed..82eb8568cd 100644
--- a/extra/rpm.spec.in
+++ b/extra/rpm.spec.in
@@ -22,6 +22,21 @@ replication, online backup, stored procedures in Lua.
 This package provides the server daemon and administration
 scripts.
 
+# Tarantool sql module
+
+%package sql-module
+Summary: Tarantool common sql interface
+Vendor: tarantool.org
+Group: Applications/Databases
+Provides: tarantool-sql-module
+Obsoletes: tarantool-sql-module
+%description -n tarantool-sql-module
+Tarantool is a high performance in-memory NoSQL database.
+It supports replication, online backup, stored procedures in Lua.
+
+This package provides a common sql interface to use with
+tarantool-pg-module or by tarantool-mysql-module.
+
 # Tarantool client spec
 
 %package client
@@ -102,6 +117,13 @@ useradd -r -g tarantool tarantool > /dev/null 2>&1
 %dir "%{_sysconfdir}/tarantool"
 %config(noreplace) "%{_sysconfdir}/tarantool/tarantool.cfg"
 
+%files sql-module
+%defattr(-,root,root,-)
+%dir "/usr/lib/tarantool/1.5"
+%dir "/usr/lib/tarantool/1.5/box"
+%dir "/usr/lib/tarantool/1.5/box/net"
+"/usr/lib/tarantool/1.5/box/net/sql.lua"
+
 %files dev
 %defattr(-,root,root,-)
 %dir "/usr/include/tarantool"
-- 
GitLab