Sweets Distribution/Recipe Specification
Summary
The document describes package specification files format which is a superset on top of the Sugar Network recipe specification. This is an attempt to implement a kind of meta-packaging spec file for Sugar Labs instance of the Open Build Service. The important note regarding this section is that such meta-packaging is very limited by design (in comparison with regular GNU/Linux distribution spec files) and is not assumed to go far from the standard ./configure && make && make install
. The main purpose is making possible to build binaries on all supported GNU/Linux distributions from the same [simple] spec file.
[Package]
All packaging related configuration happens in this section.
source = FILENAME
Required. The filename with sources bundle.
conflicts = PACKAGE [; ...]
Optional. The list of package names, i.e., names from a particular GNU/Linux distribution, that conflict with the recipe and cannot be installed at the same time.
install = SHELL_COMMAND
Optional. The command that will be executed after installing the binary package composed from this recipe.
uninstall = SHELL_COMMAND
Optional. The command that will be executed after uninstalling the binary package composed from this recipe.
Predefined constants
In addition to the already existing predefined constants, there are several new defines that make sense only for packages:
EXEC_PREFIX
;BINDIR
;SBINDIR
;SYSCONFDIR
;DATADIR
;INCLUDEDIR
;LIBDIR
;LIBEXECDIR
;LOCALSTATEDIR
;MANDIR
;INFODIR
;PYTHONSITEDIR
, equal to Python'sPYTHONPATH
environment variable;LUACPATHDIR
, equal to Lua'sLUA_CPATH
environment variable;LUAPATHDIR
, equal to Lua'sLUA_PATH
environment variable;LUAINCDIR
, path to a directory with Lua's C header file;