RPM / YUM忽略必需:app =版本

时间:2018-06-06 19:11:29

标签: dependencies rpm yum

我是RPM新手,所以也许我错过了什么......

我有一个包含..的规格文件。

%package java10
Requires: build-tools
Requires: runtime-tools-java10
Requires: gradle = 4.7
Requires: maven
Summary: Java 10 Build Tools
Group: System Environment/Daemons
%description java10
Build Tools Java 10 libraries

在gradle rpm的规格中我们有这个:

Name            : gradle
Summary         : Auto install gradle
Version         : 3.3
Release         : 5
BuildArch       : noarch
Prefix          : /usr/local
Group           : Development Tools
License         : Apache License 2.0
Source0		: https://services.gradle.org/distributions/gradle-%{version}-bin.zip

所以我认为当上面的RPM尝试部署时,如果只有3.3可用,它应该失败吗?

但是我没有得到这个......

--> Processing Dependency: gradle = 4.7 for package: build-tools-java10-1.0.0-84_gb69fc4f.el7.x86_64
--> Processing Dependency: maven for package: build-tools-java10-1.0.0-84_gb69fc4f.el7.x86_64
--> Processing Dependency: runtime-tools-java10 for package: build-tools-java10-1.0.0-84_gb69fc4f.el7.x86_64
--> Processing Dependency: build-tools for package: build-tools-java10-1.0.0-84_gb69fc4f.el7.x86_64
--> Running transaction check
---> Package gradle.noarch 0:3.3-3 will be installed

我错过了什么?

0 个答案:

没有答案