【发布时间】:2018-03-25 10:37:25
【问题描述】:
按照Spec File Changes For Subpackages 上的本教程,我能够通过一个构建创建两个 RPM,执行以下操作:
我的规范文件是这样的:
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
输入rpmbuild -ba filename.spec 会创建两个RPM(一个用于主包,一个用于子包utils)。我怎样才能使用include(CPACK),然后输入make package 来达到同样的效果?
【问题讨论】:
标签: cmake rpm packaging rpmbuild cpack