This is an automated email from the ASF dual-hosted git repository. jking pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push: new 7ac9e43 THRIFT-2333: patch for ruby in rpmbuild 7ac9e43 is described below commit 7ac9e43ebcc4e65b4150aea83e85af19e22964a1 Author: James E. King III <jk...@apache.org> AuthorDate: Wed Dec 19 22:12:32 2018 -0500 THRIFT-2333: patch for ruby in rpmbuild --- contrib/thrift.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/contrib/thrift.spec b/contrib/thrift.spec index 034ebc8..5cfe888 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}