LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kdepimlibs4.spec of Package kdepimlibs4 (Project openSUSE:Factory)

#
# spec file for package kdepimlibs4
#
# 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:           kdepimlibs4
Version:        4.9.3
Release:        0
Summary:        KDE PIM Libraries
License:        LGPL-2.1+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source0:        kdepimlibs-%{version}.tar.xz
Patch0:         4_7_BRANCH.diff
Patch1:         disable-pth-build.diff
BuildRequires:  boost-devel
BuildRequires:  cyrus-sasl-devel
BuildRequires:  fdupes
BuildRequires:  gpgme-devel
BuildRequires:  libakonadiprotocolinternals-devel >= 1.8.0
BuildRequires:  libassuan-devel
BuildRequires:  libkde4-devel
BuildRequires:  libprison-devel
BuildRequires:  libpth-devel
BuildRequires:  openldap2-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(libical)
Requires:       kdelibs4 >= %( echo `rpm -q --queryformat '%{VERSION}' libkde4-devel`)
Recommends:     cyrus-sasl-crammd5
Recommends:     cyrus-sasl-digestmd5
Recommends:     cyrus-sasl-plain
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info
%requires_ge        libical0

%description
This package contains the basic packages for KDE PIM applications.

%prep
%setup -q -n kdepimlibs-%{version}
%patch0 -p1
%patch1

%build
  %cmake_kde4 -d build -- -DKDE4_ENABLE_FINAL=1
  %make_jobs

%install
  cd build
  %make_install

  # we don't need it
  %kde_post_install
  %fdupes %{buildroot}%{_includedir}/KDE

%post
/sbin/ldconfig
%{_kde4_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :

%postun
/sbin/ldconfig
%{_kde4_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :

%clean
  rm -rf %{buildroot}

%package -n libkdepimlibs4
Summary:        KDE PIM Libraries
Group:          System/GUI/KDE
%requires_ge    libical0
%requires_ge    libqt4-x11

%description -n libkdepimlibs4
This package contains the basic libraries for KDE PIM applications.

%post -n libkdepimlibs4 -p /sbin/ldconfig

%postun -n libkdepimlibs4 -p /sbin/ldconfig

%files -n libkdepimlibs4
%defattr(-,root,root)
%doc COPYING COPYING.BSD COPYING.LIB
%{_kde4_libdir}/libgpgme++-pthread.so.*
%{_kde4_libdir}/libgpgme++.so.*
%{_kde4_libdir}/libkabc.so.*
%{_kde4_libdir}/libkabc_file_core.so.*
%{_kde4_libdir}/libkalarmcal.so.*
%{_kde4_libdir}/libkblog.so.*
%{_kde4_libdir}/libkcal.so.*
%{_kde4_libdir}/libkcalcore.so.*
%{_kde4_libdir}/libkcalutils.so.*
%{_kde4_libdir}/libkholidays.so.*
%{_kde4_libdir}/libkimap.so.*
%{_kde4_libdir}/libkldap.so.*
%{_kde4_libdir}/libkmbox.so.*
%{_kde4_libdir}/libkmime.so.*
%{_kde4_libdir}/libkontactinterface.so.*
%{_kde4_libdir}/libkpimidentities.so.*
%{_kde4_libdir}/libkpimtextedit.so.*
%{_kde4_libdir}/libkpimutils.so.*
%{_kde4_libdir}/libkresources.so.*
%{_kde4_libdir}/libktnef.so.*
%{_kde4_libdir}/libkxmlrpcclient.so.*
%{_kde4_libdir}/libmailtransport.so.*
%{_kde4_libdir}/libmicroblog.so.*
%{_kde4_libdir}/libqgpgme.so.*
%{_kde4_libdir}/libsyndication.so.*

%package -n libakonadi4
Summary:        PIM Storage Service Client Libraries
Group:          System/GUI/KDE
Requires:       libakonadiprotocolinternals1 >= 1.6.0
Requires:       libkdepimlibs4 = %{version}
%requires_ge    libqt4-x11

%description -n libakonadi4
This package contains the libraries of Akonadi, the KDE PIM storage
service.

%post -n libakonadi4 -p /sbin/ldconfig

%postun -n libakonadi4 -p /sbin/ldconfig

%files -n libakonadi4
%defattr(-,root,root)
%doc COPYING COPYING.LIB
%{_kde4_libdir}/libakonadi-calendar.so.*
%{_kde4_libdir}/libakonadi-contact.so.*
%{_kde4_libdir}/libakonadi-kabc.so.*
%{_kde4_libdir}/libakonadi-kcal.so.*
%{_kde4_libdir}/libakonadi-kde.so.*
%{_kde4_libdir}/libakonadi-kmime.so.*
%{_kde4_libdir}/libakonadi-notes.so.*

%package -n libkdepimlibs4-devel
Summary:        KDE PIM Libraries: Build Environment
Group:          Development/Libraries/KDE
Requires:       boost-devel
Requires:       kdepimlibs4 = %{version}
Requires:       libakonadi4 = %{version}
Requires:       libakonadiprotocolinternals-devel
Requires:       libkde4-devel
Requires:       libkdepimlibs4 = %{version}
Requires:       libprison-devel
Requires:       openldap2-devel
Requires:       pkgconfig(libical)

%description -n libkdepimlibs4-devel
This package contains all necessary include files and libraries needed
to develop KDE PIM applications.

%files -n libkdepimlibs4-devel
%defattr(-,root,root)
%doc COPYING COPYING.BSD COPYING.LIB
%{_kde4_appsdir}/cmake
%{_kde4_includedir}/*
%dir %{_kde4_libdir}/cmake
%{_kde4_libdir}/cmake/KdepimLibs
%dir %{_kde4_libdir}/gpgmepp
%{_kde4_libdir}/gpgmepp/GpgmeppConfig.cmake
%{_kde4_libdir}/gpgmepp/GpgmeppLibraryDepends.cmake
%{_kde4_libdir}/libakonadi-calendar.so
%{_kde4_libdir}/libakonadi-contact.so
%{_kde4_libdir}/libakonadi-kabc.so
%{_kde4_libdir}/libakonadi-kcal.so
%{_kde4_libdir}/libakonadi-kde.so
%{_kde4_libdir}/libakonadi-kmime.so
%{_kde4_libdir}/libakonadi-notes.so
%{_kde4_libdir}/libgpgme++-pthread.so
%{_kde4_libdir}/libgpgme++.so
%{_kde4_libdir}/libkabc.so
%{_kde4_libdir}/libkabc_file_core.so
%{_kde4_libdir}/libkalarmcal.so
%{_kde4_libdir}/libkblog.so
%{_kde4_libdir}/libkcal.so
%{_kde4_libdir}/libkcalcore.so
%{_kde4_libdir}/libkcalutils.so
%{_kde4_libdir}/libkholidays.so
%{_kde4_libdir}/libkimap.so
%{_kde4_libdir}/libkldap.so
%{_kde4_libdir}/libkmbox.so
%{_kde4_libdir}/libkmime.so
%{_kde4_libdir}/libkontactinterface.so
%{_kde4_libdir}/libkpimidentities.so
%{_kde4_libdir}/libkpimtextedit.so
%{_kde4_libdir}/libkpimutils.so
%{_kde4_libdir}/libkresources.so
%{_kde4_libdir}/libktnef.so
%{_kde4_libdir}/libkxmlrpcclient.so
%{_kde4_libdir}/libmailtransport.so
%{_kde4_libdir}/libmicroblog.so
%{_kde4_libdir}/libqgpgme.so
%{_kde4_libdir}/libsyndication.so

%files
%defattr(-,root,root)
%doc COPYING COPYING.BSD COPYING.LIB
%exclude %{_kde4_appsdir}/cmake
%doc %lang(en) %{_kde4_htmldir}/en/kcontrol
%doc %lang(en) %{_kde4_htmldir}/en/kioslave
%{_kde4_modulesdir}
%{_kde4_appsdir}
%{_kde4_configkcfgdir}/mailtransport.kcfg
%{_kde4_configkcfgdir}/recentcontactscollections.kcfg
%{_kde4_configkcfgdir}/resourcebase.kcfg
%{_kde4_configkcfgdir}/specialmailcollections.kcfg
%{_kde4_servicesdir}
%{_kde4_servicetypesdir}
%{_datadir}/dbus-1/
%{_datadir}/mime/packages/kdepimlibs-mime.xml

%changelog