File akonadi-google.spec of Package akonadi-google

#
# spec file for package akonadi-google
#
# Copyright (c) 2012 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:           akonadi-google
Version:        0.3.1
Release:        0
Summary:        Extension for accessing your Google data
License:        GPL-3.0+
Group:          System/GUI/KDE
Url:            http://www.progdan.cz/
Source0:        http://www.progdan.cz/wp-content/uploads/%{name}-%{version}.tar.gz
Source1:        %{name}-lang.tar.bz2
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libqjson-devel
BuildRequires:  libxslt-devel
Recommends:     %{name}-lang
Provides:       akonadi-googledata = 1.2.0
Obsoletes:      akonadi-googledata <= 1.2.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 -n libkgoogle0
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE

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

%package -n libkgoogle-devel
Summary:        Akonadi resource to access your Google data
Group:          Development/Libraries/KDE
Requires:       libkde4-devel
Requires:       libkgoogle0 = %{version}
Requires:       libqjson-devel
Requires:       libxslt-devel

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

%lang_package

%prep
%setup -q -a 1
echo "add_subdirectory( po )" >> CMakeLists.txt

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  %kde_post_install
  cd ..
  %fdupes -s %{buildroot}

  %find_lang akonadi_akonadi-google_resource %{name}.lang

%post -n libkgoogle0 -p /sbin/ldconfig

%postun -n libkgoogle0 -p /sbin/ldconfig

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%doc CHANGELOG LICENSE README TODO
%dir %{_datadir}/akonadi
%dir %{_datadir}/akonadi/agents
%{_datadir}/akonadi/agents/googlecalendarresource.desktop
%{_datadir}/akonadi/agents/googlecontactsresource.desktop
%{_kde4_bindir}/akonadi_google*_resource

%files -n libkgoogle0
%defattr(-,root,root)
%doc LICENSE README
%{_kde4_libdir}/libkgoogle.so.0*

%files -n libkgoogle-devel
%defattr(-,root,root)
%doc LICENSE README
%{_kde4_appsdir}/cmake/modules/FindLibKGoogle.cmake
%{_kde4_libdir}/libkgoogle.so
%{_kde4_libdir}/pkgconfig/libkgoogle.pc
%{_kde4_includedir}/libkgoogle/

%changelog
openSUSE Build Service is sponsored by