On Feb 21, 2013 2:39 AM, "Matthew Miller" <mattdm@fedoraproject.org> wrote:
>
> On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote:
> > I was wondering if it is possible to download a spec file using yum
> > or rpm only (without downloading the rpm)?
>
> No, but there's a better way! All of our spec files are available in git,
> and the "fedpkg" command is a nice wrapper around access to the repository.

In a similar vein, if all you really want is the spec file, you can pull it from the git web interface.

For instance, to pull the spec file for the "nodejs" package, just:

wget http://pkgs.fedoraproject.org/cgit/nodejs.git/plain/nodejs.spec

-T.C.