Update to 5.0.0beta0 for new Proj

epel9
Devrim Gündüz 6 years ago
parent 5fd6957c59
commit 96ee0c2356

2
.gitignore vendored

@ -1 +1 @@
/libspatialite-4.*.tar.gz /libspatialite-5.0.0-beta0.tar.gz

@ -25,53 +25,42 @@
%global _no_checks 1 %global _no_checks 1
%endif %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 # check_bufovflw test fails on gcc 4.9
# https://groups.google.com/forum/#!msg/spatialite-users/zkGP-gPByXk/EAZ-schWn1MJ # https://groups.google.com/forum/#!msg/spatialite-users/zkGP-gPByXk/EAZ-schWn1MJ
%if (0%{?fedora} >= 21 || 0%{?rhel} > 7) %if (0%{?fedora} >= 21 || 0%{?rhel} > 7)
%global _no_checks 1 %global _no_checks 1
%endif %endif
Name: libspatialite Name: libspatialite
Version: 4.3.0a Version: 5.0.0
Release: 12%{?dist} Release: beta0_1%{?dist}
Summary: Enables SQLite to support spatial data Summary: Enables SQLite to support spatial data
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
URL: https://www.gaia-gis.it/fossil/libspatialite URL: https://www.gaia-gis.it/fossil/libspatialite
Source0: http://www.gaia-gis.it/gaia-sins/%{name}-sources/%{name}-%{version}.tar.gz 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
# EPEL 5 reminiscences are for ELGIS BuildRequires: gcc autoconf
BuildRequires: freexl-devel
BuildRequires: gcc BuildRequires: geos-devel >= 3.7.1
BuildRequires: freexl-devel BuildRequires: proj-devel >= 6.2.0
BuildRequires: geos-devel >= 3.7.1 BuildRequires: sqlite-devel
BuildRequires: proj-devel >= 5.2.0 BuildRequires: zlib-devel
BuildRequires: sqlite-devel
BuildRequires: zlib-devel
%if (0%{?fedora} || 0%{?rhel} > 6) %if (0%{?fedora} || 0%{?rhel} > 6)
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
#BuildRequires: postgis
%endif %endif
%description %description
SpatiaLite is a a library extending the basic SQLite core SpatiaLite is a a library extending the basic SQLite core in order to
in order to get a full fledged Spatial DBMS, really simple get a full fledged Spatial DBMS, really simple and lightweight, but
and lightweight, but mostly OGC-SFS compliant. mostly OGC-SFS compliant.
%package devel %package devel
Summary: Development libraries and headers for SpatiaLite Summary: Development libraries and headers for SpatiaLite
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
@ -79,24 +68,26 @@ developing applications that use %{name}.
%prep %prep
%setup -q %setup -q -n %{name}-%{version}-beta0
%patch0 -p0
%patch1 -p0
%{__autoconf}
%build %build
%configure \ %configure \
--disable-static \ --disable-static \
%{?_lwgeom} \ %{?_lwgeom} \
%{?_libxml2} \ %{?_libxml2} \
%{?_geos} \ %{?_geos} \
%{?_geocallback} \ %{?_geocallback} \
%{?_geosadvanced} %{?_geosadvanced}
make %{?_smp_mflags}
%{__make} %{?_smp_mflags}
%install %install
rm -rf %{buildroot} %{__rm} -rf %{buildroot}
make install DESTDIR=%{buildroot} %{__make} install DESTDIR=%{buildroot}
# Delete undesired libtool archives # Delete undesired libtool archives
find %{buildroot} -type f -name "*.la" -delete find %{buildroot} -type f -name "*.la" -delete
@ -104,17 +95,17 @@ find %{buildroot} -type f -name "*.la" -delete
%check %check
%if 0%{?_no_checks} %if 0%{?_no_checks}
# Run check but don't fail build # Run check but don't fail build
make check V=1 ||: #%%{__make} check V=1 ||:
%else #%%else
make check V=1 #%%{__make} check V=1
%endif %endif
%ldconfig_scriptlets %ldconfig_scriptlets
%clean
%{__rm} -rf %{buildroot}
%files %files
%doc COPYING AUTHORS %doc COPYING AUTHORS
%{_libdir}/%{name}.so.7* %{_libdir}/%{name}.so.7*
%{_libdir}/mod_spatialite.so.7* %{_libdir}/mod_spatialite.so.7*
@ -131,6 +122,9 @@ make check V=1
%changelog %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 * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

@ -1 +1 @@
6b380b332c00da6f76f432b10a1a338c libspatialite-4.3.0a.tar.gz SHA512 (libspatialite-5.0.0-beta0.tar.gz) = 949424cf0ea402364f9a8ff5da0c03af924187874efc8ad37e355efb43c02ee9bcf81775ebee3d978d65ec915705072597a095d2a47cc2f09659e78e5e768c0a

Loading…
Cancel
Save