< User:Fvennetier(Difference between revisions)
|
|
| Line 1: |
Line 1: |
| - | = 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 ===
| |
| - | [https://meego.gitorious.org/meego-developer-tools/autospectacle 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 "<tt># >> </tt>" and "<tt># << </tt>" tags, the content of the Spec file should not be modified by you, because it will be re-written by <tt>specify</tt> 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 ==
| |
| - | [[OBS_Light_FAQ#How_to_create_a_new_package_.3F_.28from_an_existing_SPEC_file.29 | Procedure is there]]
| |
Latest revision as of 07:24, 30 March 2012