Re: RPM spec style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-05-11 10:33 AM, Merlin Mathesius wrote:
Greetings.

I'd like a quick opinion on spec file style...

Nearly all specs I've seen dealing with subpackages group all the
%package/%description stanzas near the beginning, and put all the %files
stanzas near the the end. (Example 1 below)

However, are there any reasons, stylistic or otherwise, that the %files
stanzas shouldn't be grouped with their corresponding
%package/%description stanzas? (Example 2 below) Especially when there
are a large number of subpackages...

If you think of it, the usual order of spec file sections reflects the timing where they are used.

So you have the tags at the top, which are used to set things up, then preparation, building, installation and the list of files which is used firstly to verify if what was produced matches what you expect.

Granted, scriptlets like %pre %post etc. are grouped together so a general vision of hooks is given.

You could say the same about packages and their Descriptions being together.  It gives a whole vision of what this SRPM will produce.



Regards,
Fernando




Thanks.

Regards,

Merlin


_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux