From: Owen Synge Date: Fri, 29 May 2015 11:28:24 +0000 (+0200) Subject: Add rpm conditionals : cephfs_java X-Git-Tag: v0.94.4~65^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37284773a754ef4b91d2b5436d46a5fd2be4f67e;p=ceph.git Add rpm conditionals : cephfs_java 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 c65538f489897821877421043300d9c008224f02) --- diff --git a/ceph.spec.in b/ceph.spec.in index cd885413ffbb..106c99ebd5d9 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1,4 +1,5 @@ %bcond_with ocf +%bcond_without cephfs_java %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} @@ -328,6 +329,8 @@ BuildRequires: libbabeltrace-devel %description -n ceph-test This package contains Ceph benchmarks and test tools. +%if 0%{with cephfs_java} + %package -n libcephfs_jni1 Summary: Java Native Interface library for CephFS Java bindings. Group: System Environment/Libraries @@ -367,6 +370,8 @@ BuildRequires: junit %description -n cephfs-java This package contains the Java libraries for the Ceph File System. +%endif + %package libs-compat Summary: Meta package to include ceph libraries. Group: System Environment/Libraries @@ -452,7 +457,9 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'` --without-cryptopp \ --with-rest-bench \ --with-debug \ +%if 0%{with cephfs_java} --enable-cephfs-java \ +%endif --with-librocksdb-static=check \ $MY_CONF_OPT \ %{?_with_ocf} \ @@ -889,6 +896,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %endif ################################################################################# +%if 0%{with cephfs_java} %files -n libcephfs_jni1 %defattr(-,root,root,-) %{_libdir}/libcephfs_jni.so.* @@ -903,6 +911,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %defattr(-,root,root,-) %{_javadir}/libcephfs.jar %{_javadir}/libcephfs-test.jar +%endif ################################################################################# %files libs-compat