]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Add rpm conditionals : cephfs_java
authorOwen Synge <osynge@suse.com>
Fri, 29 May 2015 11:28:24 +0000 (13:28 +0200)
committerOwen Synge <osynge@suse.com>
Wed, 3 Jun 2015 13:55:00 +0000 (15:55 +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 a5301f9700fbab4d7aaa6167ad1b30e1cc346bb6..fcbce040d38f4504f4fcf870c716394469998927 100644 (file)
@@ -1,4 +1,5 @@
 %bcond_with ocf
+%bcond_without cephfs_java
 
 %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())")}
@@ -362,6 +363,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
@@ -401,6 +404,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
@@ -486,7 +491,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 \
 %if 0%{?rhel} || 0%{?fedora}
                --with-systemd-libexec-dir=/usr/libexec/ceph \
@@ -953,6 +960,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.*
@@ -967,6 +975,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