Create MySQL RPM

To create your own MySQL RPM package, you can:

  1. Download the source RPM from MySQL download site, such as this page.
  2. Install the src.rpm file using "rpm -Uhv mysql...src.rpm".
  3. Add a line "%community  1" to your $HOME/.rpmmacros file. Without this line, the rpmbuild complains about some missing fields (Name, Version, etc).
  4. Go to your topdir of your rpm build, and run "rpmbuild -bb SPEC/mysql...spec". Install any missing dependencies if you have any.