[ELGIS] Getting started with mock..

Mathieu Baudier mbaudier at argeo.org
Thu Nov 10 02:56:52 EST 2011


> 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.


More information about the el mailing list