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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux