Skip to content

Commit

Permalink
librgw: add debian and rpm packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Benjamin <[email protected]>
  • Loading branch information
mattbenjamin committed Feb 12, 2016
1 parent 2f706ef commit de0f866
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 1 deletion.
39 changes: 39 additions & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Patch0: init-ceph.in-fedora.patch
Requires: librbd1 = %{epoch}:%{version}-%{release}
Requires: librados2 = %{epoch}:%{version}-%{release}
Requires: libcephfs1 = %{epoch}:%{version}-%{release}
Requires: librgw2 = %{epoch}:%{version}-%{release}
Requires: ceph-common = %{epoch}:%{version}-%{release}
%if 0%{with selinux}
Requires: ceph-selinux = %{epoch}:%{version}-%{release}
Expand Down Expand Up @@ -303,6 +304,7 @@ Requires: ceph-common = %{epoch}:%{version}-%{release}
Requires: ceph-selinux = %{epoch}:%{version}-%{release}
%endif
Requires: librados2 = %{epoch}:%{version}-%{release}
Requires: librgw2 = %{epoch}:%{version}-%{release}
%if 0%{?rhel} || 0%{?fedora}
Requires: mailcap
%endif
Expand Down Expand Up @@ -347,6 +349,24 @@ Obsoletes: ceph-devel < %{epoch}:%{version}-%{release}
This package contains libraries and headers needed to develop programs
that use RADOS object store.

%package -n librgw2
Summary: RADOS gateway client library
Group: System Environment/Libraries
License: LGPL-2.0
Requires: librados2 = %{epoch}:%{version}-%{release}
%description -n librgw2
This package provides a library implementation of the RADOS gateway
(distributed object store with S3 and Swift personalities).

%package -n librgw2-devel
Summary: RADOS gateway client library
Group: Development/Libraries
License: LGPL-2.0
Requires: librados2 = %{epoch}:%{version}-%{release}
%description -n librgw2-devel
This package contains libraries and headers needed to develop programs
that use RADOS gateway client library.

%package -n python-rados
Summary: Python libraries for the RADOS object store
Group: System Environment/Libraries
Expand Down Expand Up @@ -1186,6 +1206,25 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
%{_libdir}/librbd_tp.so
%endif

#################################################################################
%files -n librgw2
%defattr(-,root,root,-)
%{_libdir}/librgw.so.*

%post -n librgw2
/sbin/ldconfig

%postun -n librgw2
/sbin/ldconfig

#################################################################################
%files -n librgw2-devel
%defattr(-,root,root,-)
%dir %{_includedir}/rados
%{_includedir}/rados/librgw.h
%{_includedir}/rados/rgw_file.h
%{_libdir}/librgw.so

#################################################################################
%files -n python-rbd
%defattr(-,root,root,-)
Expand Down
44 changes: 43 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,51 @@ Description: Ceph distributed file system client library (development files)
This package contains development files needed for building applications that
link against libcephfs.





Package: librgw2
Architecture: linux-any
Section: libs
Depends: librados2 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
Description: RADOS Gateway client library
RADOS is a distributed object store used by the Ceph distributed
storage system. This package provides a REST gateway to the
object store that aims to implement a superset of Amazon's S3
service.
.
This package contains the library interface and headers only.

Package: librgw2-dbg
Architecture: linux-any
Section: debug
Priority: extra
Depends: librgw2 (= ${binary:Version}), ${misc:Depends}
Description: debugging symbols for librbd1
RADOS is a distributed object store used by the Ceph distributed
storage system. This package provides a REST gateway to the
object store that aims to implement a superset of Amazon's S3
service.
.
This package contains debugging symbols for librgw2.

Package: librgw-dev
Architecture: linux-any
Section: libdevel
Depends: librados-dev, librgw2 (= ${binary:Version}), ${misc:Depends}
Description: RADOS block device client library (development files)
RADOS is a distributed object store used by the Ceph distributed
storage system. This package provides a REST gateway to the
object store that aims to implement a superset of Amazon's S3
service.
.
This package contains development files needed for building applications
that link against librgw2.

Package: radosgw
Architecture: linux-any
Depends: ceph-common (= ${binary:Version}), mime-support,
Depends: librgw2, ceph-common (= ${binary:Version}), mime-support,
${misc:Depends}, ${shlibs:Depends}
Description: REST gateway for RADOS distributed object store
RADOS is a distributed object store used by the Ceph distributed
Expand Down
5 changes: 5 additions & 0 deletions debian/librgw-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
usr/include/rados/librgw.h
usr/include/rados/rgw_file.h
usr/lib/librgw.a
usr/lib/librgw.la
usr/lib/librgw.so
1 change: 1 addition & 0 deletions debian/librgw2.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/librgw.so.*
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ binary-arch: build install
dh_strip -plibradosstriper1 --dbg-package=libradosstriper1-dbg
dh_strip -plibrbd1 --dbg-package=librbd1-dbg
dh_strip -plibcephfs1 --dbg-package=libcephfs1-dbg
dh_strip -plibrgw2 --dbg-package=librgw2-dbg
dh_strip -pradosgw --dbg-package=radosgw-dbg
dh_strip -pceph-test --dbg-package=ceph-test-dbg

Expand Down

0 comments on commit de0f866

Please sign in to comment.