From Fedora Project Wiki
These are guidelines for packaging CMPI plugins, used by the tog-pegasus or sblim-sfcb CIMOMs. Such plugins are called "CIM providers", and each uses the CMPI interface to the CIMOM.
- Make sure each provider Requires: tog-pegasus (or sblim-sfcb). Each provider should "Require" either cim server for now. This is going to change in future, to Requires: cim-server
- All plugins are shared libraries, ending in .so. These are to be installed in the /usr/%{_libdir}/cmpi/ directory.
- Each provider should register in %postin and unregister in %preun to the cim server.
- Some of the providers may have hard-coded shared object names, which are dlopen()ed at runtime. rpmlint will throw warnings to move *.so files to a -devel package, but this would be incorrect for these packages. Such warnings may be ignored.
- All the registration and mof files go to /usr/share/%{name}