commit 4bc21e5f5297351c260f26297f2e01449cccb3ec Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:18:18 2019 -0400 Package init diff --git a/telepathy-glib-0.24.1-glib246.patch b/telepathy-glib-0.24.1-glib246.patch new file mode 100644 index 0000000..7cf13e7 --- /dev/null +++ b/telepathy-glib-0.24.1-glib246.patch @@ -0,0 +1,89 @@ +From 838bb888d80f75fb29653656c571f9f32d0255f0 Mon Sep 17 00:00:00 2001 +From: Iain Lane +Date: Fri, 2 Oct 2015 15:19:23 +0100 +Subject: [PATCH] Don't use the same test name for multiple tests + +GLib 2.46.0 doesn't allow this any more, and so the testsuite fails. +--- + tests/dbus/account.c | 10 +++++----- + tests/dbus/cm.c | 2 +- + tests/dbus/contact-list-client.c | 2 +- + tests/dbus/contact-lists.c | 2 +- + 4 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/tests/dbus/account.c b/tests/dbus/account.c +index 1df043a..8fa7514 100644 +--- a/tests/dbus/account.c ++++ b/tests/dbus/account.c +@@ -980,7 +980,7 @@ main (int argc, + + g_test_add ("/account/reconnect", Test, NULL, setup_service, test_reconnect, + teardown_service); +- g_test_add ("/account/reconnect", Test, "vardict", setup_service, ++ g_test_add ("/account/reconnect/vardict", Test, "vardict", setup_service, + test_reconnect, teardown_service); + + g_test_add ("/account/prepare/success", Test, NULL, setup_service, +@@ -989,17 +989,17 @@ main (int argc, + g_test_add ("/account/connection", Test, NULL, setup_service, + test_connection, teardown_service); + +- g_test_add ("/account/storage", Test, "first", setup_service, test_storage, ++ g_test_add ("/account/storage/first", Test, "first", setup_service, test_storage, + teardown_service); +- g_test_add ("/account/storage", Test, "later", setup_service, test_storage, ++ g_test_add ("/account/storage/later", Test, "later", setup_service, test_storage, + teardown_service); + + g_test_add ("/account/avatar", Test, NULL, setup_service, test_avatar, + teardown_service); + +- g_test_add ("/account/addressing", Test, "first", setup_service, ++ g_test_add ("/account/addressing-first", Test, "first", setup_service, + test_addressing, teardown_service); +- g_test_add ("/account/addressing", Test, "later", setup_service, ++ g_test_add ("/account/addressing-later", Test, "later", setup_service, + test_addressing, teardown_service); + + return tp_tests_run_with_bus (); +diff --git a/tests/dbus/cm.c b/tests/dbus/cm.c +index ad42854..c386d60 100644 +--- a/tests/dbus/cm.c ++++ b/tests/dbus/cm.c +@@ -1187,7 +1187,7 @@ main (int argc, + + g_test_add ("/cm/list", Test, GINT_TO_POINTER (0), + setup, test_list, teardown); +- g_test_add ("/cm/list", Test, GINT_TO_POINTER (USE_OLD_LIST), ++ g_test_add ("/cm/list/use-old-list", Test, GINT_TO_POINTER (USE_OLD_LIST), + setup, test_list, teardown); + + return tp_tests_run_with_bus (); +diff --git a/tests/dbus/contact-list-client.c b/tests/dbus/contact-list-client.c +index a3f878a..bb4895d 100644 +--- a/tests/dbus/contact-list-client.c ++++ b/tests/dbus/contact-list-client.c +@@ -577,7 +577,7 @@ main (int argc, + + g_test_add ("/contact-list-client/contact-list/properties", Test, + GUINT_TO_POINTER (FALSE), setup, test_contact_list_properties, teardown); +- g_test_add ("/contact-list-client/contact-list/properties", Test, ++ g_test_add ("/contact-list-client/contact-list/properties/props-only", Test, + GUINT_TO_POINTER (TRUE), setup, test_contact_list_properties, teardown); + + return tp_tests_run_with_bus (); +diff --git a/tests/dbus/contact-lists.c b/tests/dbus/contact-lists.c +index 43ab262..5e88a18 100644 +--- a/tests/dbus/contact-lists.c ++++ b/tests/dbus/contact-lists.c +@@ -2788,7 +2788,7 @@ main (int argc, + + g_test_add ("/contact-lists/cancelled-publish-request", + Test, NULL, setup, test_cancelled_publish_request, teardown); +- g_test_add ("/contact-lists/cancelled-publish-request", ++ g_test_add ("/contact-lists/cancelled-publish-request/remove-after", + Test, "remove-after", setup, test_cancelled_publish_request, teardown); + + g_test_add ("/contact-lists/add-to-stored", +-- +2.5.0 \ No newline at end of file diff --git a/telepathy-glib-0.24.1.tar.gz b/telepathy-glib-0.24.1.tar.gz new file mode 100644 index 0000000..e7f5c51 Binary files /dev/null and b/telepathy-glib-0.24.1.tar.gz differ diff --git a/telepathy-glib.spec b/telepathy-glib.spec new file mode 100644 index 0000000..de9658e --- /dev/null +++ b/telepathy-glib.spec @@ -0,0 +1,71 @@ +Name: telepathy-glib +Version: 0.24.1 +Release: 10 +Summary: GObject-based library for the Telepathy D-Bus API + +License: LGPLv2+ +URL: http://telepathy.freedesktop.org/ +Source0: http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz + +Patch0: telepathy-glib-0.24.1-glib246.patch +BuildRequires: dbus-devel dbus-glib-devel glib2-devel gobject-introspection-devel +BuildRequires: gtk-doc libxslt python2 vala-devel vala git python2 +Requires: glibc dbus-libs dbus-glib glib2 + +Provides: %{name}-vala +Obsoletes: %{name}-vala + +%description +The telepathy-glib library is a GObject-based C binding for the +Telepathy D-Bus API. + +%package devel +Summary: Header files for telepathy-glib +Requires: %{name} = %{version}-%{release} +Requires: dbus-devel dbus-glib-devel glib2-devel telepathy-glib +Requires: pkgconf-pkg-config telepathy-filesystem + +%description devel +Header files for telepathy-glib + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --enable-introspection=yes --enable-vala-bindings=yes +%make_build + +%install +%make_install +%delete_la + +%ldconfig_scriptlets + +%check +make check + +%files +%defattr(-,root,root) +%doc README COPYING AUTHORS +%{_libdir}/girepository-1.0/* +%{_libdir}/*.so.* +%{_datadir}/vala/vapi/telepathy-glib.* + +%files devel +%defattr(-,root,root) +%{_libdir}/pkgconfig/telepathy-glib.pc +%{_libdir}/*.a +%{_libdir}/*.so +%{_includedir}/telepathy-1.0/* +%{_datadir}/gir-1.0/*.gir + +%files help +%defattr(-,root,root) +%doc NEWS +%{_datadir}/gtk-doc/html/* + +%changelog +* Sat Aug 31 2019 openEuler Buildteam - 0.24.1-10 +- Package init