[Rpm-maint] [rpm-software-management/rpm] RFE: add way to set macro for --nocheck in rpmbuild (#316)

Igor Gnatenko notifications at github.com
Tue Sep 5 07:59:48 UTC 2017


currently when I pass `--nocheck` to `rpmbuild`, it just skips running check section, but there is no way to know this from spec file. would be nice if rpm would add some bcond for this, so packagers can do things like:

```
%if %{with check}
BuildRequires: xxx
%endif
```

or, do something like 

```
%global _without_check 1
```

I remember that this was requested in RHBZ, but I can't find link (usual situation for bugzillas)..

The problem which I hit that MBS can't pass any parameters to koji (and passing them to mock is complicated in current code), so workaround was to put `%__spec_check_pre exit 0` in macros file which I don't like.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/316
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170905/f5da2bc4/attachment.html>


More information about the Rpm-maint mailing list