]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add rpm conditionals : libs_compat 4725/head
authorOwen Synge <osynge@suse.com>
Fri, 29 May 2015 11:35:19 +0000 (13:35 +0200)
committerOwen Synge <osynge@suse.com>
Wed, 3 Jun 2015 13:57:39 +0000 (15:57 +0200)
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>
ceph.spec.in

index 5738f2a6331a876a22972a5b51f5d4992db518a7..fb17b95a81f9a727cb337d7d547923042a2e698a 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())")}
@@ -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