(#17178) Update rubylib on debian/ubuntu installs

Previously the terminus would be installed to the 1.8 sitelibdir for ruby1.8 or
the 1.9.1 vendorlibdir on ruby1.9. The ruby1.9 code path was never used, so
platforms with ruby1.9 as the default (such as quantal and wheezy) would not be
able to load the terminus. Modern debian packages put version agnostic ruby
code in vendordir (/usr/lib/ruby/vendor_ruby), so this commit moves the
terminus install dir to be vendordir.
Merge pull request #407 from haus/maint/master/refix_17178_in_master

(#17178) Update rubylib on debian/ubuntu installs
Add initial packaging yaml files to './ext'

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move :uberjar task into its own Rake file

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move tarball create task into its own Rake file

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Add a Rake file with a task for cloning the packaging repo

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Add loading of new separate tasks to top-level Rakefile

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove all rpm-related tasks and variables from Rakefile

We're going to let the packaging repo handle this.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
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