creating own RPMs

Todd Zullinger tmz at pobox.com
Thu Mar 12 00:16:34 UTC 2009


David Hláčik wrote:
> I will be creating rpm packages for software company i work for. I
> have built a lot of rpm packages by myself, so I have experience
> with that.  But my question is : How to make this process more
> comfortable and improve efficiency.
>
> So far i was creating packages by using rpmdevtools and rpmbuild
> itself.  I've read about mock , which is chrooted environment for
> building SRPMs . But does this mock can be applied on spec files? Do
> i need to prepare srpm package before i can work with mock? If so,
> this will not help me much.

Yes, you need to feed mock an srpm.  But that's easy enough.

Mock is useful in ensuring that you have reproducible builds.  Using
rpmbuild you may not notice needed dependencies or might pick up
unwanted deps.  Plus, using mock you can create packages for different
versions of Fedora and RHEL/CentOS.

If you need to build a lot of packages, you could look into using
koji, which helps coordinate mock builders and can create srpms to
feed mock from various version control systems.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nothing in education is so astonishing as the amount of ignorance it
accumulates in the form of inert facts.  --Henry Brooks Adams

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090311/36bb621e/attachment-0001.sig>


More information about the fedora-list mailing list