|
|
|
@ -25,53 +25,42 @@
|
|
|
|
|
%global _no_checks 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
|
# GEOS 3.2 is no longer supported
|
|
|
|
|
%global _geos"--disable-geos"
|
|
|
|
|
|
|
|
|
|
# The author expects malfunction in versions of libxml2 older than 2.8
|
|
|
|
|
%global _libxml2 "--disable-libxml2"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
|
%global _no_checks 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: libspatialite
|
|
|
|
|
Version: 4.3.0a
|
|
|
|
|
Release: 12%{?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/%{name}-sources/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# EPEL 5 reminiscences are for ELGIS
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: freexl-devel
|
|
|
|
|
BuildRequires: geos-devel >= 3.7.1
|
|
|
|
|
BuildRequires: proj-devel >= 5.2.0
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
Name: libspatialite
|
|
|
|
|
Version: 5.0.0
|
|
|
|
|
Release: beta0_1%{?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}-beta0.tar.gz
|
|
|
|
|
Patch0: libspatialite-proj_api.h-configure.patch
|
|
|
|
|
Patch1: libspatialite-proj_api.h-c.patch
|
|
|
|
|
BuildRequires: gcc autoconf
|
|
|
|
|
BuildRequires: freexl-devel
|
|
|
|
|
BuildRequires: geos-devel >= 3.7.1
|
|
|
|
|
BuildRequires: proj-devel >= 6.2.0
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
%if (0%{?fedora} || 0%{?rhel} > 6)
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
#BuildRequires: postgis
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
SpatiaLite is a a library extending the basic SQLite core
|
|
|
|
|
in order to get a full fledged Spatial DBMS, really simple
|
|
|
|
|
and lightweight, but mostly OGC-SFS compliant.
|
|
|
|
|
SpatiaLite is a a library extending the basic SQLite core in order to
|
|
|
|
|
get a full fledged Spatial DBMS, really simple and lightweight, but
|
|
|
|
|
mostly OGC-SFS compliant.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development libraries and headers for SpatiaLite
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
Summary: Development libraries and headers for SpatiaLite
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
@ -79,24 +68,26 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -q -n %{name}-%{version}-beta0
|
|
|
|
|
%patch0 -p0
|
|
|
|
|
%patch1 -p0
|
|
|
|
|
%{__autoconf}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
|
|
|
|
%{?_lwgeom} \
|
|
|
|
|
%{?_libxml2} \
|
|
|
|
|
%{?_geos} \
|
|
|
|
|
%{?_geocallback} \
|
|
|
|
|
%{?_geosadvanced}
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
--disable-static \
|
|
|
|
|
%{?_lwgeom} \
|
|
|
|
|
%{?_libxml2} \
|
|
|
|
|
%{?_geos} \
|
|
|
|
|
%{?_geocallback} \
|
|
|
|
|
%{?_geosadvanced}
|
|
|
|
|
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# Delete undesired libtool archives
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
@ -104,17 +95,17 @@ find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?_no_checks}
|
|
|
|
|
# Run check but don't fail build
|
|
|
|
|
make check V=1 ||:
|
|
|
|
|
%else
|
|
|
|
|
make check V=1
|
|
|
|
|
#%%{__make} check V=1 ||:
|
|
|
|
|
#%%else
|
|
|
|
|
#%%{__make} check V=1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING AUTHORS
|
|
|
|
|
%{_libdir}/%{name}.so.7*
|
|
|
|
|
%{_libdir}/mod_spatialite.so.7*
|
|
|
|
@ -131,6 +122,9 @@ make check V=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 4 2019 Devrim Gunduz <devrim@gunduz.org> - 5.0.0beta0-1
|
|
|
|
|
- Update to 5.0.0beta0 for new Proj
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|