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)