Talespin_Kit
Talespin_Kit

Reputation: 21877

Command rpmbuild modifies the binary

The rpmbuild tool is used to generate the rpm file using command

rpmbuild -bb sample.spec

The sha1sum of one of the binary inside the sample.spec is computed before rpmbuild.

After the sample.rpm is build, it is extracted using the command rpm2cpio sample.rpm | cpio -idvm

The binary in the extracted directory has a different sha1sum for the binary for which the sha1sum was computed earlier.

Is this expected? How to avoid this change made to the binary?

Upvotes: 1

Views: 294

Answers (1)

张馆长
张馆长

Reputation: 1839

try this in the spec file

%define __os_install_post %{nil}

Upvotes: 0

Related Questions