libspatialite/libspatialite.spec

63 lines
1.4 KiB
RPMSpec

Name: libspatialite
Version: 5.0.0
Release: 1
Summary: Library intended to extend thee SQLite core
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
BuildRequires: gcc freexl-devel geos-devel proj-devel sqlite-devel zlib-devel libxml2-devel
BuildRequires: minizip-devel
%description
SpatiaLite is an open source library inteded to extend the SQLite core to
support fully fledged Spatial SQL capabilities.
%package devel
Summary: Development tools for SpatiaLite
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
Library files and header files for SpatiaLite development.
%prep
%setup -q
%build
%configure \
--disable-lwgeom
%make_build
%install
%make_install
%delete_la
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc COPYING AUTHORS
%{_libdir}/%{name}.so.7*
%{_libdir}/mod_spatialite.so.7*
%{_libdir}/mod_spatialite.so
%files devel
%doc examples/*.c
%{_includedir}/spatialite.h
%{_includedir}/spatialite
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/spatialite.pc
%{_libdir}/*.a
%changelog
* Mon Jan 24 2022 yaoxin <yaoxin30@huawei.com> - 5.0.0-1
- Upgrade libspatialite to 5.0.0 to solve compilation failure.
* Tue Mar 10 2020 tangjing <tangjing30@huawei.com> - 4.3.0a-10
- Package init