candlepin/candlepin — pull request #65 by jmrodri (2012-09-14 17:06:01+00:00)
Title: Macro

SUMMARY
-----------------
Adding ability to build with candlepin-deps or real BuildRequires from a single candlepin.spec. This also allows us to build a community release for EL6.

TEST
-------
You will need the **LATEST** tito from master: https://github.com/dgoodwin/tito

* Get the latest tito `git clone git@github.com:dgoodwin/tito.git`
* Build the latest from master and install it: `tito build --test --rpm -i`

Now you can test this pull request.

* Create temporary directory: `mkdir /tmp/rheltest`
* In the [yum-rhel-x86_64] section, comment out the existing `rsync` config entry in rel-eng/releasers.conf.
* Add `rsync = /tmp/rheltest` to rel-eng/releasers.conf
* Save the file

Why did you do that? you don't want your test to end up on the live repo, but we want it to do something. So setting the rsync target to a local temporary directory is a good way of verifying things worked.

* **BE CAREFUL, FOLLOW CLOSELY**
* Tag the branch (you'll be undoing this in a couple steps): `tito tag --offline`
* Use mock to release a EL6 version using candlepin-deps: `tito release --offline yum-rhel-x86_64`
* **IMPORTANT** Undo the tag: `tito tag -u`
* Now `ls /tmp/rheltest` should reveal the newly built candlepin.
* DONE