I'm creating an RPM using the rpm-maven-plugin. I want to have a dependancy on Tomcat version 6 or above, so:-
<requires>
<require>tomcat >= 6.0</require>
</requires>
So I create a Vagrant initialized VM and try to install Tomcat:-
[vagrant@development ~]$ sudo yum install tomcat
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: www.mirrorservice.org
* extras: mirror.ukhost4u.com
* updates: mirror.ukhost4u.com
No package tomcat available.
Error: Nothing to do
So I install via tomcat6 package instead, which is fine. The problem is that tomcat6 install doesn't satisfy my RPM dependency because it's tomcat6
and not tomcat
. How do you get around that?
As far as I know there's no way to OR dependencies so I can't do tomcat >= 6 or tomcat6 or tomcat7 or tomcat8
somehow, which would be ugly regardless.