diff --git a/.gitignore b/.gitignore index 0512b3a..ac3d7ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/libspatialite-4.*.tar.gz +/libspatialite-5.0.0-beta0.tar.gz diff --git a/libspatialite.spec b/libspatialite.spec index 58d28f2..2b12839 100644 --- a/libspatialite.spec +++ b/libspatialite.spec @@ -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 - 5.0.0beta0-1 +- Update to 5.0.0beta0 for new Proj + * Thu Jul 25 2019 Fedora Release Engineering - 4.3.0a-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 2c9ff7f..edf4283 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6b380b332c00da6f76f432b10a1a338c libspatialite-4.3.0a.tar.gz +SHA512 (libspatialite-5.0.0-beta0.tar.gz) = 949424cf0ea402364f9a8ff5da0c03af924187874efc8ad37e355efb43c02ee9bcf81775ebee3d978d65ec915705072597a095d2a47cc2f09659e78e5e768c0a