Hello community,
here is the log from the commit of package librest for openSUSE:Factory
checked in at Sat Oct 23 23:52:16 CEST 2010.
--------
New Changes file:
--- /dev/null 2010-07-09 01:59:37.000000000 +0200
+++ /mounts/work_src_done/STABLE/librest/librest.changes 2010-03-17 11:08:32.000000000 +0100
@@ -0,0 +1,55 @@
+-------------------------------------------------------------------
+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
+
+-------------------------------------------------------------------
+Mon Mar 15 14:07:33 UTC 2010 - awafaa@opensuse.org
+
+- Fix spec to comply with shared libraries policy.
+
+-------------------------------------------------------------------
+Thu Feb 4 11:56:54 UTC 2010 - abockover@novell.com
+
+- Rename to librest, provide/obsolete rest
+
+-------------------------------------------------------------------
+Tue Dec 29 02:00:13 UTC 2009 - glin@novell.com
+
+- Add librest-fbconnect-url.patch to add a new fbconnect url
+ funciton for facebook
+
+-------------------------------------------------------------------
+Fri Nov 6 07:51:03 UTC 2009 - glin@novell.com
+
+- Upddate to 0.6.1
+
+-------------------------------------------------------------------
+* 四 7月 16 2009 Gary Lin 0.520090716
+- Update to commit ff4561e2a8c38f49127f6e3b2ce7c238a29e1571
+
+* 四 7月 09 2009 Gary Lin 0.420090709
+- Update to commit e9a71922f5997243c45dfaaff21dd9b4a6340ca3
+
+* 四 7月 09 2009 Gary Lin 0.420090709
+- Update to commit 41f91eec3d26a2514c4bc310b90829cd2d14ed4a
+
+* Fri Jun 12 2009 0.420090612
+- Update to commit 92e1871d3181a73a780f588689733f25e3df5b48
+
+-------------------------------------------------------------------
+Wed May 20 01:55:18 CEST 2009 - vuntz@novell.com
+
+- Use configure macro to get the right options.
+
+* Mon May 18 2009 0.3.120090518
+- Update to commit e49d8730bfb277af59732822e78535ef37e29b6c
+
+* Mon May 11 2009 0.3.120090511
+- Update to commit 153d2e8c5cc3452a7275c7ea7fa6abe8750cde8b
+
calling whatdependson for head-i586
New:
----
librest-fbconnect-url.patch
librest.changes
librest.spec
rest-0.6.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ librest.spec ++++++
#
# spec file for package librest (Version 0.6.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
Name: librest
%define _name rest
%define soname 0
%define abi 0.6
Version: 0.6.1
Release: 7
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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
can then be called on.
It is comprised of two parts:
* the first aims to make it easier to make requests by providing a
wrapper around libsoup.
* the second aids with XML parsing by wrapping libxml2.
%package -n librest%{soname}
Summary: Library to access RESTful web services
Group: Development/Libraries/GNOME
%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
can then be called on.
It is comprised of two parts:
* the first aims to make it easier to make requests by providing a
wrapper around libsoup.
* the second aids with XML parsing by wrapping libxml2.
%package devel
License: LGPLv2.1
Summary: Library to access RESTful web services - Development Files
Group: Development/Libraries/GNOME
Requires: librest%{soname} = %{version}
Requires: glib2-devel
Requires: libsoup-devel
Requires: libxml2-devel
%description devel
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
can then be called on.
It is comprised of two parts:
* the first aims to make it easier to make requests by providing a
wrapper around libsoup.
* the second aids with XML parsing by wrapping libxml2.
%prep
%setup -q -n %{_name}-%{version}
%patch1 -p1
%build
%configure --disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%clean
%{__rm} -rf %{buildroot}
%post -n librest%{soname} -p /sbin/ldconfig
%postun -n librest%{soname} -p /sbin/ldconfig
%files -n librest%{soname}
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_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}/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