[ELGIS] gdal-grass draft package

Volker Froehlich volker27 at gmx.at
Sun Jan 15 04:38:52 EST 2012


On Sun, 2012-01-15 at 10:27 +0100, Mathieu Baudier wrote:
> > Viji started packaging this driver quite some time ago, but got busy
> > then. I took over the work and I think I have something working now.
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=658234#c7
> >
> > On 64 bit systems, a modified GDAL is necessary, as it hard-codes the
> > plug-in directory to /usr/lib/gdalplugins, which is wrong for 64 bit.
> 
> Would this approach also work with GDAL v1.8.1? (and 1.9)

Yes, it would. Put this in the GDAL prep section:

# Adapt default plug-in directory for 64 bit systems
%if %cpuarch == 64
sed -i 's|GDAL_PREFIX "/lib/gdalplugins"|GDAL_PREFIX"/lib64/gdalplugins"|' gcore/gdaldrivermanager.cpp ogr/ogrsf_frmts/generic/ogrsfdriverregistrar.cpp
%endif

and in the files section:

%files

...

%dir %{_libdir}/%{name}plugins

>From the build directory of GDAL: Run "make dist" in frmts/grass. This
will provide you with the the tarball you need for gdal-grass.

Volker



More information about the el mailing list