On 05/24/2017 05:49 PM, Jonathan Wakely wrote:
> On 24/05/17 17:32 +0200, Zdenek Dohnal wrote:
>> Hi,
>>
>> I was doing rebase for gutenprint pre-release in recent rawhide (fc27)
>> and I couldn't build it because I had %VERSION macro defined by myself
>> and it got rewritten by default macro %version. That indicates rpm
>> macros have been case insensitive since fc27 (colleague told me the same
>> situation is in fc26 too, but I encountered it in fc27).
>
> 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.> _______________________________________________ > devel mailing list -- [email protected] > To unsubscribe send an email to [email protected] -- Zdenek Dohnal Associate Software Engineer Brno, Purkyňova 99, Czech Republic RED HAT | TRIED. TESTED. TRUSTED. Every telecommunications Company in the Fortune Global 500 relies on Red Hat. Find out why at Trusted | Red Hat
signature.asc
Description: OpenPGP digital signature
_______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
