Break :template out into its own file

We also remove the rpm spec template, since the packaging repo does
this.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
We need the new Rake task files in our tarball as well

Otherwise `rake install` in the spec/rules won't work.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move install task into its own Rakefile

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Define JAR_FILE at the top of Rakefile

because we need it everywhere.
Spec fixups to remove os-based erb conditionals

The problem with evaluating os-based conditionals in the erb templating
is that it forces us to use different srpms for different OS's etc. This
becomes less sustainable as we try to automate more of this with the
packaging repo, which expects the specfile to take care of itself
regarding such things. This commit replaces some of the conditionals
with actual redhat spec conditionals. The biggest change is that of
changing the puppet_libdir assignment when building for pe to the
ruby sitelibdir, instead of a conditional on ruby version. Additionally,
on the redhat side, we support ruby 1.9 for fedora >= 17, so this commit
changes that conditional from an os_family fact check to a spec file
conditional, to avoid having to build different FOSS rpms for different
ruby versions.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
redirect to moses packaging
Remove cp_pr, cp_p, and ln_sfT, these will be supplied by packaging

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move variable assignment to the top, because it affects our packaging tasks
Update certain redhat file templates to use @name

Not hardcoded 'puppetdb'

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
whitespace fix
replace hardcoded references to puppetdb in tar.rake
Create a spec template based on what project we're building.

The packaging repo expects the template to be named after its project,
not a multi-purpose one like puppetdb's.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Specfile changes to update source based on name

The packaging repo creates tarballs based on project name, which varies
based on if this is PE vs not PE. This commit updates the templating as
such.

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