File libkgapi.spec of Package libkgapi

#
# spec file for package libkgapi
#
# 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/
#


Name:           libkgapi
Version:        2.2.0
Release:        0
Summary:        Extension for accessing your Google data
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.progdan.cz/
Source0:        http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:  libkde4-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libqjson-devel
BuildRequires:  libxslt-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_akonadi_requires
%kde4_runtime_requires
%kde4_pimlibs_requires

%description
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks

%package -n libkgapi2-2
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE

%description -n libkgapi2-2
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks

%package devel
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE
Requires:       libkde4-devel
Requires:       libkgapi2-2 = %{version}
Requires:       libqjson-devel
Requires:       libxslt-devel
Provides:       libkgapi2-devel = %{version}
Obsoletes:      libkgapi2-devel < %{version}

%description devel
An extension for accessing some Google services, such as Google Calendar, Google Contacts and Google tasks

%lang_package
%prep
%setup -q -n %{name}-%{version}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install

%post -n libkgapi2-2 -p /sbin/ldconfig

%postun -n libkgapi2-2 -p /sbin/ldconfig

%files -n libkgapi2-2
%defattr(-,root,root)
%doc LICENSE README
%{_kde4_libdir}/libkgapi2.so.*

%files devel
%defattr(-,root,root)
%doc LICENSE README
%{_kde4_libdir}/libkgapi2.so
%{_kde4_includedir}/libkgapi2/
%{_kde4_includedir}/LibKGAPI2/
%{_libdir}/cmake/LibKGAPI2/

%changelog
openSUSE Build Service is sponsored by