Skip to content

Latest commit

 

History

History

rpm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

To build the pcp-pmda-cpp RPMS:

  1. Configure your local build environment, if not already:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
[ -e ~/.rpmmacros ] || echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
  1. Install the pre-requisites, if not already:
sudo yum install boost cmake pcp-libs pcp-libs-devel
  1. 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>
  1. 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
  1. Build the RPMs:
rpmbuild -ba ~/rpmbuild/SPECS/pcp-pmda-cpp.spec

This will produce the following RPMs:

  • pcp-pmda-cpp-debuginfo - debug info for the pcp-pmda-cpp-* packages.
  • pcp-pmda-cpp-devel - development headers for the PMDA++ library.
  • pcp-pmda-cpp-examples - example PMDAs (binaries, and source).