summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/thrift.spec13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/thrift.spec b/contrib/thrift.spec
index 034ebc879..5cfe88802 100644
--- a/contrib/thrift.spec
+++ b/contrib/thrift.spec
@@ -178,6 +178,19 @@ export RUBYLIB=${PWD}/lib/rb/lib
--without-csharp \
--without-erlang \
+%if 0%{!?without_ruby:1}
+eval $(grep "^WITH_RUBY_TRUE" config.log)
+if [[ "${WITH_RUBY_TRUE}" != "" ]]; then
+ set +x
+ echo ""
+ echo "configure determined that ruby requirements are missing (bundler gem?), either install missing components" >&2
+ echo "or disable the ruby sub-packages as follows:" >&2
+ echo " rpmbuild -D'%without_ruby 1' ..." >&2
+ echo ""
+ exit 1
+fi
+%endif
+
make %{?_smp_mflags}
%if 0%{!?without_java:1}