Is it possible to specify in a rpm spec file that to be able to build you need a version of a package greater than and at the same time lower than something?
For example I would like to specify python >= 2.7 and < 3.0.
Can it be done with buildrequires and if it is possible what would be the syntax?
As I have not seen any example like that I was thinking of:
BuildRequires: python >= 2.7
BuildRequires: python < 3.0
"python3"
, not"python"
.BuildRequires: python >= 2.7
would be enough. But what if you wanted python>= 2.6
and< 2.7
. I'm interested on knowing if there is a syntax. Or if the one I show in the question would be correct.