generate src.rpm

Paul Howarth paul at city-fan.org
Wed May 4 22:30:40 UTC 2005


On Thu, 2005-05-05 at 00:30 +0200, Rakotomandimby (R12y) Mihamina wrote:
> Hello,
> 
> I saw a lot of documentation on how to rebuild rpm, building rpm from an
> src.rpm, but:
> 
> How to generate the src.rpm?
> 
> Because. I used the src.rpm of someone to generate my rpms, and I would
> like people to be abble to use my src.rpms too.
> 
> But I dont know how to generate one, from the sources, the patches and
> the specfile.
> 
> Would you help me? just indicate a link if you have one.

If you use "rpmbuild -ba" instead of "rpmbuild -bb" to build your RPMs,
you'll get a src.rpm as well as your binary RPMs.

Alternatively, you can just do "rpmbuild -bs" to build a src.rpm.

See "man rpmbuild" (of course).

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-devel-list mailing list