File folks.spec of Package folks
#
# spec file for package folks
#
# Copyright (c) 2016 SUSE LINUX 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 43
%define with_zeitgeist 0
%if 0%{?suse_version} < 1315
%bcond_without libsocialweb
%else
%bcond_with libsocialweb
%endif
Name: folks
Version: 0.11.2
Release: 0
Summary: Library to create metacontacts from multiple sources
License: LGPL-2.1+
Group: System/Libraries
Url: http://telepathy.freedesktop.org/wiki/Folks
Source: http://download.gnome.org/sources/folks/0.11/%{name}-%{version}.tar.xz
BuildRequires: gobject-introspection-devel
BuildRequires: intltool >= 0.50.0
BuildRequires: readline-devel
BuildRequires: vala >= 0.22.0.28
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gee-0.8) >= 0.8.6
BuildRequires: pkgconfig(gobject-2.0) >= 2.40.0
BuildRequires: pkgconfig(libebook-1.2) >= 3.13.90
BuildRequires: pkgconfig(libebook-contacts-1.2) >= 3.7.90
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.13.90
%if %{with libsocialweb}
BuildRequires: pkgconfig(libsocialweb-client) >= 0.25.20
%endif
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(telepathy-glib) >= 0.19.9
%if %{with_zeitgeist}
BuildRequires: pkgconfig(zeitgeist-2.0) >= 0.9.14
%endif
BuildRequires: pkgconfig(tracker-sparql-1.0)
%description
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks%{soversion}
Summary: Library to create metacontacts from multiple sources
Group: System/Libraries
# To make lang package installable
Provides: %{name} = %{version}
# We assume that future -data packages remain backwards compatible
Requires: libfolks-data >= %{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-data
Summary: Library to create metacontacts from multiple sources -- Data files
Group: System/Libraries
%glib2_gsettings_schema_requires
%description -n libfolks-data
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides mandatory data files for the library to work.
%package -n typelib-1_0-Folks-0_6
Summary: Library to create metacontacts from multiple sources -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Folks-0_6
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides the GObject Introspection bindings for libfolks.
%package -n typelib-1_0-FolksEds-0_6
Summary: Library to create metacontacts from multiple sources -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-FolksEds-0_6
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides the GObject Introspection bindings for libfolks.
%if %{with libsocialweb}
%package -n typelib-1_0-FolksLibsocialweb-0_6
Summary: Library to create metacontacts from multiple sources -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-FolksLibsocialweb-0_6
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides the GObject Introspection bindings for libfolks.
%endif
%package -n typelib-1_0-FolksTelepathy-0_6
Summary: Library to create metacontacts from multiple sources -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-FolksTelepathy-0_6
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides the GObject Introspection bindings for libfolks.
%package -n typelib-1_0-FolksTracker-0_6
Summary: Library to create metacontacts from multiple sources -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-FolksTracker-0_6
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
This package provides the GObject Introspection bindings for libfolks.
%package -n libfolks-eds%{soversion}
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-tracker%{soversion}
Summary: Library to create metacontacts from multiple sources -- Tracker Backend
Group: System/Libraries
Supplements: packageand(libfolks%{soversion}:libtracker-sparql-1_0-0)
%description -n libfolks-tracker%{soversion}
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%if %{with libsocialweb}
%package -n libfolks-libsocialweb%{soversion}
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.
%endif
%package -n libfolks-telepathy%{soversion}
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
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
Summary: Library to create metacontacts from multiple sources -- Development Files
Group: Development/Libraries/GNOME
Requires: libfolks%{soversion} = %{version}
Requires: libfolks-eds%{soversion} = %{version}
%if %{with libsocialweb}
Requires: libfolks-libsocialweb%{soversion} = %{version}
%endif
Requires: libfolks-telepathy%{soversion} = %{version}
Requires: libfolks-tracker%{soversion} = %{version}
Requires: typelib-1_0-Folks-0_6 = %{version}
Requires: typelib-1_0-FolksEds-0_6 = %{version}
%if %{with libsocialweb}
Requires: typelib-1_0-FolksLibsocialweb-0_6 = %{version}
%endif
Requires: typelib-1_0-FolksTelepathy-0_6 = %{version}
Requires: typelib-1_0-FolksTracker-0_6 = %{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 \
--disable-static \
--enable-eds-backend \
--enable-tracker-backend \
%if %{without libsocialweb}
--disable-libsocialweb-backend \
%endif
--disable-fatal-warnings
%__make %{?_smp_mflags} 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-data
%glib2_gsettings_schema_post
%postun -n libfolks-data
%glib2_gsettings_schema_postun
%post -n libfolks-eds%{soversion} -p /sbin/ldconfig
%postun -n libfolks-eds%{soversion} -p /sbin/ldconfig
%post -n libfolks-tracker%{soversion} -p /sbin/ldconfig
%postun -n libfolks-tracker%{soversion} -p /sbin/ldconfig
%if %{with libsocialweb}
%post -n libfolks-libsocialweb%{soversion} -p /sbin/ldconfig
%postun -n libfolks-libsocialweb%{soversion} -p /sbin/ldconfig
%endif
%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}/libfolks-dummy.so.%{soversion}*
%dir %{_libdir}/folks
%dir %{_libdir}/folks/%{module_version}
%dir %{_libdir}/folks/%{module_version}/backends
%{_libdir}/folks/%{module_version}/backends/bluez/
%{_libdir}/folks/%{module_version}/backends/dummy/
%{_libdir}/folks/%{module_version}/backends/key-file/
%{_libdir}/folks/%{module_version}/backends/ofono/
%files -n libfolks-data
%defattr(-,root,root)
%{_datadir}/GConf/gsettings/folks.convert
%{_datadir}/glib-2.0/schemas/org.freedesktop.folks.gschema.xml
%files -n typelib-1_0-Folks-0_6
%defattr(-, root, root)
%{_libdir}/girepository-1.0/Folks-0.6.typelib
%{_libdir}/girepository-1.0/FolksDummy-0.6.typelib
%files -n typelib-1_0-FolksEds-0_6
%defattr(-, root, root)
%{_libdir}/girepository-1.0/FolksEds-0.6.typelib
%files -n typelib-1_0-FolksTracker-0_6
%defattr(-, root, root)
%{_libdir}/girepository-1.0/FolksTracker-0.6.typelib
%if %{with libsocialweb}
%files -n typelib-1_0-FolksLibsocialweb-0_6
%defattr(-, root, root)
%{_libdir}/girepository-1.0/FolksLibsocialweb-0.6.typelib
%endif
%files -n typelib-1_0-FolksTelepathy-0_6
%defattr(-, root, root)
%{_libdir}/girepository-1.0/FolksTelepathy-0.6.typelib
%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
%if %{with libsocialweb}
%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
%endif
%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 -n libfolks-tracker%{soversion}
%defattr(-, root, root)
%{_libdir}/libfolks-tracker.so.%{soversion}*
%dir %{_libdir}/folks/%{module_version}/backends/tracker
%{_libdir}/folks/%{module_version}/backends/tracker/tracker.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}/gir-1.0/FolksDummy-0.6.gir
%{_datadir}/gir-1.0/FolksEds-0.6.gir
%if %{with libsocialweb}
%{_datadir}/gir-1.0/FolksLibsocialweb-0.6.gir
%endif
%{_datadir}/gir-1.0/FolksTelepathy-0.6.gir
%{_datadir}/gir-1.0/FolksTracker-0.6.gir
%{_datadir}/vala/vapi/folks.*
%{_datadir}/vala/vapi/folks-dummy.*
%{_datadir}/vala/vapi/folks-eds.*
%if %{with libsocialweb}
%{_datadir}/vala/vapi/folks-libsocialweb.*
%endif
%{_datadir}/vala/vapi/folks-telepathy.*
%{_datadir}/vala/vapi/folks-tracker.*
%files lang -f %{name}.lang
%changelog