[packages/spatialite_gis] - added libharu patch (adjust for libharu 2.4.x API change); release 10
qboosh
qboosh at pld-linux.org
Tue Jan 24 18:58:12 CET 2023
commit 8d368449984c44095e2e205d092728f1abb9f49e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jan 24 18:59:16 2023 +0100
- added libharu patch (adjust for libharu 2.4.x API change); release 10
spatialite_gis-libharu.patch | 20 ++++++++++++++++++++
spatialite_gis.spec | 6 ++++--
2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/spatialite_gis.spec b/spatialite_gis.spec
index 3df5a4f..d7d7945 100644
--- a/spatialite_gis.spec
+++ b/spatialite_gis.spec
@@ -2,17 +2,18 @@ Summary: Minimalistic GIS tool built on top of SpatiaLite and RasterLite
Summary(pl.UTF-8): Minimalistyczne narzędzie GIS stworzone w oparciu o SpatiaLite i RasterLite
Name: spatialite_gis
Version: 1.0.0c
-Release: 9
+Release: 10
License: GPL v3+
Group: Applications/Databases
Source0: http://www.gaia-gis.it/gaia-sins/spatialite-gis-sources/%{name}-%{version}.tar.gz
# Source0-md5: 81de8d7f3e20038bd2ec721edc02dfb0
Patch0: wxWidgets3.patch
+Patch1: %{name}-libharu.patch
URL: https://www.gaia-gis.it/fossil/spatialite_gis
BuildRequires: freexl-devel
BuildRequires: geos-devel
BuildRequires: libgeotiff-devel
-BuildRequires: libharu-devel
+BuildRequires: libharu-devel >= 2.4
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: librasterlite-devel
@@ -36,6 +37,7 @@ RasterLite.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
mkdir wx-bin
ln -sf /usr/bin/wx-gtk2-unicode-config wx-bin/wx-config
diff --git a/spatialite_gis-libharu.patch b/spatialite_gis-libharu.patch
new file mode 100644
index 0000000..f286863
--- /dev/null
+++ b/spatialite_gis-libharu.patch
@@ -0,0 +1,20 @@
+--- spatialite_gis-1.0.0c/OutputMap.cpp.orig 2011-12-28 18:41:12.000000000 +0100
++++ spatialite_gis-1.0.0c/OutputMap.cpp 2023-01-24 18:54:34.655999122 +0100
+@@ -4073,7 +4073,7 @@ void MyMapOutput::PdfLinestring(HPDF_Pag
+ double r = layer->GetLineColor().Red() / 255.0;
+ double g = layer->GetLineColor().Green() / 255.0;
+ double b = layer->GetLineColor().Blue() / 255.0;
+- HPDF_UINT16 dash_ptn[4];
++ HPDF_REAL dash_ptn[4];
+ HPDF_Page_SetRGBStroke(page, r, g, b);
+ HPDF_Page_SetLineWidth(page, layer->GetLineThickness());
+ if (layer->GetLineStyle() == wxDOT)
+@@ -4226,7 +4226,7 @@ void MyMapOutput::PdfPolygon(HPDF_Page p
+ double r;
+ double g;
+ double b;
+- HPDF_UINT16 dash_ptn[4];
++ HPDF_REAL dash_ptn[4];
+ if (layer->DrawBorderOk() == true)
+ {
+ r = layer->GetLineColor().Red() / 255.0;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/spatialite_gis.git/commitdiff/8d368449984c44095e2e205d092728f1abb9f49e
More information about the pld-cvs-commit
mailing list