The RPM spec has been fixed not to include the %pre script for the
pki-server package if --without-server parameter is specified.

https://fedorahosted.org/pki/ticket/2403

Pushed to master under one-liner/trivial rule.

--
Endi S. Dewata
>From 75d30070f6855b753be1e02202403dfdc16d583d Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <edew...@redhat.com>
Date: Sat, 6 Aug 2016 02:13:23 +0200
Subject: [PATCH] Fixed RPM spec for client-only build.

The RPM spec has been fixed not to include the %pre script for the
pki-server package if --without-server parameter is specified.

https://fedorahosted.org/pki/ticket/2403
---
 specs/pki-core.spec | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/specs/pki-core.spec b/specs/pki-core.spec
index fac7192e1f27bd7cd16c3b04ea129cfb22bfd7fd..ed00135beb4b1085c1806fe20a15f7be7b2195be 100644
--- a/specs/pki-core.spec
+++ b/specs/pki-core.spec
@@ -969,6 +969,8 @@ if (test("/etc/sysconfig/pki/ca") or
 end
 %endif
 
+%if %{with server}
+
 %pre -n pki-server
 getent group %{pki_groupname} >/dev/null || groupadd -f -g %{pki_gid} -r %{pki_groupname}
 if ! getent passwd %{pki_username} >/dev/null ; then
@@ -980,6 +982,8 @@ if ! getent passwd %{pki_username} >/dev/null ; then
 fi
 exit 0
 
+%endif # %{with server}
+
 %post -n pki-base
 
 if [ $1 -eq 1 ]
-- 
2.5.5

_______________________________________________
Pki-devel mailing list
Pki-devel@redhat.com
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to