How can I make an RPM depend on package a OR package b?

后端 未结 3 874
误落风尘
误落风尘 2021-01-11 20:16

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 bu

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-11 20:50

    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:

    Requires: /usr/bin/pear
    

    That way your package won't matter if pear binary is provided by php-pear or php53-pear.

提交回复
热议问题