Name: kpilot Summary: Sync PIM data with PalmOS devices Version: 5.3.0 Release: 5%{?dist} # no pilot-link on S/390 ExcludeArch: s390 s390x License: GPLv2+ Group: Applications/Productivity URL: http://www.kde.org/ Source0: ftp://ftp.kde.org/pub/kde/stable/4.3.4/src/kdepim-4.3.4.tar.bz2 # translations collected from: # http://websvn.kde.org/branches/stable/l10n-kde4/*/messages/kdepim # http://websvn.kde.org/branches/stable/l10n-kde4/*/docs/kdepim Source1: kpilot-translations-20100115.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: kdelibs4-devel >= 4.3.4 BuildRequires: kdepimlibs-devel >= 4.3.4 BuildRequires: akonadi-devel BuildRequires: boost-devel BuildRequires: pilot-link-devel >= 0.12 BuildRequires: qca2-devel BuildRequires: desktop-file-utils BuildRequires: gettext Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %if 0%{?fedora} < 13 Conflicts: kdepim < 6:4.3.80 Conflicts: kde-l10n < 4.3.90-3 %endif %description Utility to synchronize PIM (Personal Information Management) data with PalmOS devices. %package libs Summary: Runtime libraries for %{name} Group: System Environment/Libraries %description libs %{summary}. %prep %setup -q -n kdepim-4.3.4 -a 1 echo 'add_subdirectory(../doc/kpilot doc)' >>kpilot/CMakeLists.txt echo 'add_subdirectory(../kpilot-translations-20100115 l10n)' >>kpilot/CMakeLists.txt pushd kpilot-translations-20100115/doc for i in *_kpilot ; do if [ -e $i/index.docbook ] ; then echo "add_subdirectory($i)" >>CMakeLists.txt echo 'kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/'${i%_kpilot}'/ SUBDIR kpilot)' >$i/CMakeLists.txt fi done popd %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} ../kpilot popd make %{?_smp_mflags} -C %{_target_platform} %install rm -rf %{buildroot} make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # make symlinks relative mkdir -p %{buildroot}%{_docdir}/HTML/en/common pushd %{buildroot}%{_docdir}/HTML/en for i in *; do if [ -d $i -a -L $i/common ]; then rm -f $i/common ln -nfs ../common $i fi done popd # don't package devel files rm -rf %{buildroot}%{_kde4_includedir}/kpilot/ rm -f %{buildroot}%{_kde4_libdir}/libkpilot.so %find_lang %{name} --with-kde %check for f in %{buildroot}%{_kde4_datadir}/applications/kde4/*.desktop ; do desktop-file-validate $f done %post touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: %posttrans gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-desktop-database -q &> /dev/null ||: %postun if [ $1 -eq 0 ] ; then touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-desktop-database -q &> /dev/null ||: fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc kpilot/COPYING %doc kpilot/README kpilot/AUTHORS kpilot/ChangeLog kpilot/NEWS kpilot/TODO %{_kde4_bindir}/kpilot %{_kde4_bindir}/kpilotDaemon %{_kde4_datadir}/applications/kde4/kpilot*.desktop %{_kde4_datadir}/config.kcfg/*.kcfg %{_kde4_datadir}/kde4/services/*.desktop %{_kde4_datadir}/kde4/servicetypes/kpilotconduit.desktop %{_kde4_appsdir}/kconf_update/kpilot.upd %{_kde4_appsdir}/kpilot/ %{_kde4_iconsdir}/hicolor/*/*/* %files libs %defattr(-,root,root,-) %{_kde4_libdir}/libkpilot.so.* %{_kde4_libdir}/libkpilot_*.so %{_kde4_libdir}/kde4/kcm_kpilot.so %{_kde4_libdir}/kde4/kpilot_conduit_*.so %changelog * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jan 15 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.3.0-4 - Fix the translated documentation to get built - Don't list the documentation in the file list as find_lang does it for us * Fri Jan 15 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.3.0-3 - Ship translations collected from branches/stable/l10n-kde4 - BR gettext - Conflicts: kde-l10n < 4.3.90-3 (F12-) * Tue Dec 22 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.3.0-2 - shorten Summary and add linebreak in %%description - Conflicts with old versions of kdepim (F12-) - split out -libs subpackage * Wed Dec 16 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.3.0-1 - new specfile for KPilot, split out of kdepim 4.3.4