当我从rpm -ba /usr/src/redhat/SPECS/my_spec.spec中查看时,输出不包括Wrote: /root/rpmbuild/SRPMS/test.sh-6.2-2.rpm
/usr/src/redhat/RPMS不显示test.sh-6.2-2.rpm
[root@linux /usr/src/redhat/SOURCES]# rpm -ba /usr/src/redhat/SPECS/my_spec.spec
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/test.sh
Wrote: /root/rpmbuild/SRPMS/test.sh-6.2-2.src.rpm规格文件
Summary: An example tool. To show a simple rpm build of the tool.
Name: test.sh
Version: 6.2
Release: 2
Source:/root/test.sh
Group: Development/Debuggers
BuildRoot:/var/tmp/test.sh
License: OtherLicense
%description发布于 2011-04-12 21:18:43
rpmbuild将不会创建不包含任何文件的RPM。你忘了%files区了吗?
https://serverfault.com/questions/258963
复制相似问题