1. Apply all the patch fixes in old branches.
2. Adaptive the latest cmake version and change spec file.
3. Refresh the systemd services files accordlly.
4. Fix up all scripts when cmake is too new for mariadb.
(cherry picked from commit 91ecc4121887ef7f6568932a32523a43ab88b0a3)