Is there any way to extract the spec file from rpm package ( I have only RPM file )
not by
rpm --scripts -qp my-great-app-1.1.2.rpm
( this syntax not get the spec file only the scripts from the rpm)
Install rpmrebuild and "extract" (actually re-create) the spec file of your rpm file or your already installed package.
Examples:
rpmrebuild --package --notest-install -e oracle-instantclient-basic-10.2.0.4-1.x86_64.rpm
rpmrebuild -s hercules.spec hercules