I'm working on a Java project were each module creates individual rpm packages that always have a 1.0 Version tag, but the Release tag adopts the build number injected by Jenkins CI.
Each component uses the maven-rpm-plugin.
There's also a main rpm package were we specify the exact version of the deployed modules as requirements in the spec file, as a requirement example:
Requires: module1 = 1.0-10
Requires: module2 = 1.0-123
The packages are deployed to the company's repository and are made available to our development machines that run CentOS 6.
So the issue is:
On one dev machine, the previous main package installed module1-1.0-9
When I install the current main package version using yum, module1 does not get upgraded, even though I specified an exact package version requirement, down to the Release tag.
After removing all packages and trying to install the current main package, module1-1.0-12 get's installed! Another module build was deployed in the meantime.
I've been looking for any kind of documentation about this but haven't had any luck.
Is this normal behavior or a bug?
Any ideas? - even changing versioning strategy would be welcome, if it's indeed not a bug.