From 7ac9e43ebcc4e65b4150aea83e85af19e22964a1 Mon Sep 17 00:00:00 2001 From: "James E. King III" Date: Wed, 19 Dec 2018 22:12:32 -0500 Subject: THRIFT-2333: patch for ruby in rpmbuild --- contrib/thrift.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'contrib') 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} -- cgit v1.2.1