openSUSE:Standards Rpm Metadata 产品

跳转到:导航搜索


Repomd 产品格式

产品格式类似于常规软件包格式(如在primary.xml中使用的那样),除了

  • 包含的 XML 是<product>代替<package>
  • 某些特定于软件包的数据,例如依赖项,对于产品来说不是必需的,因此具有额外的标签来调整

安装和注册过程。

<?xml version="1.0" encoding="UTF-8"?>
<products>
  <product>
    <name>SUSE_SLES</name>
    <version ver="11.1" rel="1.152" epoch="0" />
    <arch>i586</arch>
    <vendor>SUSE LINUX Products GmbH, Nuernberg, Germany</vendor>
    <summary>SUSE Linux Enterprise Server 11 SP1</summary>
    <description>SUSE Linux Enterprise offers a comprehensive
        suite of products built on a single code base.
        The platform addresses business needs from
        the smallest thin-client devices to the world’s
        most powerful high-performance computing
        and mainframe servers. SUSE Linux Enterprise
        offers common management tools and technology
        certifications across the platform, and
        each product is enterprise-class.</description>
  </product>
</products>

此文件中的产品名称、版本和发布号必须与包含产品文件的 RPM 软件包中的 Provides 匹配。

在此示例中,"Provides" 应该如下所示

 Provides: product(SUSE_SLES) = 11.1-1.152

软件包的架构应为“i586”,如上述 XML 片段中指定。

建议添加当前仅存在于 susetags 内容文件中的标签扩展

Icon-warning.png
警告: 以下扩展是提案,尚未实现

这些是 YAST 产品/附加组件安装工作流程在 repomd 格式仓库中发行的产品中需要安装的数据。目前,只有 susetags 内容文件 定义了这些数据。

<?xml version="1.0" encoding="UTF-8"?>
<products>
  <product>
    ...
    <!-- LINGUAS -->
    <linguas>
      <lang>da</lang>
      <lang>de</lang>
    </linguas>

    <!-- PATTERNS -->
    <patterns>
      <pattern name="foo" />
      <pattern name="foo-32bit" />
    </patterns>

    <!-- REGISTERPRODUCT -->
    <registerproduct value="true" />