From: Jindrich Novy Date: Mon, 10 Nov 2008 14:46:43 +0000 (+0100) Subject: Add macros for the post-build package checkers feature (upstream ticket #2) X-Git-Tag: tznext/4.11.0.1.tizen20130304~3475 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34cda292e3523d3ca2d5fee7c71cce813f886357;p=tools%2Flibrpm-tizen.git Add macros for the post-build package checkers feature (upstream ticket #2) - _build_pkgcheck: helper that is ran for every binary RPM successfully written - _build_pkgcheck_set: helper ran for the whole binary package set - _build_pkgcheck_srpm: helper ran for SRPM - _nonzero_exit_pkgcheck_terminate_build: indicates whether the build should fail if helper returns non-zero exit status --- diff --git a/macros.in b/macros.in index 10a97cc..6d07056 100644 --- a/macros.in +++ b/macros.in @@ -376,6 +376,30 @@ package or when debugging this package.\ %_missing_doc_files_terminate_build 1 # +# Program to call for each successfully built and written binary package. +# The package name is passed to the program as a command-line argument. +# +#%_build_pkgcheck %{_bindir}/rpmlint + +# +# Program to call for the whole binary package set after build. +# The package set is passed to the program via command-line arguments. +# +#%_build_pkgcheck_set %{_bindir}/rpmlint + +# +# Program to call for successfully built and written SRPM. +# The package name is passed to the program as a command-line argument. +# +#%_build_pkgcheck_srpm %{_bindir}/rpmlint + +# +# Should the build of packages fail if package checker (if defined) returns +# non-zero exit status? +# +#%_nonzero_exit_pkgcheck_terminate_build 1 + +# # Should an ELF file processed by find-debuginfo.sh having no build ID # terminate a build? This is left undefined to disable it and defined to # enable.