Browse Source

allow one to disable readline and SSL support

master
parent
commit
0449af2dd6
  1. 24
      socat/socat.spec

24
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}

Loading…
Cancel
Save