FAQ:Single Recipe for Multiple Packages
From rPath Wiki
| FAQ | ||
| Question: How can I use a single recipe to create multiple Conary packages? | ||
Answer: A single Conary recipe can be used to create more than one package. The default package name is obtained from the name variable value set in the recipe, but the single package source (name:source) can be used to create multiple packages, each of which can be installed and managed separately. Packagers should use the PackageSpec policy action in a package recipe to designate things to be managed by a different package, similar to the way that policy actions can be used to override Conary's automatic component assignment for files.
In the following example, the packager wants to separate the telnet source code to create separate client and server packages. The following line is added to the recipe to ensure the telnet-server package is created separately from the telnet package:
r.Package Spec('telnet-server', '/usr/sbin/', '/usr/share/man/man8/')
