Personal tools
     DOCUMENTATION

Conary:Group Recipe Template

From rPath Wiki

Jump to: navigation, search
Conary --> Packaging --> Recipe --> Recipe Templates --> Group Recipe Template

Conary packagers can create groups to define an entire installable system or to define any group of packages that should be installed and managed together. To accomplish this, packagers use a group recipe. Use Conary:Group Recipe as a resource to further develop the group recipe.

The following is a template to get started on such a recipe.

   When creating an appliance group based on the rPath Appliance Platform, use rPath Linux:group-appliance as a template, instead.
 
class GroupExample(GroupRecipe):
    name = 'group-example'
    version = '0.0.1'
    autoResolve = True
 
    def setup(r):
       r.add('example-application')
       r.add('example-dependency:runtime')
       r.add('supporting-software', '/example.rpath.org@corp:1/2.2-1-4')
 
  • The class line informs Conary that you are cooking a group recipe.
  • The name line reflects the name of the group, in this case group-example.
  • The version line defines the group recipe version.
  • The autoResolve line requests automatic dependency resolution when the group is built, eliminating the need to list each dependency as an additional line within the group.
  • The first r.add line includes a package in the group.
  • The second r.add line includes a component in the group (a runtime component that is originally part of the example-dependency package).
  • The third r.add line includes a specific version of a package in the group (version /example.rpath.org@corp:1/2.2-1-4 of the supporting-software package); by installing and managing the package using the group instead of separately, developers can ensure that the package is restricted to this particular version.


From here you may wish to:

Participate in the rPath Community | Contribute to rPath Wiki | Report an issue to rPath