2
1
I'm trying to figure out how to make a package of mine depend on anything that provides "java", but I'm not sure what to even look up. Apparently "yum provides" is a command for finding out which package contains a particular file, and "yum info" doesn't seem to have the information I want.
Basically, my OS has a package called "java-1.6.0-openjdk", and my package requires some implementaiton of Java, but it would work perfectly fine on Oracle Java, or Java 7, so I won't want to be that specific about it. Is there a way to just depend on anything that provides Java?
I'm able to install a version of Java, my problem is that I don't want my package to depend on a particular version. Basically in the RPM spec file, I have a line that's currently
Requires: java-1.6.0-openjdk
, but I'd like it to be something likeRequires: java
where it automatically determines that java-1.6.0-openjdk provides "java". – Brendan Long – 2012-05-11T17:17:46.263OK, now I understand. What you need is meta (dummy) packages that will bridge that, as in rpm dependencies you cannot directly specify OR relationship, only AND. – johnshen64 – 2012-05-11T17:28:14.063