%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())")}
%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
%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
--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} \
%endif
#################################################################################
+%if 0%{with cephfs_java}
%files -n libcephfs_jni1
%defattr(-,root,root,-)
%{_libdir}/libcephfs_jni.so.*
%defattr(-,root,root,-)
%{_javadir}/libcephfs.jar
%{_javadir}/libcephfs-test.jar
+%endif
#################################################################################
%files libs-compat