From 4bd2429f62b5660063a2a112439c034fc0cc6bd9 Mon Sep 17 00:00:00 2001 From: Michael van Elst Date: Mon, 16 Dec 2002 15:28:36 +0000 Subject: [PATCH] make --with_ex a package option --- sa/sa.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sa/sa.spec b/sa/sa.spec index 841e28533c..2cf2763538 100644 --- a/sa/sa.spec +++ b/sa/sa.spec @@ -22,6 +22,9 @@ ## SUCH DAMAGE. ## +# package options +%{!?with_ex: %define with_ex no} + # package information Name: sa Summary: Socket Abstraction Library @@ -32,7 +35,7 @@ Distribution: OpenPKG [PLUS] Group: System License: MIT/X11-style Version: 1.0.2 -Release: 20021204 +Release: 20021216 # list of sources Source0: ftp://ftp.ossp.org/pkg/lib/sa/sa-%{version}.tar.gz @@ -40,8 +43,11 @@ Source0: ftp://ftp.ossp.org/pkg/lib/sa/sa-%{version}.tar.gz # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20020206, ex -PreReq: OpenPKG, openpkg >= 20020206, ex +BuildPreReq: OpenPKG, openpkg >= 20020206 +PreReq: OpenPKG, openpkg >= 20020206 +%if "%{with_ex}" == "yes" +BuildPreReq: ex +%endif AutoReq: no AutoReqProv: no @@ -55,7 +61,9 @@ AutoReqProv: no CFLAGS="%{l_cflags -O}" \ ./configure \ --prefix=%{l_prefix} \ +%if "%{with_ex}" == "yes" --with-ex=%{l_prefix} \ +%endif --disable-shared %{l_make} %{l_mflags -O}