telepathy-salut: Require telepathy-glib 0.20, and forbid functions deprecated in that version
Simon McVittie
smcv at kemper.freedesktop.org
Fri May 3 03:56:21 PDT 2013
Module: telepathy-salut
Branch: master
Commit: c9779d896a77f96f8aa582113984ba722ff65eb0
URL: http://cgit.freedesktop.org/telepathy/telepathy-salut/commit/?id=c9779d896a77f96f8aa582113984ba722ff65eb0
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Jan 4 15:57:22 2013 +0000
Require telepathy-glib 0.20, and forbid functions deprecated in that version
---
configure.ac | 4 +++-
salut/telepathy-salut-uninstalled.pc.in | 2 +-
salut/telepathy-salut.pc.in | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 56d7c4a..8a10fc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,7 +199,9 @@ AC_SUBST(LIBXML2_CFLAGS)
AC_SUBST(LIBXML2_LIBS)
AC_DEFINE([TP_DISABLE_SINGLE_INCLUDE], [], [Disable single header include])
-PKG_CHECK_MODULES(TELEPATHY_GLIB, [telepathy-glib >= 0.19.7])
+AC_DEFINE([TP_VERSION_MIN_REQUIRED], [TP_VERSION_0_20], [Ignore post 0.20 deprecations])
+AC_DEFINE([TP_VERSION_MAX_ALLOWED], [TP_VERSION_0_20], [Prevent post 0.20 APIs])
+PKG_CHECK_MODULES([TELEPATHY_GLIB], [telepathy-glib >= 0.20])
AC_SUBST(TELEPATHY_GLIB_CFLAGS)
AC_SUBST(TELEPATHY_GLIB_LIBS)
diff --git a/salut/telepathy-salut-uninstalled.pc.in b/salut/telepathy-salut-uninstalled.pc.in
index 050c0b8..03fadcd 100644
--- a/salut/telepathy-salut-uninstalled.pc.in
+++ b/salut/telepathy-salut-uninstalled.pc.in
@@ -12,6 +12,6 @@ Name: Telepathy-Salut (uninstalled)
Description: Link-local XMPP backend for the Telepathy framework (uninstalled)
Version: @VERSION@
Requires: pkg-config >= 0.21
-Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, telepathy-glib >= 0.13.12
+Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, telepathy-glib >= 0.20
Libs: ${abs_top_builddir}/src/libsalut-plugins.la ${abs_top_builddir}/lib/ext/wocky/wocky/libwocky.la
Cflags: -I${abs_top_srcdir} -I${abs_top_srcdir}/lib/ext/wocky
diff --git a/salut/telepathy-salut.pc.in b/salut/telepathy-salut.pc.in
index d38a3df..a6d192a 100644
--- a/salut/telepathy-salut.pc.in
+++ b/salut/telepathy-salut.pc.in
@@ -12,6 +12,6 @@ Name: Telepathy-Salut
Description: Link-local XMPP backend for the Telepathy framework
Version: @VERSION@
Requires: pkg-config >= 0.21
-Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, telepathy-glib >= 0.13.12
+Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, telepathy-glib >= 0.20
Libs: -L${pluginexeclibdir} -lsalut-plugins -lwocky
Cflags: -I${includedir}/telepathy-salut-0
More information about the telepathy-commits
mailing list