From: Owen Synge Date: Fri, 29 May 2015 11:35:19 +0000 (+0200) Subject: Add rpm conditionals : libs_compat X-Git-Tag: v9.0.2~59^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4725%2Fhead;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 5738f2a6331a..fb17b95a81f9 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