NOTE: there are some PE version numbers in some of the code blocks. You'll need to update these to the correct numbers for your deployment.
To create an RPM package for pg_repack (using FPM):
First install the dependencies (requires root):
yum install pe-postgresql-devel zlib-devel readline-devel gcc -y