summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@samba.org>2020-07-29 13:29:35 +0530
committerGünther Deschner <gd@samba.org>2020-08-04 11:45:46 +0200
commit751faba67e8fa13c11f704f968f0a9447414efde (patch)
tree012773db71d737d5e5520dd8bf92e50c86951480
parent6bb64e8138895e1978aaea8807cac32497b57689 (diff)
downloadsamba-integration-751faba67e8fa13c11f704f968f0a9447414efde.tar.gz
samba-integration-751faba67e8fa13c11f704f968f0a9447414efde.tar.xz
samba-integration-751faba67e8fa13c11f704f968f0a9447414efde.zip
Conditionally build ctdb-tests package
Signed-off-by: Anoop C S <anoopcs@samba.org>
-rw-r--r--packaging/samba.spec.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/samba.spec.j2 b/packaging/samba.spec.j2
index 49f2a21..ea140b5 100644
--- a/packaging/samba.spec.j2
+++ b/packaging/samba.spec.j2
@@ -823,6 +823,7 @@ projects to store temporary data. If an application is already using TDB for
temporary data it is very easy to convert that application to be cluster aware
and use CTDB instead.
+%if %{with testsuite}
### CTDB-TEST
%package -n ctdb-tests
Summary: CTDB clustered database test suite
@@ -842,6 +843,8 @@ CTDB is a cluster implementation of the TDB database used by Samba and other
projects to store temporary data. If an application is already using TDB for
temporary data it is very easy to convert that application to be cluster aware
and use CTDB instead.
+#endif with testsuite
+%endif
#endif with_clustering_support
%endif
@@ -2872,7 +2875,9 @@ fi
%{_sbindir}/ctdbd
%{_sbindir}/ctdbd_wrapper
%{_bindir}/ctdb
+%if %{with testsuite}
%{_bindir}/ctdb_local_daemons
+%endif
%{_bindir}/ping_pong
%{_bindir}/ltdbtool
%{_bindir}/ctdb_diagnostics
@@ -2938,6 +2943,7 @@ fi
%{_datadir}/ctdb/events/legacy/48.netbios.script
+%if %{with testsuite}
%files -n ctdb-tests
%doc ctdb/tests/README
%{_bindir}/ctdb_run_tests
@@ -3720,6 +3726,9 @@ fi
%dir %{_datadir}/ctdb/tests/UNIT/tool/scripts
%{_datadir}/ctdb/tests/UNIT/tool/scripts/local.sh
+#endif with testsuite
+%endif
+
#endif with_clustering_support
%endif