From: Matt Benjamin Date: Wed, 3 Feb 2016 22:44:02 +0000 (-0500) Subject: librgw: add debian and rpm packaging X-Git-Tag: v10.1.0~382^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=de0f86691bf249ec3653185447e7a9f80bd445d0;p=ceph.git librgw: add debian and rpm packaging Signed-off-by: Matt Benjamin --- diff --git a/ceph.spec.in b/ceph.spec.in index fb91d17b318c..f93d1ff551c2 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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} @@ -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 @@ -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 @@ -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,-) diff --git a/debian/control b/debian/control index 050843e15278..44a1600c1490 100644 --- a/debian/control +++ b/debian/control @@ -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 diff --git a/debian/librgw-dev.install b/debian/librgw-dev.install new file mode 100644 index 000000000000..a10b2d99c07f --- /dev/null +++ b/debian/librgw-dev.install @@ -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 diff --git a/debian/librgw2.install b/debian/librgw2.install new file mode 100644 index 000000000000..b86fb891e2c2 --- /dev/null +++ b/debian/librgw2.install @@ -0,0 +1 @@ +usr/lib/librgw.so.* diff --git a/debian/rules b/debian/rules index d01b0918ef5d..83ec853a18cf 100755 --- a/debian/rules +++ b/debian/rules @@ -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