File folks.spec of Package folks
#
# spec file for package folks
#
# Copyright (c) 2011 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/
#
%define soversion 25
%define module_version 27
Name: folks
Version: 0.6.3.2
Release: 1
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources
Group: System/Libraries
Url: http://telepathy.freedesktop.org/wiki/Folks
Source: http://download.gnome.org/sources/folks/0.6/%{name}-%{version}.tar.bz2
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: readline-devel
BuildRequires: vala >= 0.13.4
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gee-1.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libebook-1.2) >= 3.1.5
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.1.5
BuildRequires: pkgconfig(libsocialweb-client)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(telepathy-glib)
%description
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks%{soversion}
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources
Group: System/Libraries
# To make lang package installable
Provides: %{name} = %{version}
Recommends: %{name}-lang
%description -n libfolks%{soversion}
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks-eds%{soversion}
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources -- EDS Backend
Group: System/Libraries
Supplements: packageand(libfolks%{soversion}:evolution-data-server)
%description -n libfolks-eds%{soversion}
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks-libsocialweb%{soversion}
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources -- libsocialweb Backend
Group: System/Libraries
Supplements: packageand(libfolks%{soversion}:libsocialweb)
%description -n libfolks-libsocialweb%{soversion}
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks-telepathy%{soversion}
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources -- Telepathy Backend
Group: System/Libraries
%description -n libfolks-telepathy%{soversion}
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package tools
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources -- Tools
Group: Development/Libraries/GNOME
# the folks-import tool is useful for old pidgin users
Supplements: packageand(libfolks1:pidgin)
%description tools
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides tools based on libfolks, like an importer for Pidgin
metacontacts.
%package devel
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources -- Development Files
Group: Development/Libraries/GNOME
Requires: libfolks%{soversion} = %{version}
Requires: libfolks-eds%{soversion} = %{version}
Requires: libfolks-libsocialweb%{soversion} = %{version}
Requires: libfolks-telepathy%{soversion} = %{version}
%description devel
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%lang_package
%prep
%setup -q
%build
%configure \
--enable-vala \
--disable-static \
--enable-eds-backend
%__make %{?_smp_flags} V=1
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang folks %{?no_lang_C}
%post -n libfolks%{soversion} -p /sbin/ldconfig
%postun -n libfolks%{soversion} -p /sbin/ldconfig
%post -n libfolks-eds%{soversion} -p /sbin/ldconfig
%postun -n libfolks-eds%{soversion} -p /sbin/ldconfig
%post -n libfolks-libsocialweb%{soversion} -p /sbin/ldconfig
%postun -n libfolks-libsocialweb%{soversion} -p /sbin/ldconfig
%post -n libfolks-telepathy%{soversion} -p /sbin/ldconfig
%postun -n libfolks-telepathy%{soversion} -p /sbin/ldconfig
%files -n libfolks%{soversion}
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libfolks.so.%{soversion}*
%{_libdir}/girepository-1.0/Folks-0.6.typelib
%dir %{_libdir}/folks
%dir %{_libdir}/folks/%{module_version}
%dir %{_libdir}/folks/%{module_version}/backends
%dir %{_libdir}/folks/%{module_version}/backends/key-file
%{_libdir}/folks/%{module_version}/backends/key-file/key-file.so
%files -n libfolks-eds%{soversion}
%defattr(-, root, root)
%{_libdir}/libfolks-eds.so.%{soversion}*
%dir %{_libdir}/folks/%{module_version}/backends/eds
%{_libdir}/folks/%{module_version}/backends/eds/eds.so
%files -n libfolks-libsocialweb%{soversion}
%defattr(-, root, root)
%{_libdir}/libfolks-libsocialweb.so.%{soversion}*
%dir %{_libdir}/folks/%{module_version}/backends/libsocialweb
%{_libdir}/folks/%{module_version}/backends/libsocialweb/libsocialweb.so
%files -n libfolks-telepathy%{soversion}
%defattr(-, root, root)
%{_libdir}/libfolks-telepathy.so.%{soversion}*
%dir %{_libdir}/folks/%{module_version}/backends/telepathy
%{_libdir}/folks/%{module_version}/backends/telepathy/telepathy.so
%files tools
%defattr(-, root, root)
%{_bindir}/folks-import
%{_bindir}/folks-inspect
%files devel
%defattr(-, root, root)
%{_includedir}/folks/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/Folks-0.6.gir
%{_datadir}/vala/vapi/folks.*
%{_datadir}/vala/vapi/folks-eds.*
%{_datadir}/vala/vapi/folks-libsocialweb.*
%{_datadir}/vala/vapi/folks-telepathy.*
%files lang -f %{name}.lang
%changelog