File libkpeople.spec of Package libkpeople

#
# spec file for package libkpeople
#
# Copyright (c) 2014 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 4

Name:           libkpeople
Version:        0.3.0
Release:        0
Summary:        Provides access to all contacts and the people who hold them
License:        LGPL-2.1+
Group:          Development/Libraries/Other
Url:            https://projects.kde.org/projects/playground/network/libkpeople
Source:         http://download.kde.org/unstable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:  libkde4-devel >= 4.10.1
BuildRequires:  libkdepimlibs4-devel
%if 0%{?suse_version} > 1310
BuildRequires:  baloo-devel
%endif
Obsoletes:      libkpeople3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A library that provides access to all contacts and the people who hold them

%package devel
Summary:        Provides access to all contacts and the people who hold them
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Requires:       libkdepimlibs4-devel

%description devel
A library that provides access to all contacts and the people who hold them

Development files for libkpeople

%package lang
Summary:        A library for accessing Facebook services
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}

%description lang
Provides translations to the package %{name}

%prep
%setup -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install

  %find_lang %{name} %{name}.lang

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_libdir}/libkpeople*.so.*
%{_kde4_appsdir}/kpeople/
%{_kde4_modulesdir}/akonadi_kpeople_plugin.so
%{_kde4_servicesdir}/akonadi_kpeople_plugin.desktop
%{_kde4_servicetypesdir}/kpeople_*.desktop
%{_kde4_servicetypesdir}/persondetailsplugin.desktop

%files devel
%defattr(-,root,root)
%doc COPYING
%{_kde4_libdir}/libkpeople.so
%{_kde4_libdir}/libkpeoplewidgets.so
%{_kde4_libdir}/cmake/KPeople/
%{_kde4_includedir}/KPeople/
%{_kde4_includedir}/kpeople/

%changelog
openSUSE Build Service is sponsored by