Fix %check section switch 13/156413/1
authorSlava Barinov <v.barinov@samsung.com>
Wed, 18 Oct 2017 08:40:03 +0000 (11:40 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 18 Oct 2017 08:40:03 +0000 (11:40 +0300)
commit60124f9c8b82f0dbcbe471749bb319d8d031bf51
treedcdaf947f4cafdd166cbd535ad671d1fbb00de89
parentcc62452e9b189ccf223149c6a02c60aed8543432
Fix %check section switch

Using '%define %check exit 0' is an error since it redefines the rpm section
name as a macro.

This leads to including the contents of %check section into previously defined
section (e.g. %install) and therefore not only it breaks the build script in
the middle of execution by injecting 'exit 0', but also prevents
%__spec_install_post from running. This forbids execution of rpm post-scripts
which generate debug info, locale information, cleans up install dir and so on.

Setting up %__spec_check_pre variable will only disable the %check section.

Change-Id: Ifb6a847e298416c702409759457cdc03d0d563e2
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Tizen:Base/_config
Tizen:Common/_config
Tizen:IVI/_config
Tizen:Mobile/_config
Tizen:TV/_config
Tizen:Unified/_config
Tizen:Wearable/_config