title: rpmbuild skip "checking for unpackaged file(s) /usr/lib/rpm/check-files"
body: <p>While building kernel rpm package<code>rpmbuild</code> does it's slow "Checking for unpackaged file(s)" check:</p>
  
  <pre><code>$ make -j$(nproc) binrpm-pkg
  ...
  Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/user/rpmbuild/BUI
  LDROOT/kernel-4.17.0_rc5_next_20180517_3.gd86d9e8_default+-98.x86_64
  </code></pre>
  
  <p>For kernel even on powerful machine it takes 30 mins. How to avoid that?
  I've tried to to avoid it with <code>_unpackaged_files_terminate_build</code>, but it didn't help:</p>
  
  <pre><code>echo "%_unpackaged_files_terminate_build    0" &gt;&gt; ~/.rpmmacros
  </code></pre>
  
  <p>Also adding <code>--nocheck</code> to <code>rpmbuild</code> call to <code>binrpm-pkg</code> target in <code>scripts/package/Makefile</code> didn't help.</p>
  
  <p>But maybe it's something else wrong. When I build with configuration <code>make allyesconfig</code> rpm file has 168MB. RPM file builded with openSUSE Tumbleweed config has 647MB.</p>