]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: add debian and rpm packaging
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 3 Feb 2016 22:44:02 +0000 (17:44 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 18:07:24 +0000 (13:07 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
ceph.spec.in
debian/control
debian/librgw-dev.install [new file with mode: 0644]
debian/librgw2.install [new file with mode: 0644]
debian/rules

index fb91d17b318c43fd073ad3f4f895d989bf82445e..f93d1ff551c290cebad2f116bb84bf6eab2ef2d9 100644 (file)
@@ -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,-)
index 050843e15278fa6822dcebda561c6613d00b14fd..44a1600c149092d19ad1c6571d46651a3fe8c2df 100644 (file)
@@ -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 (file)
index 0000000..a10b2d9
--- /dev/null
@@ -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 (file)
index 0000000..b86fb89
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/librgw.so.*
index d01b0918ef5da87f72da53c7940b2f959e3660d5..83ec853a18cfa8e433a93fd8063108fbaf8466aa 100755 (executable)
@@ -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