]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Added ceph_test_package bcond flag to control the build of ceph-test package
authorRicardo Dias <rdias@suse.com>
Tue, 23 Aug 2016 11:36:55 +0000 (13:36 +0200)
committerRicardo Dias <rdias@suse.com>
Fri, 9 Sep 2016 13:12:44 +0000 (14:12 +0100)
Fixes: http://tracker.ceph.com/issues/16776
Signed-off-by: Ricardo Dias <rdias@suse.com>
ceph.spec.in

index 812c68eeb1225c3726ff5d1ce6c258ad225640b2..9ba1fd82937307fc4fb746e3e55711d8224ec767 100644 (file)
 # 
 %bcond_with ocf
 %bcond_without cephfs_java
+%if 0%{?suse_version}
+%bcond_with ceph_test_package
+%else
+%bcond_without ceph_test_package
+%endif
 %bcond_with make_check
 %bcond_with xio
 %ifnarch s390 s390x
@@ -560,6 +565,7 @@ well as the RESTful interface. These have to do with querying the daemons for
 command-description information, validating user command input against those
 descriptions, and submitting the command to the appropriate daemon.
 
+%if 0%{with ceph_test_package}
 %package -n ceph-test
 Summary:       Ceph benchmarks and test tools
 Group:         System Environment/Libraries
@@ -568,6 +574,7 @@ Requires:   ceph-common
 Requires:      xmlstarlet
 %description -n ceph-test
 This package contains Ceph benchmarks and test tools.
+%endif
 
 %if 0%{with cephfs_java}
 
@@ -680,6 +687,9 @@ cmake .. \
 %if 0%{with xio}
     -DWITH_XIO=ON \
 %endif
+%if 0%{without ceph_test_package}
+    -DWITH_TESTS=OFF \
+%endif
 %if 0%{with cephfs_java}
     -DWITH_CEPHFS_JAVA=ON \
 %endif
@@ -1393,6 +1403,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{python3_sitelib}/ceph_daemon.py
 %{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py*
 
+%if 0%{with ceph_test_package}
 %files -n ceph-test
 %defattr(-,root,root,-)
 %{_bindir}/ceph-client-debug
@@ -1428,6 +1439,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_mandir}/man8/ceph-debugpack.8*
 %dir %{_libdir}/ceph
 %{_libdir}/ceph/ceph-monstore-update-crush.sh
+%endif
 
 %if 0%{with cephfs_java}
 %files -n libcephfs_jni1