[CentOS-devel] mock using yum .repo file?

Sun Jul 24 17:14:50 UTC 2011
Jeff Johnson <n3npq at mac.com>

On Jul 24, 2011, at 12:59 PM, Ljubomir Ljubojevic wrote:

> Alberto Sentieri wrote:
>> I am also interested in building packages and I do not know where to 
>> start from. Is there a howto with the basics on the subject?
> [1]: http://www.rpm.org/max-rpm/
> [2]: http://fedoraproject.org/wiki/Projects/Mock
> [3]: http://fedoraproject.org/wiki/Extras/MockTricks

Um, you *could* be a little bit more verbose and helpful.

You can build packages using rpmbuild or you can attempt to use mock.

The choice between rpm build <-> mock will depend on what platform you are building on,
and what intent you have with building packages.

If you are just getting started building, then rpmbuild is likely
the easier tool to learn. The link [1] isn't bad, but max-rom
assumes you are writing recipes from scratch, and none (that I know of)
has been doing that for almost a decade. Instead what is typically
done is to find a closely similar *.src.rpm and edit at the *.spec recipe.

Starting with Big Packages like kernel/glibc/X11/python isn't advised,
theres a fairly steep learning curve there.

If your intent is contributing a package to Fedora, then you will need
to learn to use mock. One of the impediments to using mock on CentOS
will be setting up entries in /etc/mock/* for CentOS.

I'm not sure whether CentOS adds those to mock or not. Consider it a RFE
if not, and blame me for ignorance because these days I use Serentos
not CentOS, largely … because … well … you know why.

The benefit of mock over rpmbuild is that it will setup most
of the build environment for you (when configured correctly).

The benefit of rpmbuild over mock is that its a simpler tool to understand
(too much automation isn't always the best way to learn).


73 de Jeff

> -- 
> Ljubomir Ljubojevic
> (Love is in the Air)
> PL Computers
> Serbia, Europe
> Google is the Mother, Google is the Father, and traceroute is your
> trusty Spiderman...
> StarOS, Mikrotik and CentOS/RHEL/Linux consultant
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> http://lists.centos.org/mailman/listinfo/centos-devel