From 0449af2dd6af1f04847046e9501f28d9ccd6f7d9 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Fri, 29 Dec 2006 15:57:25 +0000 Subject: [PATCH] allow one to disable readline and SSL support --- socat/socat.spec | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/socat/socat.spec b/socat/socat.spec index 8bf02cfc8a..b8926b53f0 100644 --- a/socat/socat.spec +++ b/socat/socat.spec @@ -37,7 +37,11 @@ Class: BASE Group: Network License: GPL Version: %{V_major}.%{V_minor} -Release: 20061013 +Release: 20061229 + +# package options +%option with_readline yes +%option with_ssl yes # list of sources Source0: http://www.dest-unreach.org/socat/download/socat-%{version}.tar.bz2 @@ -47,8 +51,14 @@ Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20040130, gcc PreReq: OpenPKG, openpkg >= 20040130 -BuildPreReq: readline, openssl -PreReq: readline, openssl +%if "%{with_readline}" == "yes" +BuildPreReq: readline +PreReq: readline +%endif +%if "%{with_ssl}" == "yes" +BuildPreReq: openssl +PreReq: openssl +%endif AutoReq: no AutoReqProv: no @@ -78,8 +88,16 @@ AutoReqProv: no ./configure \ --prefix=%{l_prefix} \ --enable-msglevel=debug \ +%if "%{with_readline}" == "yes" --enable-readline \ +%else + --disable-readline \ +%endif +%if "%{with_ssl}" == "yes" --enable-openssl \ +%else + --disable-openssl \ +%endif --disable-libwrap %{l_make} %{l_mflags -O}