Add RPM support

* Fix the RPM file
* Fix flags
Add skip if MySQL server offline
Merge pull request #11 from LinuxJedi/rpm

Add RPM building support