Update the project.clj file to use `rake version`

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move redhat spec erb into ext/redhat

Per packaging repo standard

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
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
whitespace fix
replace hardcoded references to puppetdb in tar.rake
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>
Whitespace fixes in redhat specfile
Remove version definitions that are established by packaging

Including deb versions

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove debian build methods tasks from Rakefile

These will be handled by the packaging repo.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove get_version from Rakefile
Move debian into ext, not top level

per packaging repo expectations, which wants ext/{redhat,debian}

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move the terminus task into its own file
Add :clear to tasks that we want from puppetdb

And not from the packaging repo.

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