RPM with a dependency (requires) for a package whose name varies across distributions

John Craws john.craws at gmail.com
Tue Sep 20 14:06:36 UTC 2011

Thank you!

I'll try to find a common file.

John Craws

On Sat, Sep 17, 2011 at 5:47 AM, Panu Matilainen
<pmatilai at laiskiainen.org> wrote:
> On 09/16/2011 11:31 PM, John Craws wrote:
>> Hi,
>> I couldn't find any good hints on how to achieve the following (if
>> possible).
>> I have created an RPM that works as expected across a number of
>> distributions.
>> I now have to add a new dependency on another package (it already has
>> some that work).
>> The problem is that the package name (and provides) for that required
>> package (DejaVu fonts) varies across the distributions (2 for the
>> moment) that I am targeting and I could not find any virtual one that
>> would work either.
>> Do I really have to generate two different RPM packages with two
>> different 'requires' values even though I require the same
>> functionality in both cases (a font available via fontconfig) and the
>> rest would be identical?
>> Any hints?
> If there are no common provides to depend on then there's one option left: a
> common filename, IF there is one. If not, then you really need to build
> different packages for different distributions. Note that trivial
> differences like a single dependency name can usually be handled with
> macros, so you'll only have one spec from which the packages for different
> distros are built, instead of maintaining fully separate specs for each.
>        - Panu -
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list

More information about the Rpm-list mailing list