[Gdal-dev] Problem in RPM packaging

Alessandro Amici alexamici at fastwebnet.it
Wed Mar 17 14:54:56 EST 2004


Susumu,

On Wednesday 17 March 2004 14:39, Susumu Tanimura wrote:
> I have a problem with spec file for gdal, especially at the install
> part.

i have no experience on building an rpm package (no idea on what a spec file 
is), but i did quite some work for the deb package.

> + make prefix=/var/tmp/gdal-1.2.0-root/usr

this looks like almost the right command line to me. you only need to add an 
INST_PYMOD variable.

the debian/rules file uses:
	make install prefix=$USR_TMPDIR INST_PYMOD=$PYTHON_TMPDIR

that should be sufficient.

> ./install-sh -d /usr/lib
> for f in ./libgdal.la ; do /bin/sh ./libtool --mode=install ./install-sh -c
> $f /usr/lib ; done ./install-sh -c ./.libs/libgdal.1.2.0
> /usr/lib/libgdal.1.2.0
> cp: cannot create regular file `/usr/lib/#inst.14434#': Permission denied
> make: *** [install-lib] Error 1
> Bad exit status from /var/tmp/rpm-tmp.7004 (%install)
>
> So, even though I set prefix as /var/tmp/gdal-1.2.0-root/usr, it was
> ignored and used /usr.

i don't understand. this works using 'make prefix=$USR_TMPSRC' from the 
command line. are you sure that the rpm build tool uses the right make 
command line?

cheers,
alessandro



More information about the Gdal-dev mailing list