Search code examples
rpmrpmbuildrpm-spec

source file corrupted while creating an rpm with rpmbuild


I am creating an rpm using rpmbuild.

The source file (a tar.gz) is correctly uncompressed in BUILDROOT/BUILD directories.

The rpm is created using : rpmbuild --clean -ba specfile

While using that rpm the file extracted are not the same as the original one. The size of one of the files for example is 327 440 instead of 1 460 540.

Any suggestions?


Solution

  • rpmbuild typically strips binaries, if it finds executable binaries under %files.

    This is normal. It is a good thing, because it removes unnecessary debug symbols and, by default, extracts them to a -debuginfo package.

    Nothing is corrupted.