]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: add ceph-libs-compat
authorErik Logtenberg <erik@logtenberg.eu>
Thu, 31 Jul 2014 21:49:56 +0000 (23:49 +0200)
committerDan Mick <dan.mick@inktank.com>
Wed, 27 Aug 2014 19:56:07 +0000 (12:56 -0700)
Added a ceph-libs-compat package in accordance with Fedora packaging
guidelines [1], to handle the recent package split more gracefully.
In Fedora this is necessary because there are already other packages
depending on ceph-libs, that need to be adjusted to depend on the new
split packages instead. In the mean time, ceph-libs-compat prevents
breakage.

[1] http://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages

Signed-off-by: Erik Logtenberg <erik@logtenberg.eu>
ceph.spec.in

index 694c439e5b4549494670e56bf6c0f791f35925c3..5750701f3383365a61dd2baa8786ddab9006e03b 100644 (file)
@@ -176,7 +176,7 @@ Summary:    RADOS distributed object store client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
 %if 0%{?rhel} || 0%{?centos_version} || 0%{?fedora}
-Obsoletes:     ceph-libs
+Obsoletes:     ceph-libs < 0.80.5
 %endif
 %description -n librados2
 RADOS is a reliable, autonomic distributed object storage cluster
@@ -200,7 +200,7 @@ Group:              System Environment/Libraries
 License:       LGPL-2.0
 Requires:      librados2 = %{version}-%{release}
 %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora}
-Obsoletes:     ceph-libs
+Obsoletes:     ceph-libs < 0.80.5
 %endif
 %description -n librbd1
 RBD is a block device striped across multiple distributed objects in
@@ -213,7 +213,7 @@ Summary:    Ceph distributed file system client library
 Group:         System Environment/Libraries
 License:       LGPL-2.0
 %if 0%{?rhel} || 0%{?centos_version} || 0%{?fedora}
-Obsoletes:     ceph-libs
+Obsoletes:     ceph-libs < 0.80.5
 %endif
 %description -n libcephfs1
 Ceph is a distributed network file system designed to provide excellent
@@ -280,6 +280,23 @@ BuildRequires:     junit4
 %description -n cephfs-java
 This package contains the Java libraries for the Ceph File System.
 
+%package libs-compat
+Summary:       Meta package to include ceph libraries.
+Group:         System Environment/Libraries
+License:       LGPL-2.0
+Obsoletes:     ceph-libs < 0.80.5
+Requires:      librados2 = %{version}-%{release}
+Requires:      librbd1 = %{version}-%{release}
+Requires:      libcephfs1 = %{version}-%{release}
+Provides:      ceph-libs
+
+%description libs-compat
+This is a meta package, that pulls in librados2, librbd1 and libcephfs1. It
+is included for backwards compatibility with distributions that depend on the
+former ceph-libs package, which is now split up into these three subpackages.
+Packages still depending on ceph-libs should be fixed to depend on librados2,
+librbd1 or libcephfs1 instead.
+
 %if 0%{?opensuse} || 0%{?suse_version}
 %debug_package
 %endif
@@ -740,4 +757,6 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_javadir}/libcephfs.jar
 %{_javadir}/libcephfs-test.jar
 
+%files libs-compat
+
 %changelog