On 05/25/2017 03:35 PM, José Abílio Matos wrote:
>
> 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.
>
That's great, I'll change it that way. Thank you, José.

>  
>
> Regards,
>
> -- 
>
> José Abílio
>
>
>
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org

-- 
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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to