]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Add rpm conditionals : cephfs_java 5203/head
authorOwen Synge <osynge@suse.com>
Fri, 29 May 2015 11:28:24 +0000 (13:28 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 12 Jul 2015 09:13:48 +0000 (11:13 +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>
(cherry picked from commit c65538f489897821877421043300d9c008224f02)

ceph.spec.in

index cd885413ffbb15afddea769c84185dc9ec418c33..106c99ebd5d9461c424169134a8e0f9eb2b45f25 100644 (file)
@@ -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