Build srpms with mock

This commit reworks the building of the srpm that we feed to mock by building
it with mock as well instead of building it using rpmbuild -ba. The existing
rpmbuild -ba behavior remains. Several new methods are created to pull out some
shared functionality. The new srpm build inside of mock is composed of various
methods, but is not exposed as an additional rake task. pl:mock no longer
depends on package:srpm - the srpm is built as part of the rpm.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove pe_sles.rake

Hack! pe_sles.rake is superceded by building sles using mock. This is supported
by recent changes to the puppetlabs-rpmbuilder module, which creates mock
configs for sles.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove all traces of sles building from the packaging repo

The sles packaging for PE in the packaging repo was relied on the "build" tool
in sles, which was slow, hard to parallelize, poorly documented, and difficult
to understand. Now that the puppetlabs-rpmbuilder module creates mocks for sles
on PE, we can pull the sles-specifics out almost entirely. The existing mock
tasks will work seamlessly with the new sles mocks, with the previous changes
brought in during the change to building srpms in mock.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Make the file search an explicit 'Dir.glob'
Merge pull request #161 from MosesMendoza/maint/master/use_mock_for_sles

Build srpms with mock