File voms-disable-gsoap.patch of Package voms

--- a/configure.ac.orig	2017-01-25 19:48:50.000000000 +0100
+++ b/configure.ac	2018-04-23 11:39:09.217322675 +0200
@@ -34,10 +34,7 @@
 PKG_CHECK_MODULES([OPENSSL], [openssl])
 # AC_OPENSSL
 
-PKG_CHECK_MODULES([GSOAP],[gsoap >= 2.7])
-PKG_CHECK_MODULES([GSOAP_PP],[gsoap++ >= 2.7])
-PKG_CHECK_MODULES([GSOAP_SSL],[gsoapssl >= 2.7])
-PKG_CHECK_MODULES([GSOAP_SSL_PP],[gsoapssl++ >= 2.7])
+AC_BUILD_API_ONLY
 
 AC_CHECK_HEADER([expat.h], 
     [], 
@@ -52,7 +49,6 @@
 
 AC_SUBST(EXPAT_LIBS)
 
-AC_WSDL2H
 AC_ENABLE_DOCS
 
 # Checks for header files.
@@ -99,8 +95,17 @@
 AC_VOMS_FIND_FUNC
 AC_VOMS_STRNDUP
 
-AC_BUILD_API_ONLY
 AC_BUILD_PARTS
+
+# Check for gSOAP only when building server which is checked in BUILD_PARTS
+if test "x$build_server" = "xyes" ; then
+PKG_CHECK_MODULES([GSOAP],[gsoap >= 2.7])
+PKG_CHECK_MODULES([GSOAP_PP],[gsoap++ >= 2.7])
+PKG_CHECK_MODULES([GSOAP_SSL],[gsoapssl >= 2.7])
+PKG_CHECK_MODULES([GSOAP_SSL_PP],[gsoapssl++ >= 2.7])
+AC_WSDL2H
+fi
+
 GLITE_DOCBOOK_MAN
 
 AC_LINUX