From 166ec3b2d6ce1dd63290aaabbe55d154a8fa7a8a Mon Sep 17 00:00:00 2001 From: jackie_wu Date: Fri, 24 Sep 2021 15:57:02 +0800 Subject: [PATCH] disable pki-console --- pki-core.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pki-core.spec b/pki-core.spec index aa3f31c..1b0f13f 100644 --- a/pki-core.spec +++ b/pki-core.spec @@ -4,7 +4,7 @@ Name: pki-core Version: 10.7.3 -Release: 1 +Release: 2 Summary: The PKI Core Package License: GPLv2 and LGPLv2 URL: http://www.dogtagpki.org/ @@ -31,6 +31,8 @@ BuildRequires: systemd zlib zlib-devel nss-tools openssl golang Dogtag PKI is a designed enterprise software system manage enterprise Public Key Infrastructure deployments. +%bcond_with console + %package -n pki-symkey Summary: The PKI Symmetric Key Package Requires: java-1.8.0-openjdk-headless jpackage-utils >= 0:1.7.5-10 jss >= 4.6.0 @@ -187,6 +189,7 @@ Conflicts: pki-server-theme < %{version} pki-console-theme < %{version %description -n pki-help Documentation for KPI. +%if %{with console} %package -n pki-console Summary: The PKI Console Package BuildArch: noarch @@ -195,6 +198,7 @@ Requires: idm-console-framework >= 1.2.0 pki-base-java = %{version} Requires: pki-console-theme = %{version} %description -n pki-console The PKI console is a Java application used to manage the PKI server. +%endif %prep %autosetup -n pki-%{version} -p1 -S git @@ -226,7 +230,7 @@ cd build -DWITH_PYTHON2:BOOL=OFF -DWITH_PYTHON3:BOOL=ON \ -DWITH_PYTHON3_DEFAULT:BOOL=ON -DPYTHON_EXECUTABLE=%{__python3} \ -DWITH_TEST:BOOL=ON -DWITH_JAVADOC:BOOL=ON \ - -DBUILD_PKI_CONSOLE:BOOL=ON -DTHEME= \ + -DBUILD_PKI_CONSOLE:BOOL=%{?with_console:OFF} -DTHEME= \ .. %install @@ -423,11 +427,16 @@ fi %{_mandir}/man5/* %{_mandir}/man8/* +%if %{with console} %files -n pki-console %doc base/console/LICENSE %{_bindir}/pkiconsole %{_javadir}/pki/pki-console.jar +%endif %changelog +* Fri Sep 24 2021 wutao - 10.7.3-2 +- disable pki-console + * Mon Sep 13 2021 wutao - 10.7.3-1 - Package init -- Gitee