LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libsocialweb.spec of Package libsocialweb (Project GNOME:Factory)

#
# spec file for package libsocialweb
#
# Copyright (c) 2013 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:           libsocialweb
Version:        0.25.21
Release:        0
Summary:        A personal social data server
License:        LGPL-2.1
Group:          System/Libraries
Url:            http://git.gnome.org/browse/libsocialweb/
Source0:        http://download.gnome.org/sources/libsocialweb/0.25/%{name}-%{version}.tar.xz
Source1:        README.branding
# PATCH-FIX-UPSTREAM libsocialweb-annotations.patch dimstar@opensuse.org -- Fix namespacing of introspection annotations, taken from upstream git.
Patch0:         libsocialweb-annotations.patch
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  libxslt
BuildRequires:  translation-update-upstream
BuildRequires:  vala
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(rest-extras-0.7)
Requires:       %{name}-branding = %{version}
Recommends:     %{name}-lang

%description
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

%package branding-upstream
Summary:        A personal social data server -- API keys from upstream
Group:          System/Libraries
Requires:       %{name} = %{version}
Provides:       %{name}-branding = %{version}
Conflicts:      otherproviders(%{name}-branding)
Supplements:    packageand(%{name}:branding-upstream)
BuildArch:      noarch
#BRAND: Branding packages should install API keys in
#BRAND: /usr/share/libsocialweb/keys. See README.branding for more
#BRAND: details.

%description branding-upstream
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

This package provides API keys from upstream, for the web services
accessible with libsocialweb.

%package -n libsocialweb0
Summary:        A personal social data server -- Library for Services
Group:          Development/Libraries/GNOME

%description -n libsocialweb0
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

This package contains libraries used by libsocialweb services.

%package -n libsocialweb-client2
Summary:        A personal social data server -- Client Library
Group:          Development/Libraries/GNOME
# Clients do need the server to do something useful
Recommends:     %{name}

%description -n libsocialweb-client2
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

This package contains libraries used by clients willing to use
libsocialweb features.

%package -n typelib-1_0-SocialWebClient-0_25
Summary:        A personal social data server -- Client Library, Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-SocialWebClient-0_25
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

This package provides the GObject Introspection bindings for the
client library.

%package devel
Summary:        A personal social data server -- Development Files
Group:          Development/Libraries/GNOME
Requires:       libsocialweb-client2 = %{version}
Requires:       libsocialweb0 = %{version}
Requires:       typelib-1_0-SocialWebClient-0_25 = %{version}

%description devel
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
cp %{SOURCE1} .

%build
%configure --disable-static \
    --with-gnome \
    --with-online=networkmanager \
    --enable-all-services \
    --enable-vala-bindings
make %{?jobs:-j %jobs} V=1

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
# Create directory where API keys will be stored
mkdir %{buildroot}%{_datadir}/libsocialweb/keys
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}/gtk-doc

%post -n libsocialweb0 -p /sbin/ldconfig

%postun -n libsocialweb0 -p /sbin/ldconfig

%post -n libsocialweb-client2 -p /sbin/ldconfig

%postun -n libsocialweb-client2 -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
# dbus core service
%{_libexecdir}/libsocialweb-core
%{_datadir}/dbus-1/services/libsocialweb.service
%dir %{_libdir}/libsocialweb
%dir %{_libdir}/libsocialweb/services
%dir %{_datadir}/libsocialweb
%dir %{_datadir}/libsocialweb/keys
%dir %{_datadir}/libsocialweb/services
# plugins for various web services
# Explicitly list services to make sure we don't lose any
%{_libdir}/libsocialweb/services/libfacebook.so
%{_datadir}/libsocialweb/services/facebook.keys
%{_libdir}/libsocialweb/services/libflickr.so
%{_datadir}/libsocialweb/services/flickr.keys
%{_libdir}/libsocialweb/services/liblastfm.so
%{_datadir}/libsocialweb/services/lastfm.keys
%{_datadir}/libsocialweb/services/lastfm.png
%{_libdir}/libsocialweb/services/libmyspace.so
%{_datadir}/libsocialweb/services/myspace.keys
%{_datadir}/libsocialweb/services/myspace.png
%{_libdir}/libsocialweb/services/libphotobucket.so
%{_datadir}/libsocialweb/services/photobucket.keys
%{_libdir}/libsocialweb/services/libplurk.so
%{_datadir}/libsocialweb/services/plurk.keys
%{_datadir}/libsocialweb/services/plurk.png
%{_libdir}/libsocialweb/services/libsina.so
%{_datadir}/libsocialweb/services/sina.keys
%{_datadir}/libsocialweb/services/sina.png
%{_libdir}/libsocialweb/services/libsmugmug.so
%{_datadir}/libsocialweb/services/smugmug.keys
%{_libdir}/libsocialweb/services/libtwitter.so
%{_datadir}/libsocialweb/services/twitter.keys
%{_datadir}/libsocialweb/services/twitter.png
%{_libdir}/libsocialweb/services/libvimeo.so
%{_datadir}/libsocialweb/services/vimeo.keys
%{_datadir}/libsocialweb/services/vimeo.png
%{_libdir}/libsocialweb/services/libyoutube.so
%{_datadir}/libsocialweb/services/youtube.keys
%{_datadir}/libsocialweb/services/youtube.png

%files branding-upstream
%defattr(-,root,root,-)
%doc README.branding

%files -n libsocialweb0
%defattr(-,root,root,-)
%{_libdir}/libsocialweb.so.*
%{_libdir}/libsocialweb-keyfob.so.*
%{_libdir}/libsocialweb-keystore.so.*

%files -n libsocialweb-client2
%defattr(-,root,root,-)
%{_libdir}/libsocialweb-client.so.*

%files -n typelib-1_0-SocialWebClient-0_25
%defattr(-,root,root)
%{_libdir}/girepository-1.0/SocialWebClient-0.25.typelib

%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/libsocialweb/
%{_libdir}/pkgconfig/libsocialweb-client.pc
%{_libdir}/pkgconfig/libsocialweb-keyfob.pc
%{_libdir}/pkgconfig/libsocialweb-keystore.pc
%{_libdir}/pkgconfig/libsocialweb-module.pc
%{_datadir}/gir-1.0/SocialWebClient-0.25.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/*.deps
%{_datadir}/vala/vapi/*.vapi
%doc %{_datadir}/gtk-doc/html/libsocialweb/
%doc %{_datadir}/gtk-doc/html/libsocialweb-dbus/
%doc %{_datadir}/gtk-doc/html/libsocialweb-client/

%files lang -f %{name}.lang

%changelog