From 4b4f42b45b85f20dacaea0a724070ad8b82b8988 Mon Sep 17 00:00:00 2001 From: jfarrell Date: Wed, 27 Nov 2013 12:45:49 -0500 Subject: [PATCH] THRIFT-2249:Add SMP Build option to thrift.spec (and three config defines) Client: build Patch: Martin Vogt the patch improves the .spec file in contrib/. with a parallel build option and add defines --- contrib/thrift.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/contrib/thrift.spec b/contrib/thrift.spec index d281eb9c..7aa7a16c 100644 --- a/contrib/thrift.spec +++ b/contrib/thrift.spec @@ -17,6 +17,10 @@ # under the License. # +%define without_java 1 +%define without_python 1 +%define without_tests 1 + %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} @@ -24,7 +28,7 @@ Name: thrift License: Apache License v2.0 Group: Development Summary: RPC and serialization framework -Version: 0.9.0 +Version: 0.9.1 Release: 0 URL: http://thrift.apache.org Packager: Thrift Developers @@ -127,12 +131,13 @@ Python libraries for Thrift. %configure \ %{?without_libevent: --without-libevent } \ %{?without_zlib: --without-zlib } \ - --without-java \ + %{?without_tests: --without-tests } \ + %{?without_java: --without-java } \ + %{?without_python: --without-python } \ --without-csharp \ - --without-python \ --without-erlang \ -make +make %{?_smp_mflags} %if 0%{!?without_java:1} cd lib/java -- 2.17.1