A ready to use plug-in is an RPM package. In this section we describe the final step of a new plug-in development - building a plug-in RPM.
After you have prepared modules and all the necessary files for a new plug-in, it is necessary to place these files into a special directory. The correct subdirectories structure and naming is important for successful plug-in build. Please, carefully follow the directories structure and general naming conventions described below. As an example, we'll take a Dummy Online Payment plug-in directories structure. The Dummy Online Payment plug-in sample is in the SDK directory samples/plugins/hspc-plugin-pp-op-dummy/ so you can copy it and rename folders and files in a way you need. In addition, you will need to edit some files. We describe this procedure step-by-step. Let us assume that a new plug-in name is myplugin.
version file. This text file contains a few strings that specify the Parallels Business Automation - Standard version a plug-in is built for. A version number is used in an output RPM package name. Thus, for a plug-in compatibility, a plug-in version does not matter, but the build script requires it. The Parallels Business Automation - Standard version must be specified in a special format. To know out the version of Parallels Business Automation - Standard you use, log in to Provider Control Center and click Support on the left menu. The Build ID will be shown in the right frame in the format Build ID <version>-<release>. In the version file, specify the version in the following way:
File contents, the example |
Description |
|
Specify the Parallels Business Automation - Standard version shown at the Support screen before hyphen. |
|
Specify the Parallels Business Automation - Standard release shown at the Support screen after hyphen. |
|
This is a required parameter for the build script, but its value does not matter. Type some phrase in quotation marks. For example, |
Important: The version file must be placed into a folder above a plug-in directory. For example:
D:/
plug-in build/version
hspc-plugin-pp-op-myplugin/
|
We've took the Dummy Online Payment plug-in structure as an example and renamed the plug-in directory. The The The The |
spec file. All plug-in name entries must be replaced with your plug-in name, in our example, myplugin.Makefile files in ALL subdirectories under the plug-in directory.rpmbuild utility compatible with OS you use and install it at your computer.build.sh script from the directory it is located.