From c6c3a3bca2078f5dbd991a5062f9f2f4e66cca35 Mon Sep 17 00:00:00 2001 From: Owen Synge Date: Fri, 29 May 2015 13:35:19 +0200 Subject: [PATCH] Add rpm conditionals : libs_compat Extracted conditionals from SUSE rpm spec file to forward port. Original work done by Thorsten Behrens Signed-off-by: Owen Synge --- ceph.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 5738f2a6331a8..fb17b95a81f9a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -2,6 +2,7 @@ %bcond_without cephfs_java %bcond_with tests %bcond_without tcmalloc +%bcond_without libs_compat %if (0%{?el5} || (0%{?rhel_version} >= 500 && 0%{?rhel_version} <= 600)) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} @@ -411,6 +412,8 @@ This package contains the Java libraries for the Ceph File System. %endif +%if 0%{with libs_compat} + %package libs-compat Summary: Meta package to include ceph libraries Group: System Environment/Libraries @@ -428,6 +431,8 @@ 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. +%endif + %package devel-compat Summary: Compatibility package for Ceph headers Group: Development/Libraries @@ -994,6 +999,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %endif ################################################################################# +%if 0%{with libs_compat} %files libs-compat # We need an empty %%files list for ceph-libs-compat, to tell rpmbuild to actually # build this meta package. @@ -1002,6 +1008,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %files devel-compat # We need an empty %%files list for ceph-devel-compat, to tell rpmbuild to # actually build this meta package. +%endif ################################################################################# %files -n python-ceph-compat -- 2.39.5