From 6a552889718b191a7ca2bf138c117aa8cacdb1d9 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 (cherry picked from commit c6c3a3bca2078f5dbd991a5062f9f2f4e66cca35) --- ceph.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 1e665a5a11058..a8c5873b8aed4 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())")} @@ -395,6 +396,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 @@ -412,6 +415,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 @@ -969,6 +974,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. @@ -977,6 +983,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