Fix building of horizon under icehouse

Icehouse needs some deps that were not required before
Change-Id: I05fec1a59c6bb4a5599cb85747888277cfd857ac
Fix test-requires string iteration

To avoid strings being extended and this causing the test
requirements to become invalid/corrupted we instead will do
a little refactoring on the replacement run script and use
the yield_lines method from pkg_resources (which is what the
other setuptools functions use as well) to correctly yield back
strings (or strings inside lists) in a correct manner that
should avoid the corruption problem.

Fixes bug 1355426

Change-Id: I1ccf63861cef704f494f391980430fa87347a64b
Pull heat config and paste from upstream

Change-Id: I015c84f026fdcb3d324d58a55e68e932e3be5367
Always move built rpms, even under partial failure

When a build command fails (due to a package causing
problems) we potentially have already built a set of
other packages (especially when building is done in
parallel), so even when failure occurs we need to move
the rpms that have been build to the target repository.

Fixes bug 1355442

Change-Id: I9f346e189db964bfd9679d452ba9637192a6697c
Only remove build directories before executing, not after

To help in the case where a build fails and the user wants
to investigate why it fails it is nice to only delete the
required directories *before* building and not before and
after (even under failures).

Fixes bug 1355442

Change-Id: I0998fb0c8b80f81ac78075f9e6d0d9c2f65a0eba
Fixing dependency error for package openstack-neutron-vmware

The openstack-neutron-vmware package does not specify the "epoch"
parameter in the dependency and because of which, the installation
of openstack-neutron rpm has been failing. This commit is to fix
that, along with the typo in "nicera"

Change-Id: Ib1319dcf7eb2e25788cc8e7519c0b091d305166c
Merge "Pull heat config and paste from upstream"
Merge "Fix test-requires string iteration"
Merge "Always move built rpms, even under partial failure"
Stop ceilometer and trove inclusion of test-requires

Currently both of these projects have test-requires that
are incorrect, broken, and just don't make sense, so to
bypass pip downloading there test-requirements as part of
the prepare process we will just turn that inclusion off.

Change-Id: I24c8c73b3901c519d7297cbcb890c94ae4419e72
Ensure we pickup previously built epochs

When we have previously built a package and have its repo
accessible we should make sure that when building dependencies
that we set the correct epoch in there built package.

This change will scan the dependency which were matched via yum
and extract there epoch from there found rpm information and include
it automatically in the epoch mapping sent into py2rpm during building.
It will skip a set of epochs that should not be provided (by default
this will always skip the 0 epoch).

Note that with this change built dependencies will also inherit any
custom epochs that are found in epel or elsewhere as well...

Fixes bug 1356429

Change-Id: I0a82b41a4a734a1ecbdbd9b5fcef2b3dfb39ea04
Merge "Ensure we pickup previously built epochs"
The doc/config files should be packaged only when usr_only=False

There are some ini and README files that are getting packaged even
when usr_only is True. This commit puts a check for usr_only
around them so that they are ignored if that flag is set

Change-Id: Icf725d76888ec1bfc9cc98883c5c98484e69c2e0
Merge "Only remove build directories before executing, not after"
Merge "The doc/config files should be packaged only when usr_only=False"
Merge "Stop ceilometer and trove inclusion of test-requires"
Remove usage of 'devX.gY' in comparision functions

The pbr package is changing how these names are generated
so instead of comparing directly to 'dev146.g79fbeb7' or
similar we should just compare to the nearest tag (which
should be stable) instead.

Change-Id: I02da38d81663e7f2a31c721ebff27ba633610675
Fix the hash seed so that tests work correctly

Change-Id: I36eff8ae82382866023b1eed92431e2702c194b5
Add a icehouse-2014.1.2 origins file

Change-Id: I7f0508a235dd13292d143c3b6d2f1b44051e1eb5
Fix inclusions

The big switch README is being including during setup.py build time
via a configuration in neutrons setup.cfg that interacts with pbr to
pull in this file so we need to include it.

It is being fixed in https://review.openstack.org/#/c/115455 but
this will take a while to merge and release...

Also fixes how embrane and nuage configuration files appeared in
2014.1.1 and not in 2014.1 which was further breaking the rpmbuild.

Change-Id: Iac20e4c17205dd66c070dfee989fd7d84b41e43f