<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I was looking at the gdal spec [1] and noticed the following lines
in %prep<br>
<br>
# libproj is dlopened; upstream sources point to .so, which is
usually not present<br>
# <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/gdal/ticket/3602">http://trac.osgeo.org/gdal/ticket/3602</a><br>
sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp<br>
<br>
The problem is that a libproj soname bump will be silently missed
unless a maintainer remembers the existence of this particular line
- and indeed, the libproj soname was bumped in proj-4.9.1 to
libproj.so.9.<br>
<br>
I was about to file a bug suggesting<br>
<br>
# Major digit of the proj so version<br>
%global proj_somaj 9<br>
[...]<br>
# proj DL-opened in ogrct.cpp, see also fix in %%prep<br>
Requires: libproj.so.%{proj_somaj}<br>
[...]<br>
sed -i 's|libproj.so|libproj.so.%{proj_somaj}|g' ogr/ogrct.cpp<br>
<br>
but I haven't found how to correctly specify the explicit
arch-correct requires on the library. I suppose I want something
which will ultimately results in something like<br>
<br>
<title>Konsole output</title>
<div>
<span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">libproj.so.9()(64bit)</span><br>
</span></div>
<br>
but how can the "()(64bit)" part be specified<span
style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">?<br>
<br>
<br>
Thanks,<br>
Sandro</span></span><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;"></span></span><br>
<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://pkgs.fedoraproject.org/cgit/gdal.git/tree/gdal.spec">http://pkgs.fedoraproject.org/cgit/gdal.git/tree/gdal.spec</a><br>
</body>
</html>