Build Source Package

Most components of oVirt project use standard sequence to build rpms.

Summary of sequence is:

git clone `cd ` [ -r ] && autoreconf -ivf [ -r configure ] && ./configure make dist # <-- will output source tarball

Note: If autoreconf is required, install autoconf, automake optionally gettext-devel packages.

Build RPM Package

  rpmbuild -tb `<tarball>`   # <-- will output rpms

Another useful command is createrepo which scans directory and prepare rpm repository that can be added to yum via /etc/yum.repos.d/xxx.repo

  name=xxx `baseurl=`[`file:///location/of/repository`](file:///location/of/repository)