All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Brunner <chb@muc.de>
To: ceph-devel@vger.kernel.org
Subject: [PATCH 4/4] ceph.spec.in: add a build option for radosgw (--with radosgw)
Date: Fri, 9 Jul 2010 11:13:04 +0200	[thread overview]
Message-ID: <20100709091304.GF29300@bambus> (raw)

---
 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 <sage@newdream.net> 0.19.1-5
 - Remove java deps (no need to build hadoop by default)
-- 
1.6.5.2


                 reply	other threads:[~2010-07-09  9:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100709091304.GF29300@bambus \
    --to=chb@muc.de \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.