creating subpackages

720阅读 0评论2015-03-13 himrpei
分类:LINUX

1. 为什么?
Subpackages exist to handle cases where you don’t want to associate one spec file with one package.

2. 怎么做?
a.
%package sub_package_name

By default, the name of the subpackage will be the name of the package, a dash, and the subpackage name provided with the %package directive.

%package server
The subpackage name will be telnet-server.

If you don’t want this naming format, you can use the –n option to the %package directive to define an entirely new name, using the following syntax:
%package -n new_sub_package_name


for example:

%package –n my-telnet-server
上一篇:SQL 语句
下一篇:rpm 相关资源