Steps: 1. make sure rpmbuild environment in your home is setup. 2. genereate gogs binary at gogs top directory. 3. (cd contrib;make)