<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
I maintain the current trunk rpm for openSUSE here:<br>
<a class="moz-txt-link-freetext" href="https://build.opensuse.org/package/show?package=mapserver&project=home%3Atzotsos%3AApplication%3AGeo">https://build.opensuse.org/package/show?package=mapserver&project=home%3Atzotsos%3AApplication%3AGeo</a><br>
<br>
Perhaps it can help.<br>
<br>
Cheers,<br>
Angelos<br>
<br>
On 09/05/2012 06:46 PM, Peter Hopfgartner wrote:<br>
</div>
<blockquote cite="mid:504773DA.60107@r3-gis.com" type="cite">On
09/05/2012 05:38 PM, Stephan Meißl wrote:
<br>
<blockquote type="cite">On Wed, 2012-09-05 at 17:14 +0200, Peter
Hopfgartner wrote:
<br>
<blockquote type="cite">When building an RPM package, the files
get typically installed into a
<br>
build directory, which can be placed anywhere in the file
system.
<br>
In the "make install" phase of the RPM build process, a
get to the
<br>
point where:
<br>
<br>
/bin/sh ../../libtool --mode=install /usr/bin/install -c
_mapscript.la
<br>
/builddir/build/BUILDROOT/mapserver-6.2.0-0.beta2.el6.x86_64`/usr/bin/python
<br>
-c "from distutils.sysconfig import get_python_lib; print
<br>
get_python_lib(1)"`
<br>
libtool: install: error: cannot install `_mapscript.la' to a
directory
<br>
not ending in /usr/lib64/python2.6/site-packages
<br>
make[1]: Leaving directory
<br>
`/builddir/build/BUILD/mapserver-6.2.0-beta2/mapscript/python'
<br>
<br>
where it complains that the target dir is not a subdir of
<br>
/usr/lib64/python2.6/site-packages.
<br>
<br>
How did other packagers handle this?
<br>
<br>
Regards,
<br>
<br>
Peter
<br>
<br>
</blockquote>
Hi Peter,
<br>
<br>
that's odd, I thought this has been resolved (see [1]), at least
I had a
<br>
somehow working spec file then (see [2]).
<br>
</blockquote>
I've started from the Fedora RPM. Looking at the links, the
patches git applied. Indeed, I think that this change
<br>
<br>
- $(LTINSTALL) $(INSTALL) _mapscript.la $(PYLIBDIR)
<br>
- $(INSTALL) -c mapscript.py $(PYLIBDIR)
<br>
+ $(LTINSTALL) $(INSTALL) _mapscript.la $(DESTDIR)$(PYLIBDIR)
<br>
+ $(INSTALL) -c mapscript.py $(DESTDIR)$(PYLIBDIR)
<br>
<br>
leads to the situation, that the target of install is not a subdir
of $(PYLIBDIR), but of $(DESTDIR)$(PYLIBDIR) and causes the above
mentioned message.
<br>
<br>
<blockquote type="cite">What does your spec file look like?
<br>
</blockquote>
I've attached it. It's a WIP.
<br>
<blockquote type="cite">
<br>
cu
<br>
Stephan
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://github.com/Schpidi/mapserver/commit/6e60a7e85bbdebc9c375fd18feb3ed72be19616b">https://github.com/Schpidi/mapserver/commit/6e60a7e85bbdebc9c375fd18feb3ed72be19616b</a><br>
[2]
<a class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/RPMs-from-trunk-td4902205.html">http://osgeo-org.1560.n6.nabble.com/RPMs-from-trunk-td4902205.html</a>
<br>
<br>
</blockquote>
<br>
Bye,
<br>
<br>
Peter
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mapserver-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
<a class="moz-txt-link-freetext" href="http://users.ntua.gr/tzotsos">http://users.ntua.gr/tzotsos</a></pre>
</body>
</html>