Meego Wiki
Views

User:Fvennetier/OBS Light Create new package

From MeeGo wiki
Jump to: navigation, search

Contents

How to prepare a Spec file using Spectacle ?

Official documentation: Spectacle

Generate a YAML file from scratch

The manual way

Run the following command:

specify --new=your_package_name

It will create a new YAML file from a template, and ask you to edit the file.

The automatic way

autospectacle

Generate a YAML file from a Spec file

Run the following command:

spec2spectacle your_package_name.spec

It will parse your Spec file, generate a YAML file, and generate a new Spec file from the YAML file.

Customize the Spec and YAML files

Except from lines between "# >> " and "# << " tags, the content of the Spec file should not be modified by you, because it will be re-written by specify each time you modify the YAML file. So if you see a line you don't like, you have to find which option of the YAML file has generated it (or can prevent it to be generated), change it, and run the following command to update the Spec file:

specify your_package_name.yaml

Create the package

Procedure is there

Personal tools