Move private libs to Libs.private in pkg-config file (#1926868)

epel9
Sandro Mani 4 years ago
parent 80bb447b02
commit a3c1248d9e

@ -40,12 +40,15 @@
Name: libspatialite
Version: 5.0.1
Release: 2%{?dist}
Release: 3%{?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}.tar.gz
# Move private libs to Libs.private in pkg-config file (#1926868)
Patch0: libspatialite_pkgconfig.patch
BuildRequires: make
BuildRequires: autoconf
BuildRequires: freexl-devel
@ -132,6 +135,9 @@ find %{buildroot} -type f -name "*.la" -delete
%changelog
* Wed Feb 10 2021 Sandro Mani <manisandro@gmail.com> - 5.0.1-2
- Move private libs to Libs.private in pkg-config file (#1926868)
* Tue Feb 09 2021 Miro Hrončok <mhroncok@redhat.com> - 5.0.1-2
- Rebuilt for minizip 3.0.0

@ -0,0 +1,11 @@
diff -rupN libspatialite-5.0.1/spatialite.pc.in libspatialite-5.0.1-new/spatialite.pc.in
--- libspatialite-5.0.1/spatialite.pc.in 2021-02-07 16:53:46.000000000 +0100
+++ libspatialite-5.0.1-new/spatialite.pc.in 2021-02-10 09:54:09.647552994 +0100
@@ -8,5 +8,6 @@ includedir=@includedir@
Name: spatialite
Description: Spatial SQL database engine based on SQLite
Version: @VERSION@
-Libs: -L${libdir} -lspatialite @LIBS@ @LIBXML2_LIBS@ -lm
+Libs.private: -L${libdir} @LIBS@ @LIBXML2_LIBS@ -lm
+Libs: -L${libdir} -lspatialite
Cflags: -I${includedir}
Loading…
Cancel
Save