From f0e474b14db77a4ca885164b0559cb033ed3e0f9 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Mon, 30 Dec 2002 14:32:54 +0000 Subject: [PATCH] switch to new %options --- sendmail/sendmail.spec | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/sendmail/sendmail.spec b/sendmail/sendmail.spec index d49c383623..664cad4f26 100644 --- a/sendmail/sendmail.spec +++ b/sendmail/sendmail.spec @@ -24,18 +24,10 @@ ## # package options -%ifndef with_tls -%define with_tls no -%endif -%ifndef with_sasl -%define with_sasl no -%endif -%ifndef with_milter -%define with_milter no -%endif -%ifndef with_ldap -%define with_ldap no -%endif +%option with_tls no +%option with_sasl no +%option with_milter no +%option with_ldap no # package information Name: sendmail @@ -59,8 +51,8 @@ Source4: rc.sendmail # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg, m4, fsl, tar, gcc, make, db >= 4.1.25 -PreReq: OpenPKG, openpkg, m4, fsl, make, perl +BuildPreReq: OpenPKG, openpkg >= 20021230, m4, fsl, tar, gcc, make, db >= 4.1.25 +PreReq: OpenPKG, openpkg >= 20021230, m4, fsl, make, perl %if "%{with_tls}" == "yes" BuildPreReq: openssl %endif @@ -81,11 +73,7 @@ Conflicts: ssmtp, exim, postfix fsl(3) logging rather than syslog(3) and optional STARTTLS, SMTPAUTH, Milter and LDAP support. - Options: - --define 'with_tls %{with_tls}' - --define 'with_sasl %{with_sasl}' - --define 'with_milter %{with_milter}' - --define 'with_ldap %{with_ldap}' + %options -p11 %prep # unpack standard tarballs