File akonadi-googledata.spec of Package akonadi-googledata
# norootforbuild
Name: akonadi-googledata
Version: 1.2.0
Release: 1.0
License: GNU LGPL v2.1 or later
Url: http://code.google.com/p/libgcal/
Group: System/GUI/KDE
Source: http://libgcal.googlecode.com/files/akonadi-googledata-%{version}.tar.bz2
Patch0: fix_events.diff
BuildRequires: boost-devel
BuildRequires: libakonadiprotocolinternals-devel
BuildRequires: libgcal-devel
BuildRequires: libkde4-devel
BuildRequires: libkdepimlibs4-devel
BuildRequires: libxslt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Google Contacts and Calendar Akonadi Resource
%kde4_akonadi_requires
%kde4_pimlibs_requires
%kde4_runtime_requires
%description
An akonadi datasource for Google calendars and contacts.
%lang_package
%prep
%setup -q
%patch0
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%kde4_makeinstall
popd
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin
%kde_post_install
%find_lang akonadi_gcal_resource %{name}.lang
%clean
rm -rf %{buildroot}
%files lang -f %{name}.lang
%files
%defattr(-,root,root)
%doc ChangeLog COPYING README
%{_bindir}/akonadi_gcal_resource
%{_bindir}/akonadi_googledata_resource
%dir %{_datadir}/akonadi
%dir %{_datadir}/akonadi/agents
%{_datadir}/akonadi/agents/gcalresource.desktop
%{_datadir}/akonadi/agents/googledataresource.desktop