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