RPmbuild Installed (but unpacked) file source

I am trying to create RPM from binary files in a REDHAT 6 system. I have all the files included in the% files section (find / path / to / fake / install -type f → specfile)

When I run rpmbuild -bb specfile --target x86_64, I get

Check for unpacked file (s): / usr / lib / rpm / check-files / path / to / rpmbuild / BUILDROOT / Package-1.0.0-1.el6.x86_64 error: Installed (but unpacked) files found:

RPM build errors: Installed (but unpacked) files found:

Please note that there are no files in the error message. I'm not sure what happened and ideas?

+7
source share
2 answers

You can ignore such errors.

% define _unpackaged_files_terminate_build 0

See also http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s07.html

+17
source

I would suggest that your / path / to / fake / install is incorrect.

The path in the %files section should be the path where the files will eventually be installed, for example. /usr/local/bin/myprog . When assembling rpm in the %build section, you need to make sure that you put the files in the same place that you specify in the %files section, or use the buildroot rpmbuild parameter and use $RPM_BUILD_ROOT > in your specification file with a subpath matching the %files list , in this example, $RPM_BUILD_ROOT/usr/local/bin/myprog . See http://www.rpm.org/max-rpm-snapshot/ch-rpm-anywhere.html for more details.

+4
source

All Articles