File libkgapi.spec of Package libkgapi

#
# spec file for package libkgapi
#
# Copyright (c) 2013 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.0.1
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/libkgapi/%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:  libkde4-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libqjson-devel
BuildRequires:  libxslt-devel
Provides:       akonadi-googledata = 1.2.0
Obsoletes:      akonadi-googledata < 1.2.0
Provides:       akonadi-google = 0.3.1
Obsoletes:      akonadi-google < 0.3.1
Provides:       libkgoogle = 0.4.0
Obsoletes:      libkgoogle < 0.4.0
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 devel
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE
Requires:       libkgapi1-devel
Requires:       libkgapi2-devel

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

%package -n libkgapi1
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE
Obsoletes:      libkgapi0

%description -n libkgapi1
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 -n libkgapi1-devel
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE
Requires:       libkde4-devel
Requires:       libkgapi1 = %{version}
Requires:       libqjson-devel
Requires:       libxslt-devel
Obsoletes:      akonadi-google-devel < %{version}
Provides:       akonadi-google-devel = %{version}
Obsoletes:      libkgoogle-devel < %{version}
Provides:       libkgoogle-devel = %{version}

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

%package -n libkgapi2-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

%description -n libkgapi2-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
  cd build
  %make_install
  %kde_post_install
  cd ..

%post -n libkgapi1 -p /sbin/ldconfig

%postun -n libkgapi1 -p /sbin/ldconfig

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

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

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

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

%files -n libkgapi1-devel
%defattr(-,root,root)
%doc LICENSE README
%{_kde4_libdir}/libkgapi.so
%{_kde4_libdir}/pkgconfig/libkgapi.pc
%{_kde4_includedir}/libkgapi/
%{_libdir}/cmake/LibKGAPI/

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

%files devel
%defattr(-,root,root)
%doc LICENSE README

%changelog
openSUSE Build Service is sponsored by