configuration rpms
Florian Festi
ffesti at redhat.com
Tue Aug 4 10:36:05 UTC 2009
On 08/01/2009 06:55 PM, abhinav mehrotra wrote:
> Hi All,
> I am creating a rpm which depends on another locale specific
> configuration rpm.
> There are multiple configuration rpms:
> 1. mylocale_en-Us.rpm
> 2. mylocale_fh-CA.rpm
> 3. mylocal_ch-CN.rpm
> Only one locale rpm must be insalled before my rpm is installed.
> How do I define this condition in rpm's spec file? Is there any way to
> specify regular expression with depends macro ?
>
No, you can only match for full package/provides names. The right
solution for this situation is to add "Provide: mylocale" to all config
packages and add "Requires: mylocale" to the main package.
Florian
More information about the Rpm-list
mailing list