From patchwork Fri Jul 9 09:13:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brunner X-Patchwork-Id: 111032 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o699BKfL008635 for ; Fri, 9 Jul 2010 09:13:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754752Ab0GIJNG (ORCPT ); Fri, 9 Jul 2010 05:13:06 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:49318 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754635Ab0GIJND (ORCPT ); Fri, 9 Jul 2010 05:13:03 -0400 Received: by bwz1 with SMTP id 1so929723bwz.19 for ; Fri, 09 Jul 2010 02:13:02 -0700 (PDT) Received: by 10.204.114.206 with SMTP id f14mr1965542bkq.193.1278666782379; Fri, 09 Jul 2010 02:13:02 -0700 (PDT) Received: from bambus (p5498FE3D.dip.t-dialin.net [84.152.254.61]) by mx.google.com with ESMTPS id o20sm2918066bkw.3.2010.07.09.02.13.01 (version=SSLv3 cipher=RC4-MD5); Fri, 09 Jul 2010 02:13:01 -0700 (PDT) Date: Fri, 9 Jul 2010 11:13:04 +0200 From: Christian Brunner To: ceph-devel@vger.kernel.org Subject: [PATCH 4/4] ceph.spec.in: add a build option for radosgw (--with radosgw) Message-ID: <20100709091304.GF29300@bambus> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 09 Jul 2010 09:13:07 +0000 (UTC) --- ceph.spec.in | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index de35c24..dd6bb8a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1,3 +1,5 @@ +%define with_radosgw %{?_with_radosgw: 1} %{!?_with_radosgw: 0} + Name: ceph Version: @VERSION@ Release: 4%{?dist} @@ -35,12 +37,30 @@ Requires: %{name} = %{version}-%{release} %description devel This package contains the headers needed to develop programs that use Ceph. +%if %{with_radosgw} +%package radosgw +Summary: rados REST gateway +Group: Development/Libraries +Requires: mod_fcgid +BuildRequires: fcgi-devel +BuildRequires: expat-devel + +%description radosgw +radosgw is an S3 HTTP REST gateway for the RADOS object store. It is +implemented as a FastCGI module using libfcgi, and can be used in +conjunction with any FastCGI capable web server. +%endif + %prep %setup -q %build ./autogen.sh +%if %{with_radosgw} +%{configure} --without-hadoop --with-radosgw +%else %{configure} --without-hadoop +%endif make -j$(getconf _NPROCESSORS_ONLN) CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %install @@ -151,6 +171,12 @@ fi %{_libdir}/librados.so %{_libdir}/rados-classes/libcls_rbd.so +%if %{with_radosgw} +%files radosgw +%{_bindir}/radosgw +%{_bindir}/radosgw_admin +%endif + %changelog * Fri Apr 30 2010 Sage Weil 0.19.1-5 - Remove java deps (no need to build hadoop by default)