Getting the spec file from an RPM

rpm --scripts -qp my-great-app-1.1.2.rpm

07/18/2012