2011-07-04 16:15:15 +02:00
#
# spec file for package gnome-online-accounts
#
2013-02-09 14:18:07 +01:00
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-07-04 16:15:15 +02:00
#
# 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/
#
2012-01-17 16:14:42 +01:00
2012-09-07 17:24:43 +02:00
%define with_twitter 0
2011-07-04 16:15:15 +02:00
Name : gnome-online-accounts
2013-08-23 10:19:44 +02:00
Version : 3.9.90
2011-12-21 05:47:51 +01:00
Release : 0
2011-07-04 16:15:15 +02:00
Summary : GNOME service to access online accounts
2013-07-31 20:56:03 +02:00
License : LGPL-2.0+
2011-07-04 16:15:15 +02:00
Group : System/GUI/GNOME
2011-12-21 05:47:51 +01:00
Url : http://www.gnome.org
2013-05-05 13:59:09 +02:00
Source : http://download.gnome.org/sources/gnome-online-accounts/3.9/%{name} -%{version} .tar.xz
2012-01-17 16:14:42 +01:00
Source99 : baselibs.conf
2013-09-02 09:48:14 +02:00
# PATCH-FIX-UPSTREAM goa-build-against-webkitgtk-2.1.90.patch bgo#707006 zaitor@opensuse.org -- Fix build against new webkit, can be dropped on next version of goa.
Patch0 : goa-build-against-webkitgtk-2.1.90.patch
2011-07-04 16:15:15 +02:00
BuildRequires : docbook-xsl-stylesheets
BuildRequires : gobject-introspection-devel
BuildRequires : gtk-doc
BuildRequires : intltool
2012-09-07 17:24:43 +02:00
BuildRequires : krb5-mini-devel
%if 0%{?with_twitter}
2011-07-21 10:38:12 +02:00
# 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
2012-09-07 17:24:43 +02:00
%endif
2013-03-16 19:31:29 +01:00
BuildRequires : translation-update-upstream
2011-07-04 16:15:15 +02:00
BuildRequires : update-desktop-files
2012-09-07 17:24:43 +02:00
BuildRequires : pkgconfig(gcr-3)
2013-03-13 23:54:44 +01:00
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.35
2011-07-04 16:15:15 +02:00
BuildRequires : pkgconfig(glib-2.0)
2012-09-07 17:24:43 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.5.1
2011-07-04 16:15:15 +02:00
BuildRequires : pkgconfig(json-glib-1.0)
2012-09-07 17:24:43 +02:00
BuildRequires : pkgconfig(libsecret-1)
2013-03-13 23:54:44 +01:00
BuildRequires : pkgconfig(libsoup-2.4) >= 2.41
2012-09-07 17:24:43 +02:00
BuildRequires : pkgconfig(libxml-2.0)
2011-07-04 16:15:15 +02:00
BuildRequires : pkgconfig(rest-0.7)
2013-08-23 10:19:44 +02:00
BuildRequires : pkgconfig(telepathy-glib)
2011-07-04 16:15:15 +02:00
BuildRequires : pkgconfig(webkitgtk-3.0)
2013-03-13 23:54:44 +01:00
# p11-kit is not 'strictly' seen a requirement, but without it none of the SSL/TLS
# Certificates are considered valid, which results in a really bad experience.
Requires : p11-kit >= 0.16
2011-07-04 16:15:15 +02:00
Recommends: %{name} -lang
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
gnome-online-accounts provides interfaces so applications and
libraries in GNOME can access the user's online accounts.
%package -n libgoa-1_0-0
Summary : GNOME service to access online accounts -- Client Library
Group : System/Libraries
Recommends: %{name}
%description -n libgoa-1_0-0
gnome-online-accounts provides interfaces so applications and
libraries in GNOME can access the user's online accounts.
2011-12-21 05:47:51 +01:00
%package -n typelib-1_0-Goa-1_0
Summary : GNOME service to access online accounts -- Introspection bindings
Group : System/Libraries
%description -n typelib-1_0-Goa-1_0
gnome-online-accounts provides interfaces so applications and
libraries in GNOME can access the user's online accounts.
This package provides the GObject Introspection bindings for the libgoa
client library.
2013-08-23 10:19:44 +02:00
%package -n libgoa-backend-1_0-1
2011-07-04 16:15:15 +02:00
Summary : GNOME service to access online accounts -- Backend Library
Group : System/Libraries
Recommends: %{name}
2013-08-23 10:19:44 +02:00
%description -n libgoa-backend-1_0-1
2011-07-04 16:15:15 +02:00
gnome-online-accounts provides interfaces so applications and
libraries in GNOME can access the user's online accounts.
%package devel
Summary : GNOME service to access online accounts -- Development Files
Group : Development/Libraries/GNOME
Requires : libgoa-1_0-0 = %{version}
2013-08-23 10:19:44 +02:00
Requires : libgoa-backend-1_0-1 = %{version}
2011-12-21 05:47:51 +01:00
Requires : typelib-1_0-Goa-1_0 = %{version}
2011-07-04 16:15:15 +02:00
%description devel
gnome-online-accounts provides interfaces so applications and
libraries in GNOME can access the user's online accounts.
%lang_package
%prep
%setup -q
2013-03-16 19:31:29 +01:00
translation-update-upstream
2013-09-02 09:48:14 +02:00
%patch0 -p1
2011-07-04 16:15:15 +02:00
%build
2012-09-07 17:24:43 +02:00
%if 0%{?with_twitter}
2011-07-21 10:38:12 +02:00
TWITTER=$(cat %{_datadir} /libsocialweb/keys/twitter)
2011-07-21 11:15:45 +02:00
if test " x $ T W I T T E R " = " x " ; then
echo " N o A P I k e y s f o r t w i t t e r . "
false
fi
2011-07-21 10:38:12 +02:00
TWITTER_KEY=$(echo $TWITTER | awk '{print $1}' )
TWITTER_SECRET=$(echo $TWITTER | awk '{print $2}' )
2012-09-07 17:24:43 +02:00
%endif
2011-07-04 16:15:15 +02:00
%configure \
--disable-static \
2011-07-21 10:38:12 +02:00
--enable-gtk-doc \
2012-09-07 17:24:43 +02:00
%if 0%{?with_twitter}
2011-07-21 10:38:12 +02:00
--enable-twitter \
--with-twitter-consumer-key=$TWITTER_KEY \
--with-twitter-consumer-secret=$TWITTER_SECRET \
2012-09-07 17:24:43 +02:00
%endif
2012-03-21 10:22:49 +01:00
--enable-facebook \
2011-12-21 05:47:51 +01:00
--enable-google \
2012-09-07 17:24:43 +02:00
--enable-windows-live \
--enable-kerberos \
2013-03-13 23:54:44 +01:00
--enable-exchange \
--enable-flickr \
--enable-owncloud \
--enable-imap-smtp
2011-07-04 16:15:15 +02:00
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name} %{?no_lang_C}
2013-08-23 10:19:44 +02:00
%find_lang gnome-online-accounts-tpaw %{name} .lang %{?no_lang_C}
2011-07-04 16:15:15 +02:00
%clean
rm -rf %{buildroot}
2013-08-23 10:19:44 +02:00
%post
%glib2_gsettings_schema_post
%postun
%glib2_gsettings_schema_postun
2011-07-04 16:15:15 +02:00
%post -n libgoa-1_0-0 -p /sbin/ldconfig
%postun -n libgoa-1_0-0 -p /sbin/ldconfig
2013-08-23 10:19:44 +02:00
%post -n libgoa-backend-1_0-1 -p /sbin/ldconfig
2011-07-04 16:15:15 +02:00
2013-08-23 10:19:44 +02:00
%postun -n libgoa-backend-1_0-1 -p /sbin/ldconfig
2011-07-04 16:15:15 +02:00
%files
%defattr (-,root,root)
%doc COPYING NEWS
%{_libexecdir} /goa-daemon
%{_datadir} /dbus-1/services/org.gnome.OnlineAccounts.service
2012-10-17 22:30:38 +02:00
%{_datadir} /gnome-online-accounts/
2011-07-04 16:15:15 +02:00
%{_datadir} /icons/hicolor/*/apps/goa-account*.png
2013-08-23 10:19:44 +02:00
%{_datadir} /icons/hicolor/*/apps/im-*.*
%{_datadir} /glib-2.0/schemas/org.gnome.telepathy-account-widgets.gschema.xml
2011-07-04 16:15:15 +02:00
%{_mandir} /man8/goa-daemon.8%{?ext_man}
%files -n libgoa-1_0-0
%defattr (-,root,root)
%{_libdir} /libgoa-1.0.so.*
2011-12-21 05:47:51 +01:00
%files -n typelib-1_0-Goa-1_0
%defattr (-,root,root)
%{_libdir} /girepository-1.0/Goa-1.0.typelib
2013-08-23 10:19:44 +02:00
%files -n libgoa-backend-1_0-1
2011-07-04 16:15:15 +02:00
%defattr (-,root,root)
%{_libdir} /libgoa-backend-1.0.so.*
%files devel
%defattr (-,root,root)
%doc %{_datadir} /gtk-doc/html/goa/
%{_includedir} /goa-1.0/
2013-03-13 23:54:44 +01:00
%dir %{_libdir} /goa-1.0
%{_libdir} /goa-1.0/include/
2011-07-04 16:15:15 +02:00
%{_libdir} /libgoa-1.0.so
%{_libdir} /libgoa-backend-1.0.so
%{_libdir} /pkgconfig/goa-1.0.pc
%{_libdir} /pkgconfig/goa-backend-1.0.pc
%{_datadir} /gir-1.0/*.gir
%files lang -f %{name}.lang
%changelog