From 5342a5687aac23a0466b4d4dc40c03ca87dccc93 Mon Sep 17 00:00:00 2001 From: jackie_wu Date: Tue, 28 Sep 2021 16:24:26 +0800 Subject: [PATCH] disable server module (cherry picked from commit 9bab5486138b98b0066b4d9adae9fde912566b32) --- freeipa.spec | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/freeipa.spec b/freeipa.spec index a076057..919a9c6 100644 --- a/freeipa.spec +++ b/freeipa.spec @@ -4,19 +4,9 @@ %bcond_with doc %bcond_with wheels -%global ONLY_CLIENT 0 -%global enable_server_option --enable-server - -%if %{ONLY_CLIENT} - %global with_ipatests 0 -%endif - -# Whether to build ipatests -%if %{with ipatests} - %global with_ipatests_option --with-ipatests -%else - %global with_ipatests_option --without-ipatests -%endif +%global ONLY_CLIENT 1 +%global enable_server_option --disable-server +%global with_ipatests_option --without-ipatests # Whether to use XML-RPC with ipa-join %if %{with ipa_join_xml} @@ -104,7 +94,7 @@ Name: %{package_name} Version: %{IPA_VERSION} -Release: 3 +Release: 4 Summary: The Identity, Policy and Audit system License: GPLv3+ @@ -713,7 +703,7 @@ and integration with Active Directory based infrastructures (Trusts). If you are using IPA, you need to install this package. -%if %{with ipatests} +%if %{without ipatests} %package -n python3-ipatests Summary: IPA tests and test tools @@ -838,7 +828,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 %{without 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 +1491,7 @@ fi %{python3_sitelib}/ipaplatform-*.egg-info -%if %{with ipatests} +%if %{without ipatests} %files -n python3-ipatests @@ -1535,6 +1525,9 @@ fi %changelog +* Tue Sep 28 2021 wutao - 4.9.3-4 +- disable server module and ipatests + * Thu Sep 2 2021 wutao - 4.9.3-2 - Package init -- Gitee