To build the pcp-pmda-cpp
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
- Download the source archive:
wget --content-disposition --directory-prefix=$HOME/rpmbuild/SOURCES \
https://github.com/pcolby/pcp-pmda-cpp/archive/v<VERSION>.tar.gz
https://github.com/pcolby/pcp-pmda-cpp/releases/tag/v<VERSION>
- Download the spec file:
wget --directory-prefix=$HOME/rpmbuild/SPECS \
https://raw.githubusercontent.com/pcolby/pcp-pmda-cpp/master/package/rpm/pcp-pmda-cpp.spec
- Build the RPMs:
rpmbuild -ba ~/rpmbuild/SPECS/pcp-pmda-cpp.spec
This will produce the following RPMs:
pcp-pmda-cpp-debuginfo
- debug info for thepcp-pmda-cpp-*
packages.pcp-pmda-cpp-devel
- development headers for the PMDA++ library.pcp-pmda-cpp-examples
- example PMDAs (binaries, and source).