[ELGIS] Getting started with mock..

Volker Fröhlich volker27 at gmx.at
Thu Nov 10 16:21:54 EST 2011


I'd like to point out on spectool, which makes downloading sources more 
pleasent:

spectool -g -S bla.spec

That tries to downloads all sources mentioned in the spec file.

Mathieu, why do you create the SRPM in Mock instead of straight with rpmbuild?

Volker


Am Donnerstag, 10. November 2011, 08:56:52 schrieb Mathieu Baudier:
> > Thanks a lot for the thorough response Mathieu!  I have the rpmbuild side
> > of things running well now, and have focused on mock tonight with some
> > success.  I'll give your el6 testing config a try and see how it goes. 
> > I've got SL6 running fine, so should be good to go.
> 
> To make sure that you are up and running, try rebuilding an ELGIS package:
> - checkout the sources
> svn co https://projects.argeo.org/elgis/svn/factory/trunk elgis-testing
> - go to, say, the 'geos' directory
> cd elgis-testing/rpmbuild/elgis/geos
> - download geos sources to SOURCES/
> wget -P SOURCES http://download.osgeo.org/geos/geos-3.3.1.tar.bz2
> - rebuild the SRPM
> mock -r elgis-6-testing-x86_64 --buildsrpm --spec SPECS/geos.spec
> --sources SOURCES/
> - save the SRPM
> cp -v /var/lib/mock/elgis-6-testing-x86_64/result/*.src.rpm
> ~/rpmbuild/SRPMS/ - rebuild
> mock -r elgis-6-testing-x86_64 --rebuild
> ~/rpmbuild/SRPMS/geos-3.3.1-2.el6.src.rpm
> 
> If you want to try a bigger one, do the same for GDAL.
> 
> Please test these instructions and with your feedback I'll put it on the
> wiki. _______________________________________________
> el mailing list
> el at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/el



More information about the el mailing list