[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-dev
Subject:    Conditional "Provides" in openpkg-import confuses openpkg-tools
From:       "Dennis McRitchie" <dmcr () Princeton ! EDU>
Date:       2004-09-17 13:17:30
Message-ID: 015301c49cb8$b0249700$6ceb7080 () princeton ! edu
[Download RAW message or body]

openpkg-import-0-2.1.0.src.rpm has a spec file containing the following
lines:

%if "%{with_mta}" == "yes"
Provides:     MTA
Conflicts:    exim, postfix, sendmail, ssmtp
%endif

Apparently, since the "Provides" is only executed conditionally, it is not
recognized by openpkg-tools. So while openpkg-import will get built, it will
not be seen as providing "MTA" by openpkg-tools. It does not matter if the
default value for "with_mta" is "yes" or "no".

I had to remove the %if and %endif altogether to get openpkg-tools to
recognize the "Provides" keyword.

I wasn't sure if you were already aware of this quirk, so I thought I'd
mention it.

Dennis

Dennis McRitchie
Research & Academic Applications Support (RAAS)
Academic Services Department
Office of Information Technology
Princeton University

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic