diff options
author | James E. King III <jking@apache.org> | 2018-12-19 22:12:32 -0500 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2018-12-19 22:12:32 -0500 |
commit | 7ac9e43ebcc4e65b4150aea83e85af19e22964a1 (patch) | |
tree | e10f83e7b8478b94e07b547f863c06d49bdf357c /contrib | |
parent | 9b75e4fe745a9b08e6ccdc0998ec7a69272f5b4c (diff) | |
download | thrift-7ac9e43ebcc4e65b4150aea83e85af19e22964a1.tar.gz |
THRIFT-2333: patch for ruby in rpmbuild
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/thrift.spec | 13 |
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} |