From 813a36871a1c08e023edebfc63d7719afa4720f6 Mon Sep 17 00:00:00 2001 From: jackie_wu Date: Wed, 29 Sep 2021 14:45:49 +0800 Subject: [PATCH] disable server and ipatests module --- freeipa.spec | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/freeipa.spec b/freeipa.spec index a076057..1ccc605 100644 --- a/freeipa.spec +++ b/freeipa.spec @@ -4,15 +4,16 @@ %bcond_with doc %bcond_with wheels -%global ONLY_CLIENT 0 -%global enable_server_option --enable-server +%global ipatests 0 +%global ONLY_CLIENT 1 +%global enable_server_option --disable-server %if %{ONLY_CLIENT} %global with_ipatests 0 %endif # Whether to build ipatests -%if %{with ipatests} +%if %{ipatests} %global with_ipatests_option --with-ipatests %else %global with_ipatests_option --without-ipatests @@ -104,7 +105,7 @@ Name: %{package_name} Version: %{IPA_VERSION} -Release: 3 +Release: 4 Summary: The Identity, Policy and Audit system License: GPLv3+ @@ -713,7 +714,7 @@ and integration with Active Directory based infrastructures (Trusts). If you are using IPA, you need to install this package. -%if %{with ipatests} +%if %{ipatests} %package -n python3-ipatests Summary: IPA tests and test tools @@ -838,7 +839,7 @@ rm -f %{buildroot}%{_usr}/share/ipa/ui/images/login-screen-logo.png rm -f %{buildroot}%{_usr}/share/ipa/ui/images/product-name.png -%if %{with ipatests} +%if %{ipatests} mv %{buildroot}%{_bindir}/ipa-run-tests %{buildroot}%{_bindir}/ipa-run-tests-%{python3_version} mv %{buildroot}%{_bindir}/ipa-test-config %{buildroot}%{_bindir}/ipa-test-config-%{python3_version} mv %{buildroot}%{_bindir}/ipa-test-task %{buildroot}%{_bindir}/ipa-test-task-%{python3_version} @@ -1501,7 +1502,7 @@ fi %{python3_sitelib}/ipaplatform-*.egg-info -%if %{with ipatests} +%if %{ipatests} %files -n python3-ipatests @@ -1535,6 +1536,9 @@ fi %changelog +* Wed Sep 29 2021 wutao - 4.9.3-4 +- disable server and ipatests module + * Thu Sep 2 2021 wutao - 4.9.3-2 - Package init -- Gitee