Compile .tar.gz into RPM file

$ rpmbuild -ta paperkey.tar.gz
Make sure that the RPM SPEC file is included in the tar.gz file above.
You also need the .sig file (Signature) to compile it to RPM.
Resulting files will be in the /home/user/rpmbuild folder.