[opensuse-packaging] macro expansion in rpm specfiles
I noticed that all users of SOURCE_DATE_EPOCH= use 'date +%s' in specfiles. Is that '%s' working just by luck, or should it be '+%%s'? Olaf
On Friday 2018-03-02 09:22, Olaf Hering wrote:
I noticed that all users of SOURCE_DATE_EPOCH= use 'date +%s' in specfiles. Is that '%s' working just by luck, or should it be '+%%s'?
Definitely double %. How about we add this to prjconf: Macros: %s %nil :Macros That'll teach 'em ;-) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Friday 2018-03-02 11:38, Olaf Hering wrote:
Am Fri, 2 Mar 2018 09:48:51 +0100 (CET) schrieb Jan Engelhardt <jengelh@inai.de>:
Macros: %s %nil :Macros
This would need to cover all characters, a-zA-Z.
It would need to cover the convex hull of all characters, [a-zA-Z]+. Alas, the point of the entry was a stopgap measure for the most prominent(?) use before rpm itself can get changed. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Jan Engelhardt
-
Olaf Hering