%define akonadi_subpkg 1
%define akonadi_version_min 1.5.80
%global akonadi_version %(pkg-config --modversion akonadi 2>/dev/null || echo %{akonadi_version_min})
Name: kdepimlibs
Summary: KDE PIM Libraries
Summary(ja): KDE PIM ライブラリ
Version: 4.9.5
Release: 1%{?_dist_release}
# http://techbase.kde.org/Policies/Licensing_Policy
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.kde.org/
Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdepimlibs-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: akonadi-devel >= %{akonadi_version_min}
BuildRequires: libboost-devel >= 1.34.0
BuildRequires: libboost-graph >= 1.34.0
BuildRequires: cyrus-sasl-devel
BuildRequires: gpgme-devel >= 1.1.7
BuildRequires: kdelibs4-devel >= %{version}
BuildRequires: libXpm-devel libXtst-devel
BuildRequires: openldap-devel
BuildRequires: prison-devel
BuildRequires: shared-mime-info
BuildRequires: shared-desktop-ontologies-devel >= 0.4
BuildRequires: soprano-devel
BuildRequires: libical-devel >= 0.33
BuildRequires: libuuid-devel
BuildRequires: doxygen
BuildRequires: graphviz
#BuildRequires: qt4-doc
BuildRequires: texlive-collection-latex
%if !%{akonadi_subpkg}
Requires: akonadi >= %{akonadi_version}
Provides: %{name}-akonadi = %{version}-%{release}
%endif
Requires: kdelibs4 >= %{version}
# for kio_smtp plain/login sasl plugins
Requires: cyrus-sasl-plain
# stuff moved kdepim -> kdepimlibs, help upgrade path
Conflicts: kdepim < 4.2.90
%description
Personal Information Management (PIM) libraries for KDE.
%description -l ja
KDE の個人情報管理(PIM)に使用するライブラリです.
%package devel
Summary: Development files for %{name}
Summary(ja): %{name} の開発用ファイル
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%if %{akonadi_subpkg}
Requires: %{name}-akonadi = %{version}-%{release}
%endif
Obsoletes: kdepimlibs4-devel < %{version}-%{release}
Provides: kdepimlibs4-devel = %{version}-%{release}
Requires: kdelibs4-devel
Requires: libboost-devel
%description devel
Header files for developing applications using %{name}.
%description -l ja devel
%{name} の開発用ファイルです.
%package akonadi
Summary: Akonadi runtime support for %{name}
Summary(ja): KDE PIM ライブラリの Akonadi サポート
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: akonadi >= %{akonadi_version}
%description akonadi
%{summary}.
%description -l ja akonadi
KDE PIM ライブラリの Akonadi サポートです.
%package apidocs
Summary: kdepimlibs API documentation
Summary(ja): KDE PIM ライブラリ API ドキュメント
Group: Documentation
#Requires: kde-filesystem
BuildArch: noarch
%description apidocs
This package includes the kdepimlibs API documentation in HTML
format for easy browsing.
%prep
%setup -q -n kdepimlibs-%{version}
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake \
-DCMAKE_BUILD_TYPE=release \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
-DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
..
popd
make %{?_smp_mflags} -C %{_target_platform}
# build apidocs
export QTDOCDIR=`pkg-config --variable=docdir Qt`
kde4-doxygen.sh --doxdatadir=%{_docdir}/HTML/en/common .
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
# hack around HTML doc multilib conflicts
for doxy_hack in kcontrol/kresources ; do
pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en/${doxy_hack}
bunzip2 index.cache.bz2
sed -i -e 's!!!g' index.cache
bzip2 -9 index.cache
done
popd
# move devel symlinks
mkdir -p $RPM_BUILD_ROOT%{_libdir}/kde4/devel
pushd $RPM_BUILD_ROOT%{_libdir}
for i in lib*.so
do
case "$i" in
# conflicts with kdelibs3
libkabc.so | libkresources.so)
linktarget=`readlink "$i"`
rm -f "$i"
ln -sf "../../$linktarget" "kde4/devel/$i"
;;
# conflicts with kdepim3 (compat)
libkcal.so)
linktarget=`readlink "$i"`
rm -f "$i"
ln -sf "../../$linktarget" "kde4/devel/$i"
;;
# conflicts with kdepim(3)
libgpgme++.so | libkmime.so | libkpimidentities.so | libktnef.so | libqgpgme.so)
linktarget=`readlink "$i"`
rm -f "$i"
ln -sf "../../$linktarget" "kde4/devel/$i"
;;
esac
done
popd
# install apidocs
mkdir -p $RPM_BUILD_ROOT%{_docdir}/HTML/en
cp -prf kdepimlibs-%{version}-apidocs $RPM_BUILD_ROOT%{_docdir}/HTML/en/kdepimlibs-apidocs
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_datadir}/kde4/apps/kabc
%{_datadir}/kde4/apps/kconf_update/*
%{_datadir}/config.kcfg/*
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/kde4/services/*
%{_datadir}/kde4/servicetypes/*
%{_libdir}/lib*.so.*
%{_libdir}/kde4/*.so
%{_libdir}/kde4/plugins/designer/kholidayswidgets.so
%{_docdir}/HTML/en/kcontrol/
%{_docdir}/HTML/en/kioslave/
%{_datadir}/kde4/apps/libkholidays/
%{_datadir}/mime/packages/kdepimlibs-mime.xml
%if %{akonadi_subpkg}
%exclude %{_libdir}/libakonadi-*.so.*
%exclude %{_libdir}/libmailtransport.so.*
%exclude %{_libdir}/kde4/kcm_mailtransport.so
%exclude %{_datadir}/config.kcfg/mailtransport.kcfg
%exclude %{_datadir}/kde4/apps/kconf_update/mailtransports.upd
%exclude %{_datadir}/kde4/apps/kconf_update/migrate-transports.pl
%exclude %{_datadir}/kde4/services/kcm_mailtransport.desktop
%files akonadi
%defattr(-,root,root,-)
%{_libdir}/libakonadi-*.so.*
%{_libdir}/libmailtransport.so.*
%{_libdir}/kde4/kcm_mailtransport.so
%{_datadir}/config.kcfg/mailtransport.kcfg
%{_datadir}/kde4/apps/kconf_update/mailtransports.upd
%{_datadir}/kde4/apps/kconf_update/migrate-transports.pl
%{_datadir}/kde4/services/kcm_mailtransport.desktop
%{_datadir}/kde4/apps/akonadi
%{_datadir}/kde4/apps/akonadi-kde
%else
%{_datadir}/kde4/apps/akonadi
%{_datadir}/kde4/apps/akonadi-kde
%endif
%files devel
%defattr(-,root,root,-)
%{_datadir}/kde4/apps/cmake/modules/*
%{_includedir}/kde4/*
%{_libdir}/kde4/devel/lib*.so
%{_libdir}/lib*.so
%{_libdir}/cmake/KdepimLibs*
%{_libdir}/gpgmepp/
%files apidocs
%defattr(-,root,root,-)
%{_docdir}/HTML/en/kdepimlibs-apidocs/.
%changelog
* Wed Jan 02 2013 Yoji TOYODA 4.9.5-1
- new upstream release
* Thu Nov 08 2012 Yoji TOYODA 4.9.3-1
- new upstream release
* Sun Oct 07 2012 Yoji TOYODA 4.9.2-1
- new upstream release
* Wed Sep 05 2012 Yoji TOYODA 4.9.1-1
- new upstream release
* Mon Aug 06 2012 Yoji TOYODA 4.9.0-1
- new upstream release
* Sun Dec 11 2011 Ryoichi INAGAKI 4.7.4-1
- new upstream release
* Sat Oct 15 2011 Ryoichi INAGAKI 4.7.2-1
- new upstream release
* Sun Jul 31 2011 Ryoichi INAGAKI 4.7.0-1
- new upstream release
* Mon Jun 13 2011 Ryoichi INAGAKI 4.6.4-1
- new upstream release
* Tue Apr 05 2011 Yoji TOYODA - 4.6.1-2
- add BuildRequires: libuuid-devel
* Fri Mar 11 2011 Ryoichi INAGAKI - 4.6.1-1
- new upstream release
- changed apidocs subpackage to noarch
* Sun Feb 27 2011 Ryoichi INAGAKI - 4.6.0-2
- added BR: soprano-devel
* Sat Feb 5 2011 Ryoichi INAGAKI - 4.6.0-1
- new upstream release
* Tue Jan 18 2011 Shu KONNO - 4.5.1-2
- rebuilt with libboost-1.45.0
* Sun Sep 5 2010 Ryoichi INAGAKI - 4.5.1-1
- new upstream release
* Sun Aug 15 2010 Ryoichi INAGAKI - 4.5.0-1
- new upstream release
* Sat Jul 3 2010 Ryoichi INAGAKI - 4.4.5-1
- new upstream release
* Fri May 7 2010 Ryoichi INAGAKI - 4.4.3-1
- new upstream release
* Sun Apr 11 2010 Ryoichi INAGAKI - 4.4.2-1
- new upstream release
* Sun Mar 7 2010 Ryoichi INAGAKI - 4.4.1-1
- new upstream release
- added apidocs package
* Sat Feb 13 2010 Ryoichi INAGAKI - 4.4.0-1
- new upstream release
- added BR: libboost-graph
- built with new toolchain
* Mon Nov 23 2009 Ryoichi INAGAKI - 4.3.3-1
- new upstream release
* Sat Oct 24 2009 Ryoichi INAGAKI - 4.3.2-1
- new upstream release
- fixed Requires: kdepimlibs-akonadi at kdepimlibs-devel
* Fri Sep 4 2009 Ryoichi INAGAKI - 4.3.1-1
- new upstream release
- used %%cmake macro
* Sun Aug 30 2009 Ryoichi INAGAKI - 4.3.0-4
- fixed Conflicts
* Tue Aug 18 2009 Ryoichi INAGAKI - 4.3.0-3
- Initial build for Vine
* Tue Aug 04 2009 Rex Dieter - 4.3.0-2
- akonadi_version 1.2.0
* Thu Jul 30 2009 Than Ngo - 4.3.0-1
- 4.3.0
* Wed Jul 29 2009 Rex Dieter - 4.2.98-3
- Conflicts: kdepim < 4.2.90
* Fri Jul 24 2009 Fedora Release Engineering - 4.2.98-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Jul 22 2009 Than Ngo - 4.2.98-1
- 4.3rc3
* Thu Jul 16 2009 Rex Dieter - 4.2.96-2
- License: LGPLv2+
* Sat Jul 11 2009 Than Ngo - 4.2.96-1
- 4.3rc2
* Thu Jul 02 2009 Rex Dieter - 4.2.95-3
- akonadi_version 1.1.95
* Mon Jun 29 2009 Than Ngo - 4.2.95-2
- respin
* Thu Jun 25 2009 Than Ngo - 4.2.95-1
- 4.3 RC1
* Wed Jun 03 2009 Rex Dieter 4.2.90-1
- KDE-4.3 beta2 (4.2.90)
* Sun May 24 2009 Rex Dieter 4.2.85-2
- (min) akonadi_version 1.1.85
* Mon May 11 2009 Than Ngo 4.2.85-1
- 4.2.85
* Mon Apr 06 2009 Kevin Kofler - 4.2.2-3
- fix libkcal devel symlink hack
* Thu Apr 02 2009 Rex Dieter - 4.2.2-2
- -apidocs noarch (f10+)
- package %%_kde4_appsdir/akonadi-kde only once
* Tue Mar 31 2009 Lukáš Tinkl - 4.2.2-1
- KDE 4.2.2
* Mon Mar 09 2009 Kevin Kofler - 4.2.1-4
- disable CMake debugging, #475876 should be fixed now
* Tue Mar 03 2009 Rex Dieter - 4.2.1-2
- avoid libkcal conflict with kdepim3
* Fri Feb 27 2009 Than Ngo - 4.2.1-1
- 4.2.1
* Wed Feb 25 2009 Fedora Release Engineering - 4.2.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Feb 18 2009 Than Ngo - 4.2.0-4
- enable akonadi subpkg
* Mon Feb 16 2009 Rex Dieter - 4.2.0-3
- include toggle for -akonadi subpkg (not enabled)
- Provides: -akonadi
* Mon Feb 16 2009 Rex Dieter - 4.2.0-2
- multilib conflicts (#485659)
- kde4/devel symlinks: blacklist only known conflicts
* Thu Jan 22 2009 Than Ngo - 4.2.0-1
- 4.2.0
- exclude kdepimlibs-apidocs from main pkg
* Thu Jan 08 2009 Lorenzo Villani - 4.1.96-2
- fix build on Fedora 10 (cmake < 2.6.3 seems to have a different
behaviour here)
* Wed Jan 07 2009 Than Ngo - 4.1.96-1
- 4.2rc1
* Wed Dec 17 2008 Rex Dieter - 4.1.85-2
- versioned akonadi(-devel) deps
* Thu Dec 11 2008 Lorenzo Villani - 4.1.85-1
- KDE 4.2beta2
* Wed Dec 10 2008 Lorenzo Villani - 4.1.82-2
- add --debug-output to our cmake call, that should fix a reproducible
bug with cmake and ppc builds (this work-around should be
removed anyway)
* Tue Dec 09 2008 Lorenzo Villani - 4.1.82-1
- 4.1.82
* Tue Dec 02 2008 Rex Dieter 4.1.80-3
- -devel: Requires: libical-devel
* Thu Nov 20 2008 Than Ngo 4.1.80-2
- merged
* Thu Nov 20 2008 Lorenzo Villani - 4.1.80-1
- 4.1.80
- BR cmake 2.6
- make install/fast
* Wed Nov 12 2008 Than Ngo 4.1.3-1
- 4.1.3
* Sat Nov 01 2008 Kevin Kofler 4.1.2-4
- turn off system libical for now, crashes KOrganizer (#469228)
* Tue Oct 28 2008 Kevin Kofler 4.1.2-3
- build against the system libical (F10+ only for now)
* Sun Sep 28 2008 Rex Dieter 4.1.2-2
- make VERBOSE=1
- respin against new(er) kde-filesystem
* Fri Sep 26 2008 Rex Dieter 4.1.2-1
- 4.1.2
* Fri Sep 05 2008 Rex Dieter 4.1.1-2
- invitations crasher/regression (kde #170203, rh#462103)
* Thu Aug 28 2008 Than Ngo 4.1.1-1
- 4.1.1
* Tue Aug 05 2008 Rex Dieter 4.1.0-2
- -devel: Requires: boost-devel
* Wed Jul 23 2008 Than Ngo 4.1.0-1
- 4.1.0
* Fri Jul 18 2008 Rex Dieter 4.0.99-1
- 4.0.99
* Thu Jul 10 2008 Rex Dieter 4.0.98-1
- 4.0.98
* Sun Jul 06 2008 Rex Dieter 4.0.85-1
- 4.0.85
* Fri Jun 27 2008 Rex Dieter 4.0.84-1
- 4.0.84
* Tue Jun 24 2008 Than Ngo 4.0.83-2
- respun
* Thu Jun 19 2008 Than Ngo 4.0.83-1
- 4.0.83 (beta2)
* Sat Jun 14 2008 Rex Dieter 4.0.82-1
- 4.0.82
* Mon May 26 2008 Than Ngo 4.0.80-1
- 4.1 beta1
* Mon May 05 2008 Kevin Kofler - 4.0.72-2
- add BR akonadi-devel
- update file list
* Fri May 02 2008 Kevin Kofler - 4.0.72-1
- update to 4.0.72 (4.1 alpha 1)
* Thu Apr 03 2008 Kevin Kofler 4.0.3-3
- rebuild (again) for the fixed %%{_kde4_buildtype}
* Mon Mar 31 2008 Kevin Kofler 4.0.3-2
- rebuild for NDEBUG and _kde4_libexecdir
* Fri Mar 28 2008 Than Ngo 4.0.3-1
- 4.0.3
- -apidocs: Drop Requires: %%name
- include noarch build hooks (not enabled)
* Thu Mar 06 2008 Kevin Kofler 4.0.2-2
- build apidocs and put them into an -apidocs subpackage (can be turned off)
- BR doxygen, graphviz and qt4-doc when building apidocs
* Thu Feb 28 2008 Than Ngo 4.0.2-1
- 4.0.2
* Wed Jan 30 2008 Kevin Kofler 4.0.1-2
- don't delete kconf_update script, it has been fixed to do the right thing
* Wed Jan 30 2008 Rex Dieter 4.0.1-1
- 4.0.1
* Mon Jan 07 2008 Than Ngo 4.0.0-1
- 4.0.0
* Tue Dec 11 2007 Kevin Kofler 3.97.0-2
- rebuild for changed _kde4_includedir
* Wed Dec 05 2007 Rex Dieter 3.97.0-1
- kde-3.97.0
* Thu Nov 29 2007 Rex Dieter 3.96.2-1
- kde-3.96.2
* Tue Nov 27 2007 Rex Dieter 3.96.1-2
- kde-3.96.1
* Thu Nov 15 2007 Rex Dieter 3.96.0-1
- kde-3.96.0
* Fri Nov 09 2007 Rex Dieter 3.95.2-1
- kde-3.95.2
* Mon Nov 05 2007 Rex Dieter 3.95.0-1
- kde-3.95.0 (kde4 dev platform rc1)
* Thu Oct 18 2007 Kevin Kofler 3.94.0-1
- update to 3.94.0
- add new %%{_kde4_libdir}/Gpgmepp directory to file list
* Thu Oct 4 2007 Kevin Kofler 3.93.0-4
- drop ExcludeArch: ppc64 (#300591)
* Fri Sep 21 2007 Kevin Kofler 3.93.0-3
- ExcludeArch: ppc64 (#300591)
* Thu Sep 13 2007 Kevin Kofler 3.93.0-2
- delete KMail/KNode transport migration scripts which break KDE 3
* Sun Sep 9 2007 Kevin Kofler 3.93.0-1
- update to 3.93.0
- drop kde4home patch (no longer applied)
- list BR strigi-devel only once
- move devel symlinks to %%{_kde4_libdir}/kde4/devel/
* Tue Aug 14 2007 Rex Dieter 3.92.0-4
- use macros.kde4
- License: LGPLv2
* Mon Jul 30 2007 Than Ngo 3.92.0-2
- add BR: gpgme-devel
* Sat Jul 28 2007 Rex Dieter 3.92.0-1
- kde-3.92 (kde-4-beta1)
* Thu Jun 29 2007 Rex Dieter 3.91.0-3
- fix %%_sysconfdir for %%_prefix != /usr case.
* Thu Jun 28 2007 Rex Dieter 3.91.0-2
- updated kde4home.diff
- CMAKE_BUILD_TYPE=RelWithDebInfo (we're already using %%optflags)
- drop SNPRINTF hack
* Wed Jun 27 2007 Rex Dieter 3.91.0-1
- kde-3.91.0
- CMAKE_BUILD_TYPE=debug
* Sat Jun 23 2007 Rex Dieter 3.90.1-2
- specfile cleanup (%%prefix issues mostly)
* Sun May 13 2007 Kevin Kofler 3.90.1-1
- update to 3.90.1
- bump cmake BR to 2.4.5 as required upstream now
- don't set execute bits by hand anymore, cmake has been fixed
- use multilibs in /opt/kde4
- add BR boost-devel
* Fri Mar 23 2007 Kevin Kofler 3.80.3-4
- restore minimum version requirement for cmake
- don't set QT4DIR and PATH anymore, qdbuscpp2xml has been fixed
* Mon Mar 05 2007 Rex Dieter 3.80.3-3
- +eXecute perms for %%{prefix}/lib/*
* Fri Feb 23 2007 Kevin Kofler 3.80.3-2
- rebuild for patched FindKDE4Internal.cmake
* Wed Feb 21 2007 Kevin Kofler 3.80.3-1
- update to 3.80.3
- update and improve parallel-installability patch
- readd BR cyrus-sasl-devel
- don't set LD_LIBRARY_PATH
- set QT4DIR and PATH so CMake's direct $QT4DIR/qdbuscpp2xml calls work
- define HAVE_SNPRINTF to work around vsnprintf.c build failure
* Wed Nov 29 2006 Chitlesh Goorah 3.80.2-0.3.20061003svn
- dropped -DCMAKE_SKIP_RPATH=TRUE from cmake
- compiling with QA_RPATHS=0x0003; export QA_RPATHS
- added libXtst-devel libXpm-devel as BR
* Fri Nov 24 2006 Chitlesh Goorah 3.80.2-0.2.20061003svn
- parallel build support
- added -DCMAKE_SKIP_RPATH=TRUE to cmake to skip rpath
- dropped qt4-devel >= 4.2.0, cyrus-sasl-devel as BR
- spec file cleanups and added clean up in %%install
- fixed PATH for libkdecore.so.5; cannot open shared object file;
* Sat Oct 07 2006 Kevin Kofler 3.80.2-0.1.20061003svn
- first Fedora RPM (parts borrowed from the OpenSUSE kdepimlibs 4 RPM and the Fedora kdelibs 3 RPM)
- apply parallel-installability patch