|
|
|
@ -9,9 +9,15 @@
|
|
|
|
|
# Geocallbacks work with SQLite 3.7.3 and up, available in Fedora,
|
|
|
|
|
# but not in EL, including 6; are off by default
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%global _libxml2 "--enable-libxml2=yes"
|
|
|
|
|
%global _geocallback "--enable-geocallbacks"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 18
|
|
|
|
|
# The author expects malfunction in older versions of libxml2 than 2.8
|
|
|
|
|
%global _lwgeom "--enable-lwgeom=yes"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# GEOS 3.3 is only available in Fedora and from EL6 on and up
|
|
|
|
|
# Older versions don't allow for "geosadvanced"
|
|
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
@ -29,8 +35,8 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: libspatialite
|
|
|
|
|
Version: 4.0.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 4.1.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Enables SQLite to support spatial data
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
|
|
@ -41,10 +47,19 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
|
|
|
|
|
# EPEL 5 reminiscences are for ELGIS
|
|
|
|
|
|
|
|
|
|
BuildRequires: proj-devel
|
|
|
|
|
BuildRequires: freexl-devel
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: geos-devel
|
|
|
|
|
BuildRequires: proj-devel
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 18
|
|
|
|
|
BuildRequires: postgis
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
SpatiaLite is a a library extending the basic SQLite core
|
|
|
|
@ -76,6 +91,8 @@ developing applications that use %{name}.
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
%{?_lwgeom} \
|
|
|
|
|
%{?_libxml2} \
|
|
|
|
|
%{?_geocallback} \
|
|
|
|
|
%{?_geosadvanced}
|
|
|
|
|
|
|
|
|
@ -119,6 +136,9 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jun 4 2013 Volker Fröhlich <volker27@gmx.at> - 4.1.0-1
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
* Mon Apr 8 2013 Volker Fröhlich <volker27@gmx.at> - 4.0.0-3
|
|
|
|
|
- Disable hexgrid22 test on 32 bit systems
|
|
|
|
|
- Disable tests on ARM
|
|
|
|
|