On 04/08/16 12:04, pronix pronix wrote:
> hello
> i found foreman-packaging, but can't understand how to build rpm with
> latest version of code from develop branch.

The first point is that we publish nightly RPMs to
http://yum.theforeman.org/nightly/ which you may find useful.

> short command example or links with very helpful
> thanks

To build it, you first need an SRPM. Check out foreman-packaging's
rpm/develop branch, install tito, rpm-build, then run:

  tito release --scratch --arg jenkins_job=test_develop --dry-run
koji-foreman-nightly

This'll generate SRPMs in /tmp/tito/. You can also generate SRPMs the
regular way with rpmbuild -bs and a tarball if you prefer.

Next create mock/site-defaults.cfg in your foreman-packaging checkout,
probably copying one of the two sample files.

Lastly build the SRPM with mock by running:

  mock --configdir mock/ -r el7-scl /tmp/tito/foreman-*.el7.rpm

This uses the configs in the mock/ directory of foreman-packaging, which
point to Foreman repos for dependencies.

-- 
Dominic Cleal
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to