From 46896b74afd50af6037e50e68e0dde6c8dcecc5b Mon Sep 17 00:00:00 2001
From: Dmitry Simonenko <pmwkaa@gmail.com>
Date: Fri, 8 Nov 2013 19:03:56 +0400
Subject: [PATCH] gh#110: add mandatory dependency on tarantool-devel package
 and binutils-devel for build.

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

diff --git a/extra/rpm.spec.in b/extra/rpm.spec.in
index 03504f64cc..1c4ab4a9f0 100644
--- a/extra/rpm.spec.in
+++ b/extra/rpm.spec.in
@@ -1,6 +1,8 @@
 %define _topdir @RPM_ROOT@
 %define _rpmdir @RPM_ROOT@
 
+# Require for libbfd (backtrace support)
+BuildRequires: binutils-devel
 BuildRoot: @RPM_BUILDROOT@
 
 Name: tarantool
@@ -10,7 +12,7 @@ Group: Applications/Databases
 Summary: Tarantool - an efficient in-memory data store
 Vendor: tarantool.org
 License: BSD
-Requires: libgcc >= 4.1.2-50
+Requires: libgcc >= 4.1.2-50 tarantool-debug = @RPM_PACKAGE_VERSION@-@RPM_PACKAGE_RELEASE@
 URL: http://tarantool.org
 Source0: @RPM_PACKAGE_SOURCE_FILE_NAME@
 %description
@@ -28,6 +30,7 @@ Vendor: tarantool.org
 Group: Applications/Databases
 Provides: tarantool-client
 Obsoletes: tarantool-client
+Requires: tarantool-debug = @RPM_PACKAGE_VERSION@-@RPM_PACKAGE_RELEASE@
 %description -n tarantool-client
 Tarantool is a high performance in-memory NoSQL database.
 It supports replication, online backup, stored procedures in Lua.
@@ -44,6 +47,7 @@ Group: Applications/Databases
 #Requires: /sbin/ldconfig
 Provides: tarantool-dev
 Obsoletes: tarantool-dev
+Requires: tarantool-debug = @RPM_PACKAGE_VERSION@-@RPM_PACKAGE_RELEASE@
 %description -n tarantool-dev
 Tarantool is a high performance in-memory NoSQL database.
 It supports replication, online backup, stored procedures in Lua.
-- 
GitLab