The version of RPM in Fedora these days supports the "%install" process installing files in the BUILDROOT target directories and referencing them in the RPM '%files' directives, with their full patch as documents. That's a new behavior, not supported in older versions of RPM.
Take a good look at where the files are in the .spec file, and reference *those* files from the original tarball as '%doc' files. On Thu, Apr 3, 2014 at 9:33 PM, ToddAndMargo <[email protected]> wrote: > Hi All, > > Anyone know what the error is on this and > how to correct it? > > # rpmbuild --rebuild livecd-tools-20.4-1.fc20.src.rpm > > Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) > <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 > rpmlib(PayloadFilesHavePrefix) <= 4.0-1 > Requires: python(abi) = 2.6 > Checking for unpackaged file(s): /usr/lib/rpm/check-files > /root/rpmbuild/BUILDROOT/livecd-tools-20.4-1.fc20.x86_64 > error: Installed (but unpackaged) file(s) found: > /usr/share/doc/livecd-tools/AUTHORS > /usr/share/doc/livecd-tools/COPYING > /usr/share/doc/livecd-tools/HACKING > /usr/share/doc/livecd-tools/README > > > RPM build errors: > InstallSourcePackage at: psm.c:244: Header V3 RSA/SHA256 Signature, key > ID 246110c1: NOKEY > user mockbuild does not exist - using root > group mockbuild does not exist - using root > user mockbuild does not exist - using root > group mockbuild does not exist - using root > Installed (but unpackaged) file(s) found: > /usr/share/doc/livecd-tools/AUTHORS > /usr/share/doc/livecd-tools/COPYING > /usr/share/doc/livecd-tools/HACKING > /usr/share/doc/livecd-tools/README > > > Many thanks, > -T > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
