On Wednesday, 24 May 2017 16.58.10 WEST Zdenek Dohnal wrote:
> Isn't this because "Version" is the name of a tag?
Just like Name and
> Release. And Tag names are not case-sensitive, so you could write this
> in your spec file:
>
> VERSION: 12.34
>
> Reusing those for your own macros seems like a very bad idea and bound
> to lead to confusion. Does %version refer to the VERSION tag? Or does
> %VERSION refer to that?
%{VERSION} contains %{version}-%{prever}. AFAIK macro %{version}
contains value for Version: tag, so I defined other macro %{VERSION}.
And I thought macros are case sensitive. I worked fine this way before.
Possibly you have considered this before.
For the above example why not to define version in the spec file as
Version: 12.34{?prever:-%{prever}}
If the %{prever} is defined is adds -%{prever} to the version else it does nothing.
Regards,
--
José Abílio