This seems like a simple question, but the docs don't seem to have anything to say on the subject. I would like to do something like Requires: vim or emacs
but when I do that, I in fact depend on vim
, or
and emacs
. What is the syntax for depending on one or another of two packages?
相关问题
- How to make a local dependency depend on a feature
- Dependency javax.mail:mail:1.4 not found
- How to use a “custom jar” in IntelliJ IDEA?
- RPM spec %post doesn't execute in rpmbuild
- Building with rpmbuild under Ubuntu
相关文章
- What is a good way to deploy a Perl application?
- The Gradle failure may have been because of Androi
- How to fix a missing ld library for -lfl while com
- C# - Application to show all dependencies between
- Why does this makefile execute a target on 'ma
- Unable to resolve dependency for ':app@debug/c
- loading the right dependencies for sbt console in
- Play! 2 Framework - Add Java Mongo driver
If packages don't have common Provide, and you don't want to rebuild and maintain forks of that packages, but they both do provide same file, you can depend on a file. For example:
That way your package won't matter if pear binary is provided by php-pear or php53-pear.
There is no such capability in rpm. Require a virtual provides that the packages have in common, if there is one.
The standard way to do this is via virtual provides: the providing RPMs each state that they provide a virtual package, and the dependent RPM requires that virtual package. So, in your example,
vim
andemacs
bothProvides: text-editor
, and your package wouldRequires: text-editor
.If the packages that you're depending on don't provide an appropriate virtual package, you could probably hack around this by making up your own. Make dummy
my-package-vim-mode
andmy-package-emacs-mode
RPMs thatRequires: vim
andRequires: emacs
, respectively, andProvides: my-package-text-editor
, then have your packageRequires: my-package-text-editor
.