D
D
Daniel421372013-11-19 15:16:29
linux
Daniel42137, 2013-11-19 15:16:29

How to correctly specify Java dependency in an RPM package?

It is necessary to specify the dependency on jdk or jre >= 1.7.0 in rpm.
Asked via Suggests: jdk >= 2000:1.7, jre >= 2000:1.7 I
chose Fedora 19 and openSUSE 12.3 for testing.
Packages jdk 1.7.0_45 and jre 1.7.0_45 are installed in the system.
During installation I get:
error: Failed dependencies: jre >= 2000:1.7 is needed by reminder-2.0-1.noarch
No 2000 prefix: I also get an unsatisfied dependency.
Actually the question itself:
How do I correctly set the dependencies so that if there is a jdk or jre from oracle in the system, it checks that the version is greater than 1.7.0 and installs it?
PS: openjdk is out of the question.
PPS: I googled Google, I didn’t find anything worthwhile.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
relgames, 2013-11-19
@Daniel42137

We just
wrote Requires: jre >= 1.6
It looks like OR-OR can't be done that easily http://stackoverflow.com/questions/2139621/how-can-i-make-an-rpm-depend-on-package-a -or-package-b

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question