[Fedora-packaging] Wiki How_to_create_an_RPM_package#.25check_section

Ville Skyttä ville.skytta at iki.fi
Fri Sep 6 06:46:50 UTC 2013


On Thu, Sep 5, 2013 at 3:02 PM, Michael Schwendt <mschwendt at gmail.com> wrote:
> IMO, %check should be placed after the %install section, because rpmbuild
> executes it after %install.

Some old rpm versions also don't support the %check section at all,
but it can still be used, it'll just become part of the section it
follows. As %check is meant to be run after %install, for those
rpmbuild versions it also needs to be placed after %install to
accomplish that ordering, and be written as "%check || :" so that line
won't break builds when passed to the shell as is. But OTOH those rpm
versions are probably relevant to very few if anyone these days.


More information about the packaging mailing list