File folks.spec of Package folks
#
# spec file for package folks (Version 0.2.1)
#
# Copyright (c) 2010 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 module_version 16
Name: folks
Version: 0.2.1
Release: 1
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
BuildRequires: gobject-introspection-devel
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gee-1.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(telepathy-glib)
BuildRequires: vala-devel
%description
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks1
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources
Group: System/Libraries
%description -n libfolks1
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%package -n libfolks-telepathy1
License: LGPLv2.1+
Summary: Library to create metacontacts from multiple sources -- Telepathy Backend
Group: System/Libraries
%description -n libfolks-telepathy1
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: libfolks1 = %{version}
Requires: libfolks-telepathy1 = %{version}
%description devel
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers) to create metacontacts.
%prep
%setup -q
%build
%configure \
--disable-static
%__make %{?_smp_flags}
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%post -n libfolks1 -p /sbin/ldconfig
%postun -n libfolks1 -p /sbin/ldconfig
%post -n libfolks-telepathy1 -p /sbin/ldconfig
%postun -n libfolks-telepathy1 -p /sbin/ldconfig
%files -n libfolks1
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libfolks.so.*
%files -n libfolks-telepathy1
%defattr(-, root, root)
%{_libdir}/libfolks-telepathy.so.*
%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/libfolks-backend-key-file.so
%dir %{_libdir}/folks/%{module_version}/backends/telepathy
%{_libdir}/folks/%{module_version}/backends/telepathy/libfolks-backend-telepathy.so
%files tools
%defattr(-, root, root)
%{_bindir}/folks-import
%files devel
%defattr(-, root, root)
%{_includedir}/folks/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/vala/vapi/folks.*
%{_datadir}/vala/vapi/folks-telepathy.*
%changelog