Skip to content

Commit

Permalink
ceph.spec.in: add a build option for radosgw (--with radosgw)
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
chbmuc authored and liewegas committed Jul 9, 2010
1 parent bf047a6 commit 8ec5134
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
%define with_radosgw %{?_with_radosgw: 1} %{!?_with_radosgw: 0}

Name: ceph
Version: @VERSION@
Release: 4%{?dist}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 0.19.1-5
- Remove java deps (no need to build hadoop by default)
Expand Down

0 comments on commit 8ec5134

Please sign in to comment.