rpmbuild error: /usr/src/redhat/SOURCES/A: No such file or directory

问题:

在打rpm的过程中报错如下:

ecnshcbc001:/usr/src/redhat/SPECS # rpmbuild -ba IPWpreISCSIInitiator.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.61700
+ umask 022
+ cd /usr/src/redhat/BUILD
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.61700
+ umask 022
+ cd /usr/src/redhat/BUILD
+ /bin/rm -rf /usr/src/redhat/TEMP
++ dirname /usr/src/redhat/TEMP
+ /bin/mkdir -p /usr/src/redhat
+ /bin/mkdir /usr/src/redhat/TEMP
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.61700
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/TEMP
+ rm -rf '/usr/src/redhat/TEMP/*'
+ tar -xzvf /usr/src/redhat/SOURCES/IPWpreISCSIInitiator.tar.gz
home/
home/iSCSIInitatorConf/
home/iSCSIInitatorConf/readme.txt
+ /usr/lib/rpm/brp-lib64-linux
[email protected]: if you find problems with this script, drop me a note
+ RPM_BUILD_ROOT=/usr/src/redhat/TEMP
+ export RPM_BUILD_ROOT
+ test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /usr/src/redhat/TEMP
+ echo 'I call /usr/sbin/Check...'
I call /usr/sbin/Check...
+ /usr/sbin/Check
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-symlink
error: Bad file: /usr/src/redhat/SOURCES/A: No such file or directory

 

原因:

经检查发现问题出在SPEC的summary中如下:

......

Version: 7.0
Release: AVA_901_16_2_R2A01_LSV4
Source: N/A

......

 

解决办法:

将Source修改为不含有"/A"的内容问题解决

你可能感兴趣的:(rpmbuild error: /usr/src/redhat/SOURCES/A: No such file or directory)