当我执行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
答案1
rpmbuild 不会创建不包含任何文件的 RPM。您忘记了该%files
部分吗?