Hello community,

here is the log from the commit of package libspatialite for openSUSE:Leap:15.2 
checked in at 2020-03-18 00:36:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/libspatialite (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.libspatialite.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libspatialite"

Wed Mar 18 00:36:28 2020 rev:17 rq:785809 version:4.3.0a

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/libspatialite/libspatialite.changes    
2020-01-15 15:25:15.314570980 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.libspatialite.new.3160/libspatialite.changes  
2020-03-18 00:36:46.077412723 +0100
@@ -1,0 +2,6 @@
+Sun Mar 17 13:49:30 UTC 2019 - Mykola Krachkovsky <w01dn...@gmail.com>
+
+- fixed build with newer libproj (using of deprecated API)
+  * added libspatialite-deprecated-proj-api.patch
+
+-------------------------------------------------------------------

New:
----
  libspatialite-deprecated-proj-api.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libspatialite.spec ++++++
--- /var/tmp/diff_new_pack.9afDIG/_old  2020-03-18 00:36:46.641413078 +0100
+++ /var/tmp/diff_new_pack.9afDIG/_new  2020-03-18 00:36:46.641413078 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libspatialite
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -26,6 +26,8 @@
 Group:          Development/Libraries/C and C++
 Url:            http://www.gaia-gis.it/spatialite/
 Source:         
http://www.gaia-gis.it/gaia-sins/%{name}-sources/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM add define to use deprecated API
+Patch1:         libspatialite-deprecated-proj-api.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  libgeos-devel
@@ -59,6 +61,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %configure \
@@ -78,12 +81,14 @@
 %postun -n %{libname} -p /sbin/ldconfig
 
 %files -n %{libname}
-%doc COPYING README README.coverage
+%license COPYING
+%doc README README.coverage
 %{_libdir}/libspatialite.so.%{sover}*
 %{_libdir}/mod_spatialite.so.%{sover}*
 
 %files devel
-%doc COPYING README README.coverage
+%license COPYING
+%doc README README.coverage
 %{_includedir}/*
 %{_libdir}/libspatialite.so
 %{_libdir}/mod_spatialite.so

++++++ libspatialite-deprecated-proj-api.patch ++++++
diff -uNr libspatialite-4.3.0a/configure libspatialite-4.3.0a-mod/configure
--- libspatialite-4.3.0a/configure      2015-09-07 16:56:45.000000000 +0300
+++ libspatialite-4.3.0a-mod/configure  2019-03-17 15:38:31.253895307 +0200
@@ -17455,6 +17455,8 @@
 fi
 
 if test x"$enable_proj" != "xno"; then
+  $as_echo "#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H 1" >>confdefs.h
+
   for ac_header in proj_api.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "proj_api.h" 
"ac_cv_header_proj_api_h" "$ac_includes_default"
diff -uNr libspatialite-4.3.0a/configure.ac 
libspatialite-4.3.0a-mod/configure.ac
--- libspatialite-4.3.0a/configure.ac   2015-09-07 16:56:35.000000000 +0300
+++ libspatialite-4.3.0a-mod/configure.ac       2019-03-17 15:35:41.055149773 
+0200
@@ -181,6 +181,7 @@
   [--enable-proj], [enables PROJ.4 inclusion [default=yes]])],
   [], [enable_proj=yes])
 if test x"$enable_proj" != "xno"; then
+  AC_DEFINE(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H)
   AC_CHECK_HEADERS(proj_api.h,, [AC_MSG_ERROR([cannot find proj_api.h, bailing 
out])])
   AC_SEARCH_LIBS(pj_init_plus,proj,,AC_MSG_ERROR(['libproj' is required but it 
doesn't seem to be installed on this system.]),-lm)
   AC_SEARCH_LIBS(pj_init_ctx,proj,,AC_MSG_ERROR(['libproj' is required but the 
version on this system does not support the required features (Version 4.8.0 or 
later is needed).]),-lm)
diff -uNr libspatialite-4.3.0a/src/connection_cache/alloc_cache.c 
libspatialite-4.3.0a-mod/src/connection_cache/alloc_cache.c
--- libspatialite-4.3.0a/src/connection_cache/alloc_cache.c     2015-07-01 
09:59:16.000000000 +0300
+++ libspatialite-4.3.0a-mod/src/connection_cache/alloc_cache.c 2019-03-17 
15:15:44.811966765 +0200
@@ -76,6 +76,7 @@
 #endif
 
 #ifndef OMIT_PROJ              /* including PROJ.4 */
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
 #include <proj_api.h>
 #endif
 
diff -uNr libspatialite-4.3.0a/src/gaiageo/gg_transform.c 
libspatialite-4.3.0a-mod/src/gaiageo/gg_transform.c
--- libspatialite-4.3.0a/src/gaiageo/gg_transform.c     2015-07-01 
09:59:16.000000000 +0300
+++ libspatialite-4.3.0a-mod/src/gaiageo/gg_transform.c 2019-03-17 
15:15:58.871863134 +0200
@@ -55,6 +55,7 @@
 #endif
 
 #ifndef OMIT_PROJ              /* including PROJ.4 */
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
 #include <proj_api.h>
 #endif
 
diff -uNr libspatialite-4.3.0a/src/spatialite/spatialite.c 
libspatialite-4.3.0a-mod/src/spatialite/spatialite.c
--- libspatialite-4.3.0a/src/spatialite/spatialite.c    2015-07-01 
09:59:16.000000000 +0300
+++ libspatialite-4.3.0a-mod/src/spatialite/spatialite.c        2019-03-17 
15:16:46.923508965 +0200
@@ -113,6 +113,7 @@
 #endif
 
 #ifndef OMIT_PROJ              /* including PROJ.4 */
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
 #include <proj_api.h>
 #endif
 
diff -uNr libspatialite-4.3.0a/src/spatialite/statistics.c 
libspatialite-4.3.0a-mod/src/spatialite/statistics.c
--- libspatialite-4.3.0a/src/spatialite/statistics.c    2015-07-01 
09:59:16.000000000 +0300
+++ libspatialite-4.3.0a-mod/src/spatialite/statistics.c        2019-03-17 
15:16:13.703753815 +0200
@@ -79,6 +79,7 @@
 #endif
 
 #ifndef OMIT_PROJ              /* including PROJ.4 */
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
 #include <proj_api.h>
 #endif
 

Reply via email to