docker-rpmbuild
docker-rpmbuild copied to clipboard
Error while trying to build RPM from .gem and .spec
Step 9 : CMD rpmbuild -ba /rpmbuild/SPECS/reedb.spec
---> Running in b635aea4c815
---> f89702171758
Successfully built f89702171758
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nxLE2X
+ umask 022
+ cd /root/rpmbuild/BUILD
+ gem unpack /root/rpmbuild/SOURCES/reedb-0.11.gem
ERROR: While executing gem ... (Gem::Package::FormatError)
No such file or directory @ rb_sysopen - /root/rpmbuild/SOURCES/reedb-0.11.gem
RPM build errors:
I created a tarball with a .gem file in it which is called "reedb-0.11.gem" and it seems to be unpacking it correctly. What I don't understand is how it finds the .spec but doesn't correctly copy the .gem to the directory it needs to be in.
Not sure if this is a bug with your code. But maybe you can help me? Thanks
Can you paste the exact command and full output? I'd also like to see a tar tf on the tarball and a copy of the spec if you can share that.