To build the pcp-pmda-qpid
RPMS:
- Configure your local build environment, if not already:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
[ -e ~/.rpmmacros ] || echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
- Install the pre-requisites, if not already:
sudo yum install boost cmake pcp-libs pcp-libs-devel [pcp-pmda-cpp-devel] \
qpid-cpp-client qpid-cpp-client-devel qpid-qmf qpid-qmf-devel
- Note,
pcp-pmda-cpp-devel
is not a standard Fedora / Red Hat package. If its not already within your own yum repos, you can build it spearately via these instructions.
- Download the source archive:
wget --content-disposition --directory-prefix=~/rpmbuild/SOURCES \
https://github.com/pcolby/pcp-pmda-qpid/releases/tag/v<VERSION>
- Download the spec file:
wget --directory-prefix=~/rpmbuild/SPECS \
https://raw2.github.com/pcolby/pcp-pmda-qpid/master/package/rpm/pcp-pmda-qpid.spec
- Build the RPMs:
rpmbuild -ba ~/rpmbuild/SPECS/pcp-pmda-qpid.spec
This will produce the following RPMs:
pcp-pmda-qpid
- Qpid PMDA binary, and support files.pcp-pmda-qpid-debuginfo
- debug info for thepcp-pmda-qpid
package.