You can take https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=doomseeker for reference to write a .spec file. If you have never created an RPM, then this may be a nice beginner task.