Hello community, here is the log from the commit of package librest for openSUSE:Factory checked in at Tue Apr 6 22:28:45 CEST 2010. -------- --- librest/librest.changes 2010-03-15 15:49:59.000000000 +0100 +++ librest/librest.changes 2010-03-17 11:08:32.000000000 +0100 @@ -1,0 +2,10 @@ +Wed Mar 17 10:06:30 UTC 2010 - pascal.bleser@opensuse.org + +- (re?)add librest-fbconnect-url.patch from Moblin:Factory to fix + the build of bisho +- some spec file tidying: more explicit %files listing to avoid + unintended/unnoticed major changes +- use %soname and %abi defines throughout to spec to ease + future maintenance + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- librest-fbconnect-url.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ librest.spec ++++++ --- /var/tmp/diff_new_pack.i9vpHG/_old 2010-04-06 22:28:08.000000000 +0200 +++ /var/tmp/diff_new_pack.i9vpHG/_new 2010-04-06 22:28:08.000000000 +0200 @@ -19,13 +19,16 @@ Name: librest %define _name rest +%define soname 0 +%define abi 0.6 Version: 0.6.1 -Release: 1 +Release: 2 License: LGPLv2.1 Summary: Library to access RESTful web services Url: http://moblin.org/projects/librest Group: Development/Libraries/GNOME Source0: http://download.moblin.org/sources/rest/0.6/%{_name}-%{version}.tar.bz2 +Patch1: librest-fbconnect-url.patch BuildRequires: glib2-devel BuildRequires: libsoup-devel BuildRequires: libxml2-devel @@ -43,12 +46,13 @@ wrapper around libsoup. * the second aids with XML parsing by wrapping libxml2. -%package -n librest0 -License: LGPLv2.1 +%package -n librest%{soname} + + Summary: Library to access RESTful web services Group: Development/Libraries/GNOME -%description -n librest0 +%description -n librest%{soname} This library was designed to make it easier to access web services that claim to be "RESTful". A reasonable description is that a RESTful service should have urls that represent remote objects, which methods @@ -64,7 +68,7 @@ License: LGPLv2.1 Summary: Library to access RESTful web services - Development Files Group: Development/Libraries/GNOME -Requires: librest0 = %{version} +Requires: librest%{soname} = %{version} Requires: glib2-devel Requires: libsoup-devel Requires: libxml2-devel @@ -83,6 +87,7 @@ %prep %setup -q -n %{_name}-%{version} +%patch1 -p1 %build %configure --disable-static @@ -95,20 +100,25 @@ %clean %{__rm} -rf %{buildroot} -%post -n librest0 -p /sbin/ldconfig +%post -n librest%{soname} -p /sbin/ldconfig -%postun -n librest0 -p /sbin/ldconfig +%postun -n librest%{soname} -p /sbin/ldconfig -%files -n librest0 +%files -n librest%{soname} %defattr(-, root, root) %doc AUTHORS COPYING README -%{_libdir}/*.so.* +%{_libdir}/librest-%{abi}.so.%{soname} +%{_libdir}/librest-%{abi}.so.%{soname}.* +%{_libdir}/librest-extras-%{abi}.so.%{soname} +%{_libdir}/librest-extras-%{abi}.so.%{soname}.* %files devel %defattr(-, root, root) -%{_libdir}/*.so -%{_libdir}/pkgconfig/*.pc -%{_includedir}/rest-0.6 -%{_datadir}/gtk-doc/html/rest-0.6 +%{_libdir}/librest-%{abi}.so +%{_libdir}/librest-extras-%{abi}.so +%{_libdir}/pkgconfig/rest-%{abi}.pc +%{_libdir}/pkgconfig/rest-extras-%{abi}.pc +%{_includedir}/rest-%{abi} +%{_datadir}/gtk-doc/html/rest-%{abi} %changelog ++++++ librest-fbconnect-url.patch ++++++ diff --git a/rest-extras/facebook-proxy.c b/rest-extras/facebook-proxy.c index 2ca5490..515d09d 100644 --- a/rest-extras/facebook-proxy.c +++ b/rest-extras/facebook-proxy.c @@ -328,6 +328,38 @@ facebook_proxy_build_login_url (FacebookProxy *proxy, const char *token) } char * +facebook_proxy_build_fbconnect_login_url (FacebookProxy *proxy, const char *perms) +{ + SoupURI *uri; + GHashTable *params; + char *s; + + g_return_val_if_fail (FACEBOOK_IS_PROXY (proxy), NULL); + + uri = soup_uri_new ("http://facebook.com/login.php"); + params = g_hash_table_new (g_str_hash, g_str_equal); + + g_hash_table_insert (params, "api_key", proxy->priv->api_key); + g_hash_table_insert (params, "v", "1.0"); + g_hash_table_insert (params, "connect_display", "popup"); + g_hash_table_insert (params, "fbconnect", "true"); + g_hash_table_insert (params, "return_session", "true"); + g_hash_table_insert (params, "session_key_only", "true"); + if (perms) + g_hash_table_insert (params, "req_perms", perms); + + soup_uri_set_query_from_form (uri, params); + + s = soup_uri_to_string (uri, FALSE); + + g_hash_table_unref (params); + soup_uri_free (uri); + return s; +} + + + +char * facebook_proxy_build_permission_url (FacebookProxy *proxy, const char *perms) { SoupURI *uri; diff --git a/rest-extras/facebook-proxy.h b/rest-extras/facebook-proxy.h index cdee905..6f4360f 100644 --- a/rest-extras/facebook-proxy.h +++ b/rest-extras/facebook-proxy.h @@ -86,6 +86,8 @@ char * facebook_proxy_sign (FacebookProxy *proxy, GHashTable *params); char * facebook_proxy_build_login_url (FacebookProxy *proxy, const char *frob); +char * facebook_proxy_build_fbconnect_login_url (FacebookProxy *proxy, const char *perms); + char * facebook_proxy_build_permission_url (FacebookProxy *proxy, const char *perms); G_END_DECLS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org