Reputation: 21877
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