Changes

Line 224: Line 224:     
The packages that should be present before invoking the ''exec'' command. For example, if the ''exec'' command generates .c files from .vala, the vala dependency should be mentioned in the ''requires'' option.
 
The packages that should be present before invoking the ''exec'' command. For example, if the ''exec'' command generates .c files from .vala, the vala dependency should be mentioned in the ''requires'' option.
 +
 +
== Package names ==
 +
 +
Zero Sugar spec file options, like ''requires'', contain links to another packages. Followed link formats are supported:
 +
 +
* current package (the first option is preferable),
 +
%(slug)s[/<nowiki><sub-package></nowiki>]
 +
<slug-value>[/<nowiki><sub-package></nowiki>]
 +
 +
* package from default repository,
 +
<package-name>[/<nowiki><sub-package></nowiki>]
 +
 +
* package from particular repository,
 +
<package-name>[/<nowiki><sub-package></nowiki>]:<repository>
 +
 +
* direct 0install link.
 +
<0install-feed-url>
 +
 +
At the end, all links will be transfered to 0install feed urls. For the current package, repository will be either default or value passed via ''--repository'' {{Code|0sugar}} command-line argument. Repository is just a Web url prefix like http://packages.sugarlabs.org/, the final 0install url will be composed by concatenating repository prefix and package name. Repositories might be:
 +
 +
* Default, without mentioning repository name. With prefix http://packages.sugarlabs.org/.
 +
* ''namedb'', native GNU/Linux distribution packages. With prefix http://namedb.0install.net/.
 +
* Repositories that are added by ''repo'' spec file option.
    
== Glob patterns ==
 
== Glob patterns ==