关于Spec File Changes For Subpackages的本教程,我能够使用单个构建创建两个RPM,执行以下操作:
我的spec文件类似于:
post :start_restream, :id => channel.id
键入Name: @CPACK_PACKAGE_NAME@
License: the license
Summary: the summary
Group: Applications
Version: @CPACK_PACKAGE_RELEASE_VERSION@.@CPACK_PACKAGE_MINOR_VERSION@.@CPACK_PACKAGE_SERVICE_PACK@
Release: @CPACK_PACKAGE_BUILD@
%description
the description...
%package utils
Summary: the utils
Group: Applications
%description utils
description for the utils
%files
...
%files utils
different files
它会创建两个RPM(一个用于主程序包,一个用于子程序包 utils )。如何使用rpmbuild -ba filename.spec
完成相同的操作,然后输入include(CPACK)
?