]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add rpm conditionals : libs_compat
authorOwen Synge <osynge@suse.com>
Fri, 29 May 2015 11:35:19 +0000 (13:35 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2015 10:24:17 +0000 (11:24 +0100)
Extracted conditionals from SUSE rpm spec file to forward port.
Original work done by Thorsten Behrens <tbehrens@suse.com>

Signed-off-by: Owen Synge <osynge@suse.com>
(cherry picked from commit c6c3a3bca2078f5dbd991a5062f9f2f4e66cca35)

ceph.spec.in

index 1e665a5a11058e91407b9b120561189dfcfd2e48..a8c5873b8aed4cea0431617f60aa2aa55463c09e 100644 (file)
@@ -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