]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: add a build option for radosgw (--with radosgw)
authorChristian Brunner <chb@muc.de>
Fri, 9 Jul 2010 09:13:04 +0000 (11:13 +0200)
committerSage Weil <sage@newdream.net>
Fri, 9 Jul 2010 16:38:12 +0000 (09:38 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
ceph.spec.in

index 5a3d7440ef0c66b537e7e47b81c8a43fa5873715..bb05f1f38bd1e29abab73714c316cb04ba9247ad 100644 (file)
@@ -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)