Re: noob question about mock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wednesday 05 Jan 2011 00:18:36 Nico Kadel-Garcia wrote:
> On Tue, Jan 4, 2011 at 4:00 PM,  <nux@xxxxxxxxx> wrote:
> > Michael Gliwinski writes:
> >> Actually, mock can build an SRPM from spec file and dir with sources:
> >> 
> >>   $ mock --buildsrpm --spec=/path/to/spec --source=/path/to/src/dir
> >> 
> >> I've been using it at least since 1.0.5, which is definitely in EPEL,
> >> not sure if it was available in older versions.  Sure it may require
> >> some scripting around it to automate it but it has the advantage of
> >> verifying build depends, etc. so it's worth it IMO.
> > 
> > Cheers for that!
> 
> I wonder if it would help with the "nosrc.rpm" packages for JPackage?

It does, sort of ;)  Before openjdk I was building nosrc.rpm for Java from 
JPackage using this method, but IIRC it requires some manual mocking about 
(sth like init mock buildroot, download files required by the nosrc.rpm (e.g. 
the Java distributable for Java) into some specific directory in the 
buildroot, then continue the build).


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
If you have received this email in error please notify support@xxxxxxxxxxxxxxxxxxx

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux