RPM with a dependency (requires) for a package whose name varies across distributions
john.craws at gmail.com
Tue Sep 20 14:06:36 UTC 2011
I'll try to find a common file.
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:
>> I couldn't find any good hints on how to achieve the following (if
>> I have created an RPM that works as expected across a number of
>> 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
More information about the Rpm-list