Sugar Network/Recipe Specification: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{TOCright}} | {{TOCright}} | ||
[[Category: | [[Category:Zero Sugar]] | ||
</noinclude> | </noinclude> | ||
== | == 0sugar.info file == | ||
The | The {{Code|0sugar.info}} specification file is an analog of scenario files in regular GNU/Linux distributions, like .spec files in RPM. | ||
=== [DEFAULT] === | === [DEFAULT] === | ||
| Line 18: | Line 18: | ||
import = <filename> [, ...] | import = <filename> [, ...] | ||
=== [ | === [Package] === | ||
This is required section. It describes the main | This is required section. It describes the main package. | ||
'''inherit''' | '''inherit''' | ||
| Line 30: | Line 30: | ||
'''uid''' | '''uid''' | ||
The identity of this | The identity of this package, this field, for example, defines the name of 0install feed. Only lower alphabetic, numeric, "_" or "-" symbols are allowed. | ||
uid = < | uid = <package-id> | ||
'''name''' | '''name''' | ||
Package name in free form, equals to uid by default. | |||
name = < | name = <package-name> | ||
'''summary''' | '''summary''' | ||
| Line 54: | Line 54: | ||
'''licence''' | '''licence''' | ||
License. Short licence names from [http://fedoraproject.org/wiki/Licensing Fedora naming scheme] are welcome. | |||
license = <licence-name> | license = <licence-name> | ||
| Line 63: | Line 63: | ||
homepage = <url> | homepage = <url> | ||
'''version''' | |||
Current version of package. | |||
'''stability''' | |||
Stability level of current version. Values could be: | |||
* insecure | |||
* buggy | |||
* developer | |||
* testing | |||
* stable | |||
'''requires''' | '''requires''' | ||
| Line 78: | Line 91: | ||
'''binding''' | '''binding''' | ||
What environment variables, 0install should export to process which uses this | What environment variables, 0install should export to process which uses this package. | ||
binding = [prepend|append|replace] <variable-name> [<insert-text-to-prepand-variable-value>] [, ...] | binding = [prepend|append|replace] <variable-name> [<insert-text-to-prepand-variable-value>] [, ...] | ||
| Line 135: | Line 148: | ||
'''arch''' | '''arch''' | ||
Makes sense only for binary | Makes sense only for binary packages and can contain: | ||
* ''*'' for noarch (by default) | * ''*'' for noarch (by default) | ||