I run the command
$ rpm2cpio hue-2.6.1.2.2.0.0-2041.el6.src.rpm | cpio -idv
and get
hue.init hue.init.suse
install_hue.sh
do-component-build
hue-2.6.1.2.2.0.0.tar.gz
hue.spec
then I following https://github.com/apache/bigtop/tree/master/bigtop-packages/src/rpm/hue folder schema, and put ‘hue.init hue.init.suse’ ‘install_hue.sh’ to SOURCES (also put hue-2.6.1.2.2.0.0.tar.gz), put ‘hue.spec’ to SPECS
after last step, I run
$ rpmbuild -bb hue.spec under SPECS
but error occurs as following
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fOhZNq
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf hue-2.6.1.2.2.0.0
+ /bin/tar -xf –
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/hue-2.6.1.2.2.0.0.tar.gz
+ STATUS=0
+ ‘[‘ 0 -ne 0 ‘]’
+ cd hue-2.6.1.2.2.0.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lGNzGx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd hue-2.6.1.2.2.0.0
+ bash /root/rpmbuild/SOURCES/do-component-build
============== Entering HUE do-component-build =================================
/root/rpmbuild/SOURCES/do-component-build: line 24: /root/rpmbuild/BUILD/hue-2.6.1.2.2.0.0HDP_COMPONENT_VARIABLES.sh: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.lGNzGx (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.lGNzGx (%build)