Mailinglist Archive: opensuse-packaging (205 mails)

< Previous Next >
Re: [opensuse-packaging] Specfile Guidelines sweep over Factory
On Monday 2011-09-19 12:11, Juergen Weigert wrote:

On Sep 19, 11 11:34:49 +0200, Jan Engelhardt wrote:
No. This needs a Specfile_guideline, saying that %if-%else-%endif
must not reach across sections.

In a way, it did not. The sample %if..%endif section spans
exactly one %files subsection.

It did. It did span across the the %files heading. Desired effect:
%section headings must not be inside %if...%else

MozillaFirefox-branding-SLED
NetworkManager
PolicyKit/*.spec
Terminal
...
there's lots.

Running $(grep -A5 '^%clean' */*.spec | less) inside a complete checkout
of openSUSE:Factory and searching for "%if" with less(1) will reveal
those specfiles.
And I guess they have a reason to wrap %post inside %if, rather than
putting the %if block inside %post.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >