Personal tools
     DOCUMENTATION

Conary:GNOME App Template

From rPath Wiki

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

Conary packagers can write a package recipe to package a GNOME application. This type of recipe inherits directly from the PackageRecipe class.

Use the following template to start the recipe, and make the changes suggested:

 
loadRecipe('gnomepackage.recipe')
class MyApp(GnomePackageRecipe):
 
    name = 'name'
    version = 'version'
 
    buildRequires = []

Suggested changes:

  • Change the class name to a CamelCase representation of the application name
  • Change the value for name to the application name as packaged
  • Change the value for version to the application version
  • After cooking (with cvc) or building (with rMake), add items to the buildRequires section as instructed by the build messages (see Conary Recipe Structure for more information)

You should disable scrollkeeper updates since Conary will handle that for us:

 
    extraConfig = '--disable-scrollkeeper'

If the package isn't an official GNOME package you should also override the unpack method in order to get the proper site:

 
    def unpack(r):
        r.addArchive("http://page.to.software/you/are/packaging/")