YAML File Compilation Guide

Trainey2020-08-11How to contributeProcess specifications

1. Introduction

The .yaml file contains the upstream community information of the software packages in the openEuler repository, facilitating unified verification and management.

2. Requirements of File Naming and Storage Path

The .yaml file name must be the same as the repository name and be in the same directory as that of the .spec file. Generally, the yaml file is stored in the root directory. For example, the name of the .yaml file in the oemaker code repository is oemaker.yaml and the file is stored in the root directory.

3. Fields in the YAML File

In the .yaml file, the version_control, src_repo, tag_prefix, and separator fields need to be manually set.

FieldDescriptionRemarks
version_controlVersion control protocol used by the upstream repositoryCurrently, svn, git, hg, github, gnome, metacpan, pypi, and gitee are supported.
src_repoActual address of the upstream repositoryYou can use version_control and src_repo to download the corresponding code.
tag_prefixVersion prefix in the tag of the upstream repositoryFor example, If the tag provided by the upstream is v1_0_1, tag_prefix must be set to ^v.
separatorVersion separator in the tagFor example, if the tag provided by the upstream is v1_0_1, separator must be set to _.

4. Examples of YAML Files

Version Control ProtocolExample (Link)
svnamanda.yaml
gitmdadm.yaml
hgnginx.yaml
githubasciidoc.yaml
gnomegnome-terminal.yaml
metacpanperl-Authen-SASL.yaml
pypipython-apipkg.yaml
giteeoemaker.yaml

[Disclaimer] This article only represents the author's opinions, and is irrelevant to this website. This website is neutral in terms of the statements and opinions in this article, and does not provide any express or implied warranty of accuracy, reliability, or completeness of the contents contained therein. This article is for readers' reference only, and all legal responsibilities arising therefrom are borne by the reader himself.