[Mageia-dev] Importing RPM Spec File Syntax

Per Øyvind Karlsen peroyvind at mandriva.org
Mon Jan 17 23:50:32 CET 2011


2011/1/17 Florian Hubold <doktor5000 at arcor.de>:
> Am 15.01.2011 11:08, schrieb Remy CLOUARD:
>>
>> http://mageia.org/wiki/doku.php?id=spec_syntax
>>
>> Please review this page as it’s one of the most important one for the
>> beginning of the mentoring process, with the RPM Howto page (yet to be
>> imported).
>
> I have one comment, or more of a question: Why is it that some time ago
> there used to be this syntax as de-facto standard:
>
> %define name
> Name: %name
>
> Never understood this, so i went with what seems the new standard,
> which saves you at least 3 lines per spec and improving readability.
>
> So anyone can enlighten me why name, release and version had %defines?
Legacy practice which got stuck with some...

'Name: foo' will always define %{name} now (which has been the case for ages),
so there's no longer use in doing this anymore.
It mainly adds unnecessary obscurity and confusion, please just drop this.

--
Regards,
Per Øyvind


More information about the Mageia-dev mailing list