Personal tools
     DOCUMENTATION

FAQ:Develop a Package Recipe

From rPath Wiki

Jump to: navigation, search
FAQ
Question: How should I develop a recipe for packaging software in Conary?


Answer: A Conary package recipe is a file providing all necessary instructions for Conary to build a package for installation on a Conary-based system. The package recipe is a text file, typically with a name format of <packagename>.recipe, containing Python code for Conary recipe classes.

The recommended steps for developing a package recipe to package software for which you have source code are:

  1. Choose the most applicable recipe template as a starting point for creating new packages, based on the type of source code you are packaging.
  2. Apply package recipe classes as needed to refine the behavior of the package.
  3. Consult the Conary API Documentation as necessary, which is extensively linked from the package recipe classes list.
  4. Cook the recipe locally to review Conary messages, and use those messages to refine the recipe code.
  5. Use the Conary:Recipe page and linked pages as an additional reference through developing the recipe.

If you do not have source code, use the Recipe Template for Binary Files for software packaged with other technologies.

Experiences vary between package development experiences. As a result, the time required to build a package also varies.

Image:Bulbgraph.png   If you have not packaged before, you may want to try the New Package Tutorial.