diff options
author | jbj <devnull@localhost> | 2002-12-21 20:37:37 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-21 20:37:37 +0000 |
commit | 1f6cdca2d549e02f3e65afa27b80cb852e283cd2 (patch) | |
tree | c5dc26a5bb2bd0d112194a325221f14b5f0bbd70 /build/build.c | |
parent | b2402702ae91a73f7e4a4787b6a170357e219533 (diff) | |
download | rpm-1f6cdca2d549e02f3e65afa27b80cb852e283cd2.tar.gz rpm-1f6cdca2d549e02f3e65afa27b80cb852e283cd2.tar.bz2 rpm-1f6cdca2d549e02f3e65afa27b80cb852e283cd2.zip |
- add --enable-posixmutexes when configuring on linux.
- add rpmdb_{deadlock,dump,load,svc,stat,verify} utilities.
- include srpm pkgid in binary headers (#71460).
- add %check scriptlet to run after %install (#64137).
CVS patchset: 5957
CVS date: 2002/12/21 20:37:37
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/build.c b/build/build.c index e5625f96c..a8d8c9810 100644 --- a/build/build.c +++ b/build/build.c @@ -96,6 +96,12 @@ int doScript(Spec spec, int what, const char *name, StringBuf sb, int test) mTemplate = "%{__spec_install_template}"; mPost = "%{__spec_install_post}"; break; + case RPMBUILD_CHECK: + name = "%check"; + sb = spec->check; + mTemplate = "%{__spec_check_template}"; + mPost = "%{__spec_check_post}"; + break; case RPMBUILD_CLEAN: name = "%clean"; sb = spec->clean; @@ -296,6 +302,10 @@ int buildSpec(Spec spec, int what, int test) (rc = doScript(spec, RPMBUILD_INSTALL, NULL, NULL, test))) goto exit; + if ((what & RPMBUILD_CHECK) && + (rc = doScript(spec, RPMBUILD_CHECK, NULL, NULL, test))) + goto exit; + if ((what & RPMBUILD_PACKAGESOURCE) && (rc = processSourceFiles(spec))) goto exit; |