ee7c507
# Warning to ELGIS:
ee7c507
# 1 of the 41 tests is known to fail on EL6 (32 bit and 64 bit Intel)
ee7c507
# Tests pass though on PPC and PPC64
ee7c507
# The author is informed about that.
ee7c507
# The problem seems to stem from Geos.
ee7c507
00b10a3
#EPSG data in libspatialite should be in sync with our current GDAL version
00b10a3
63fd7f8
# A new feature available in PostGIS 2.0
63fd7f8
#%%global _lwgeom "--enable-lwgeom=yes"
63fd7f8
# Disabled due to a circular dependency issue with PostGIS
63fd7f8
# https://bugzilla.redhat.com/show_bug.cgi?id=979179
4395305
%global _lwgeom "--disable-lwgeom"
4395305
4395305
# Geocallbacks work with SQLite 3.7.3 and up, available in Fedora and EL 7
4395305
%if (0%{?fedora} || 0%{?rhel} > 6)
4395305
  %global _geocallback "--enable-geocallbacks"
4395305
%endif
4395305
4395305
%if 0%{?rhel} == 6
4395305
# Checks are known to fail if libspatialite is built without geosadvanced
4395305
#TODO: Fails to build, reported by mail. If geosadvanced is disabled, linker flags miss geos_c
4395305
#TODO: Check if that's still true anywhere
4395305
  %global _geosadvanced "--disable-geosadvanced"
4395305
  %global _no_checks 1
63fd7f8
%endif
f4cfc1e
bf8cd05
# check_bufovflw test fails on gcc 4.9
bf8cd05
# https://groups.google.com/forum/#!msg/spatialite-users/zkGP-gPByXk/EAZ-schWn1MJ
4597b86
%if (0%{?fedora} >= 21 || 0%{?rhel} > 7)
b84c344
  %global _no_checks 1
b84c344
%endif
b84c344
f2d760b
Name:		libspatialite
f2d760b
Version:	5.0.0
f2d760b
Release:	beta0_1%{?dist}
f2d760b
Summary:	Enables SQLite to support spatial data
f2d760b
License:	MPLv1.1 or GPLv2+ or LGPLv2+
f2d760b
URL:		https://www.gaia-gis.it/fossil/libspatialite
f2d760b
Source0:	http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-%{version}-beta0.tar.gz
f2d760b
Patch0:		libspatialite-proj_api.h-configure.patch
f2d760b
Patch1:		libspatialite-proj_api.h-c.patch
f2d760b
BuildRequires:	gcc autoconf
f2d760b
BuildRequires:	freexl-devel
f2d760b
BuildRequires:	geos-devel >= 3.7.1
f2d760b
BuildRequires:	proj-devel >= 6.2.0
f2d760b
BuildRequires:	sqlite-devel
f2d760b
BuildRequires:	zlib-devel
f4cfc1e
63fd7f8
%if (0%{?fedora} || 0%{?rhel} > 6)
f4cfc1e
BuildRequires: libxml2-devel
f4cfc1e
%endif
f4cfc1e
00b10a3
9f24d68
%description
f2d760b
SpatiaLite is a a library extending the basic SQLite core in order to
f2d760b
get a full fledged Spatial DBMS, really simple and lightweight, but
f2d760b
mostly OGC-SFS compliant.
9f24d68
9f24d68
%package devel
f2d760b
Summary:	Development libraries and headers for SpatiaLite
f2d760b
Requires:	%{name}%{?_isa} = %{version}-%{release}
f2d760b
Requires:	pkgconfig
9f24d68
9f24d68
%description devel
9f24d68
The %{name}-devel package contains libraries and header files for
9f24d68
developing applications that use %{name}.
9f24d68
9f24d68
9f24d68
%prep
f2d760b
%setup -q -n %{name}-%{version}-beta0
f2d760b
%patch0 -p0
f2d760b
%patch1 -p0
f2d760b
autoconf
9f24d68
9f24d68
%build
9f24d68
%configure \
f2d760b
	--disable-static \
f2d760b
	%{?_lwgeom}   \
f2d760b
	%{?_libxml2}   \
f2d760b
	%{?_geos}   \
f2d760b
	%{?_geocallback}   \
f2d760b
	%{?_geosadvanced}
9f24d68
f2d760b
%{__make} %{?_smp_mflags}
9f24d68
9f24d68
%install
f2d760b
%{__rm} -rf %{buildroot}
9f24d68
f2d760b
%{__make} install DESTDIR=%{buildroot}
9f24d68
9f24d68
# Delete undesired libtool archives
bf8cd05
find %{buildroot} -type f -name "*.la" -delete
9f24d68
00b10a3
%check
b84c344
%if 0%{?_no_checks}
bf8cd05
# Run check but don't fail build
f2d760b
#%%{__make} check V=1 ||:
f2d760b
#%%else
f2d760b
#%%{__make} check V=1
b84c344
%endif
2320f8d
4066e75
%ldconfig_scriptlets
9f24d68
f2d760b
%clean
f2d760b
%{__rm} -rf %{buildroot}
9f24d68
f2d760b
%files
9f24d68
%doc COPYING AUTHORS
bf8cd05
%{_libdir}/%{name}.so.7*
bf8cd05
%{_libdir}/mod_spatialite.so.7*
4395305
# The symlink must be present to allow loading the extension
4395305
# https://groups.google.com/forum/#!topic/spatialite-users/zkGP-gPByXk
4395305
%{_libdir}/mod_spatialite.so
9f24d68
9f24d68
%files devel
00b10a3
%doc examples/*.c
9f24d68
%{_includedir}/spatialite.h
00b10a3
%{_includedir}/spatialite
9f24d68
%{_libdir}/%{name}.so
9f24d68
%{_libdir}/pkgconfig/spatialite.pc
9f24d68
9f24d68
9f24d68
%changelog
f2d760b
* Wed Sep 4 2019 Devrim Gunduz <devrim@gunduz.org> - 5.0.0beta0-1
f2d760b
- Update to 5.0.0beta0 for new Proj
f2d760b
5fd6957
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-12
5fd6957
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5fd6957
e10a7e7
* Tue Feb 5 2019 Devrim Gunduz <devrim@gunduz.org> - 4.3.0a-11
e10a7e7
- Rebuilt against Proj 5.2.0
e10a7e7
684d427
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-10
684d427
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
684d427
162f5b3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-9
162f5b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
162f5b3
785e0ae
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-8
785e0ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
785e0ae
4597b86
* Fri Dec 08 2017 Merlin Mathesius <mmathesi@redhat.com> - 4.3.0a-7
4597b86
- Cleanup spec file conditionals
4597b86
2c2fd34
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-6
2c2fd34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2c2fd34
6f80403
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-5
6f80403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6f80403
05bd7c0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-4
05bd7c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
05bd7c0
365fe91
* Tue Jan 24 2017 Devrim Gunduz <devrim@gunduz.org> - 4.3.0a-3
365fe91
- Rebuilt against Proj 4.9.3.
365fe91
9a82b91
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0a-2
9a82b91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9a82b91
dd983de
* Thu Sep 17 2015 Volker Froehlich <volker27@gmx.at> - 4.3.0a-1
dd983de
- New upstream release
dd983de
8dac5a5
* Fri Jul  3 2015 Volker Fröhlich <volker27@gmx.at> - 4.3.0-1
8dac5a5
- New upstream release
8dac5a5
a2d8945
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-5
a2d8945
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a2d8945
78451e8
* Thu Mar 12 2015 Devrim Gunduz <devrim@gunduz.org> - 4.2.0-4
78451e8
- Rebuilt against Proj 4.9.1.
78451e8
7535b79
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-3
7535b79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7535b79
4395305
* Tue Jul 29 2014 Volker Fröhlich <volker27@gmx.at> - 4.2.0-2
4395305
- libxml2 default is now "yes"
4395305
- Disable geos support for EL5, as geos 3.2 is no longer supported
4395305
- Move the mod_spatialite symlink to the main package
4395305
bf8cd05
* Fri Jul 25 2014 Peter Robinson <pbrobinson@fedoraproject.org> 4.2.0-1
bf8cd05
- Update to 4.2.0
bf8cd05
b1a782d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.1-3
b1a782d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b1a782d
63fd7f8
* Thu Jan 23 2014 Volker Fröhlich <volker27@gmx.at> - 4.1.1-2
63fd7f8
- Update for EPEL 7
63fd7f8
23b307c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.1-2
23b307c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
23b307c
ebabd9c
* Mon Jul  1 2013 Volker Fröhlich <volker27@gmx.at> - 4.1.1-1
ebabd9c
- New upstram release
ebabd9c
1f55f67
* Thu Jun 27 2013 Volker Fröhlich <volker27@gmx.at> - 4.1.0-2
1f55f67
- Temporarily disable lwgeom features to break the circular
1f55f67
  dependency between gdal -- libspatialite -- postgis -- gdal
1f55f67
f4cfc1e
* Tue Jun  4 2013 Volker Fröhlich <volker27@gmx.at> - 4.1.0-1
f4cfc1e
- New upstream release
f4cfc1e
b84c344
* Mon Apr  8 2013 Volker Fröhlich <volker27@gmx.at> - 4.0.0-3
b84c344
- Disable hexgrid22 test on 32 bit systems
b84c344
- Disable tests on ARM
b84c344
acb20db
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
acb20db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
acb20db
bf8cd05
* Sat Dec  1 2012 Volker Fröhlich <volker27@gmx.at> - 4.0.0-1
ee7c507
- New upstream release
ee7c507
- Remove arch restrictions, solving BZ 663938 and 846301
ee7c507
- Update conditional for geosadvanced
ee7c507
2320f8d
* Sat Aug 18 2012 Volker Fröhlich <volker27@gmx.at> - 3.1.0-0.3.RC2
483310d
- Add ppc to excluded archs (BZ #846301)
2320f8d
- Don't build with profiling
483310d
e002dfe
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-0.2.RC2
e002dfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e002dfe
00b10a3
* Fri Jan 27 2012 Volker Fröhlich <volker27@gmx.at> - 3.1.0-0.1.RC2
00b10a3
- Add pkconfig as Requirement to the devel sub-package
00b10a3
- Drop freexl patch (solved), build with Freexl
00b10a3
- Update descriptions and summaries
00b10a3
- Re-design conditionals for build flags
00b10a3
- Don't run checks if built without advancedgeos
00b10a3
- Include examples as documentation
00b10a3
bf8cd05
* Sat Jan 14 2012 Volker Fröhlich <volker27@gmx.at> - 3.0.1-1
00b10a3
- New upstream release
00b10a3
- Drop defattr
00b10a3
- Run tests
00b10a3
- Own spatialite include-dir
00b10a3
- Add GPLv2+ and LGPLv2+ as alternative licenses
00b10a3
- Update URL and source URL
00b10a3
- Reduce build conditions to EPEL or not
00b10a3
- Use isa macro in base package Requires
00b10a3
aad6839
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-0.7.RC4
aad6839
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
aad6839
fb879a3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-0.6.RC4
fb879a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fb879a3
fa30427
* Tue Dec 7 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.5.RC4
fa30427
- Corrected wrong Fedora version number in if-statement
fa30427
9f24d68
* Sun Dec 5 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.4.RC4
9f24d68
- Refined configure condition to support RHEL
9f24d68
9f24d68
* Fri Dec 3 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.3.RC4
9f24d68
- Added buildroot
9f24d68
- Added doc files
9f24d68
9f24d68
* Wed Dec 1 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.2.RC4
9f24d68
- Added description of devel package
9f24d68
- Switched to disable-static flag
9f24d68
9f24d68
* Sun Nov 28 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.1.RC4
9f24d68
- Initial packaging for Fedora