[Mageia-dev] Importing RPM Spec File Syntax

Luca Berra bluca at vodka.it
Fri Jan 21 07:59:13 CET 2011

On Wed, Jan 19, 2011 at 11:05:49AM +0100, Thierry Vignaud wrote:
>On 19 January 2011 10:24, Colin Guthrie <mageia at colin.guthr.ie> wrote:
>> I think he's saying that if you do this:
>>  Name: foo
>> then you can subsequently use %name elsewhere in the spec and all will
>> be well.
>> But if you use:
>>  Version: 1.0
>> then you cannot use %version elsewhere in the spec.
>> So defining it manually is the best way to do it so it can be used
>> elsewhere.
>> However, I could not replicate that here on my pre-RPM5 cooker box.
>> Using the version with the tag and using %version worked just fine. So I
>> think I have misinterpreted too :s
>Indeed since I've used "Version: 1.0" for 12 years...

take at lvm2 srpm
and try to use %version anywhere in the spec,
you will be surprised by the result.

btw i believe Name to be buggy as well, but there is no use in having
two "Name:" tags in a single spec, so it will never surface.


Luca Berra -- bluca at vodka.it

More information about the Mageia-dev mailing list