From d7699dac89a4601fa58e8e81340519fb589adde7843dfefdfb327a1cf810f763 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Thu, 21 Jul 2011 08:38:12 +0000 Subject: [PATCH] Accepting request 76515 from home:dimstar:branches:GNOME:Factory Use keys from libsocialweb-branding-openSUSE OBS-URL: https://build.opensuse.org/request/show/76515 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-online-accounts?expand=0&rev=3 --- gnome-online-accounts.changes | 12 ++++++++++++ gnome-online-accounts.spec | 12 +++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/gnome-online-accounts.changes b/gnome-online-accounts.changes index 8ecde40..cb141cb 100644 --- a/gnome-online-accounts.changes +++ b/gnome-online-accounts.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jul 18 22:25:32 UTC 2011 - dimstar@opensuse.org + +- Add libsocialweb-branding-openSUSE BuildRequires. This package + contains our API keys for the various backends. +- Pass --enable-twitter and the corresponding keys to configure. + This allows us to enable the twitter backend for + gnome-online-accounts. Part of bnc#703759. +- For completeness pass --enable-google to configure. It's there by + default and it does not require API keys; anonymous works just + fine. + ------------------------------------------------------------------- Sun Jul 3 12:39:36 CEST 2011 - vuntz@opensuse.org diff --git a/gnome-online-accounts.spec b/gnome-online-accounts.spec index e1f7c47..ef66b10 100644 --- a/gnome-online-accounts.spec +++ b/gnome-online-accounts.spec @@ -30,6 +30,9 @@ BuildRequires: docbook-xsl-stylesheets BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc BuildRequires: intltool +# libsocialweb-branding-openSUSE is a package that already contains the right API keys. Instead of +# duplicating them in the .spec file here, we include them from libsocialweb-branding. +BuildRequires: libsocialweb-branding-openSUSE BuildRequires: update-desktop-files BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gnome-keyring-1) @@ -86,9 +89,16 @@ libraries in GNOME can access the user's online accounts. %setup -q %build +TWITTER=$(cat %{_datadir}/libsocialweb/keys/twitter) +TWITTER_KEY=$(echo $TWITTER | awk '{print $1}') +TWITTER_SECRET=$(echo $TWITTER | awk '{print $2}') %configure \ --disable-static \ - --enable-gtk-doc + --enable-gtk-doc \ + --enable-twitter \ + --with-twitter-consumer-key=$TWITTER_KEY \ + --with-twitter-consumer-secret=$TWITTER_SECRET \ + --enable-google make %{?_smp_mflags} %install