From 6c6f8516f8ff2a2a2880adf629ff281c3333d0cc Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 19 Nov 2020 18:39:46 +0100 Subject: [PATCH] Enable RTTOPO and GCP --- libspatialite.spec | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/libspatialite.spec b/libspatialite.spec index a194763..cb49cd0 100644 --- a/libspatialite.spec +++ b/libspatialite.spec @@ -25,6 +25,13 @@ %global _no_checks 1 %endif +%if 0%{?fedora} >= 34 +# librttopo available in F34+ +%global _topo --enable-rttopo +%endif + +%global _gcp --enable-gcp + # check_bufovflw test fails on gcc 4.9 # https://groups.google.com/forum/#!msg/spatialite-users/zkGP-gPByXk/EAZ-schWn1MJ %if (0%{?fedora} >= 21 || 0%{?rhel} > 7) @@ -33,15 +40,21 @@ Name: libspatialite Version: 5.0.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Enables SQLite to support spatial data License: MPLv1.1 or GPLv2+ or LGPLv2+ URL: https://www.gaia-gis.it/fossil/libspatialite Source0: http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-%{version}.tar.gz -BuildRequires: gcc autoconf -BuildRequires: freexl-devel -BuildRequires: geos-devel >= 3.7.1 proj-devel >= 6.2.0 -BuildRequires: sqlite-devel zlib-devel minizip-devel + +BuildRequires: autoconf +BuildRequires: freexl-devel +BuildRequires: gcc +BuildRequires: geos-devel >= 3.7.1 +BuildRequires: librttopo-devel +BuildRequires: minizip-devel +BuildRequires: proj-devel >= 6.2.0 +BuildRequires: sqlite-devel +BuildRequires: zlib-devel %if (0%{?fedora} || 0%{?rhel} > 6) BuildRequires: libxml2-devel @@ -74,7 +87,9 @@ autoconf %{?_libxml2} \ %{?_geos} \ %{?_geocallback} \ - %{?_geosadvanced} + %{?_geosadvanced} \ + %{?_topo} \ + %{?_gcp} %{__make} %{?_smp_mflags} @@ -116,6 +131,9 @@ find %{buildroot} -type f -name "*.la" -delete %changelog +* Fri Nov 13 2020 Sandro Mani - 5.0.0-3 +- Enable RTTOPO and GCP + * Thu Nov 5 17:46:32 CET 2020 Sandro Mani - 5.0.0-2 - Rebuild (proj)