0

如果文件列表中的文件不存在,是否可以告诉 rpmbuild 规范文件忽略该文件?

就像是:

%files
%{existingfile}
if [ -f %{dtdfile} ]; then
%{dtdfile}
fi
4

1 回答 1

0

听起来子包可以帮助你。

在主包中可以包含所有公共文件,然后每个子包可以返回主包,并且还包含该包特定的任何附加文件。

请参阅http://fedoraproject.org/wiki/How_to_create_an_RPM_package#Subpackageshttp://www.rpm.org/max-rpm/s1-rpm-subpack-spec-file-changes.html

于 2011-11-09T07:26:35.460 回答