From 910d73c4a84aef44a126221a9ccba5a3ac2b7337 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Mon, 26 May 2014 16:31:08 +0200 Subject: [PATCH] Added RPM and debian packaging for libradosstriper, creating a new package called libradosstriper1 Signed-off-by: Sebastien Ponce --- ceph.spec.in | 26 ++++++++++++++++++++++ debian/control | 35 +++++++++++++++++++++++++++++- debian/libradosstriper-dev.install | 5 +++++ debian/libradosstriper1.install | 2 ++ debian/rules | 1 + 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 debian/libradosstriper-dev.install create mode 100644 debian/libradosstriper1.install diff --git a/ceph.spec.in b/ceph.spec.in index 73a66317fb116..16c601bb04982 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -118,6 +118,7 @@ Group: Development/Libraries License: LGPL-2.0 Requires: %{name} = %{version}-%{release} Requires: librados2 = %{version} +Requires: libradosstriper1 = %{version} Requires: librbd1 = %{version} Requires: libcephfs1 = %{version} %description devel @@ -167,6 +168,16 @@ developed as part of the Ceph distributed storage system. This is a shared library allowing applications to access the distributed object store using a simple file-like interface. +%package -n libradosstriper1 +Summary: RADOS striping interface +Group: System Environment/Libraries +License: LGPL-2.0 +Requires: librados2 = %{version} +%description -n libradosstriper1 +Striping interface built on top of the rados library, allowing +to stripe bigger objects onto several standard rados objects using +an interface very similar to the rados one. + %package -n librbd1 Summary: RADOS block device client library Group: System Environment/Libraries @@ -517,6 +528,9 @@ fi %{_includedir}/rados/rados_types.h %{_includedir}/rados/rados_types.hpp %{_includedir}/rados/memory.h +%dir %{_includedir}/radosstriper +%{_includedir}/radosstriper/libradosstriper.h +%{_includedir}/radosstriper/libradosstriper.hpp %dir %{_includedir}/rbd %{_includedir}/rbd/librbd.h %{_includedir}/rbd/librbd.hpp @@ -524,6 +538,7 @@ fi %{_libdir}/libcephfs.so %{_libdir}/librbd.so %{_libdir}/librados.so +%{_libdir}/libradosstriper.so %{_libdir}/libcephfs_jni.so ################################################################################# @@ -581,6 +596,17 @@ fi %postun -n librados2 /sbin/ldconfig +################################################################################# +%files -n libradosstriper1 +%defattr(-,root,root,-) +%{_libdir}/libradosstriper.so.* + +%post -n libradosstriper1 +/sbin/ldconfig + +%postun -n libradosstriper1 +/sbin/ldconfig + ################################################################################# %files -n librbd1 %defattr(-,root,root,-) diff --git a/debian/control b/debian/control index 046e5b81fba05..cc9ec748ed1c2 100644 --- a/debian/control +++ b/debian/control @@ -58,7 +58,7 @@ Depends: binutils, xfsprogs, ${misc:Depends}, ${shlibs:Depends} -Recommends: btrfs-tools, ceph-mds, librados2, librbd1 +Recommends: btrfs-tools, ceph-mds, librados2, libradosstriper1, librbd1 Replaces: ceph-common (<< 0.78-500) X-Python-Version: >= 2.6 Description: distributed storage and file system @@ -277,6 +277,39 @@ Description: RADOS distributed object store client library (development files) This package contains development files needed for building applications that link against librados. +Package: libradosstriper1 +Architecture: linux-any +Section: libs +Depends: librados2 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: RADOS striping interface + Striping interface built on top of the rados library, allowing + to stripe bigger objects onto several standard rados objects using + an interface very similar to the rados one. + +Package: libradosstriper1-dbg +Architecture: linux-any +Section: debug +Priority: extra +Depends: libradosstriper1 (= ${binary:Version}), ${misc:Depends} +Description: debugging symbols for libradosstriper + libradosstriper is a striping interface built on top of the rados + library, allowing to stripe bigger objects onto several standard + rados objects using an interface very similar to the rados one. + . + This package contains debugging symbols for libradosstriper. + +Package: libradosstriper-dev +Architecture: linux-any +Section: libdevel +Depends: libradosstriper1 (= ${binary:Version}), ${misc:Depends} +Description: RADOS striping interface (development files) + libradosstriper is a striping interface built on top of the rados + library, allowing to stripe bigger objects onto several standard + rados objects using an interface very similar to the rados one. + . + This package contains development files needed for building applications that + link against libradosstriper. + Package: librbd1 Architecture: linux-any Section: libs diff --git a/debian/libradosstriper-dev.install b/debian/libradosstriper-dev.install new file mode 100644 index 0000000000000..04e24f18cee74 --- /dev/null +++ b/debian/libradosstriper-dev.install @@ -0,0 +1,5 @@ +usr/include/radosstriper/libradosstriper.h +usr/include/radosstriper/libradosstriper.hpp +usr/lib/libradosstriper.a +usr/lib/libradosstriper.la +usr/lib/libradosstriper.so diff --git a/debian/libradosstriper1.install b/debian/libradosstriper1.install new file mode 100644 index 0000000000000..0adecb52589ce --- /dev/null +++ b/debian/libradosstriper1.install @@ -0,0 +1,2 @@ + +usr/lib/libradosstriper.so.* diff --git a/debian/rules b/debian/rules index 81f578e82e5a2..91773313e5ce4 100755 --- a/debian/rules +++ b/debian/rules @@ -136,6 +136,7 @@ binary-arch: build install dh_strip -pceph-common --dbg-package=ceph-common-dbg dh_strip -pceph-fs-common --dbg-package=ceph-fs-common-dbg dh_strip -plibrados2 --dbg-package=librados2-dbg + dh_strip -plibradosstriper1 --dbg-package=libradosstriper1-dbg dh_strip -plibrbd1 --dbg-package=librbd1-dbg dh_strip -plibcephfs1 --dbg-package=libcephfs1-dbg dh_strip -pradosgw --dbg-package=radosgw-dbg -- 2.39.5