kdepim-runtime-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. %define akonadi_version 1.2.60
  2. Name: kdepim-runtime
  3. Summary: KDE PIM Runtime Environment
  4. Version: 4.4.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Productivity
  8. URL: http://www.kde.org/
  9. Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: akonadi-devel >= %{akonadi_version}
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: kdepimlibs-devel >= %{version}
  14. BuildRequires: kdelibs4-devel >= %{version}
  15. BuildRequires: zlib-devel
  16. BuildRequires: soprano-devel
  17. BuildRequires: libxslt-devel
  18. BuildRequires: libxml2-devel
  19. Requires: %{name}-libs = %{version}-%{release}
  20. %description
  21. %{summary}
  22. %package libs
  23. Summary: %{name} runtime libraries
  24. Group: System Environment/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: akonadi >= %{akonadi_version}
  27. %description libs
  28. %{summary}.
  29. %package devel
  30. Summary: Development files for %{name}
  31. Group: Development/Libraries
  32. Requires: %{name}-libs = %{version}-%{release}
  33. Requires: kdepimlibs-devel >= %{version}
  34. %description devel
  35. %{summary}.
  36. Install %{name}-devel if you want to write or compile %{name} plugins.
  37. %prep
  38. %setup -q
  39. %build
  40. mkdir -p %{_target_platform}
  41. pushd %{_target_platform}
  42. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  43. %cmake \
  44. -DCMAKE_BUILD_TYPE=release \
  45. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  46. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  47. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  48. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  49. ..
  50. popd
  51. make %{?_smp_mflags} -C %{_target_platform}
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  55. # make symlinks relative
  56. mkdir -p $RPM_BUILD_ROOT%{_docdir}/HTML/en/common
  57. pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en
  58. for i in *; do
  59. if [ -d $i -a -L $i/common ]; then
  60. rm -f $i/common
  61. ln -nfs ../common $i
  62. fi
  63. done
  64. popd
  65. %check
  66. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  67. desktop-file-validate $f
  68. done
  69. %post
  70. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  71. %posttrans
  72. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  73. update-mime-database %{_datadir}/mime >& /dev/null ||:
  74. update-desktop-database -q &> /dev/null ||:
  75. %postun
  76. if [ $1 -eq 0 ] ; then
  77. update-mime-database %{_datadir}/mime &> /dev/null ||:
  78. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  79. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  80. update-desktop-database -q &> /dev/null ||:
  81. fi
  82. %post libs -p /sbin/ldconfig
  83. %postun libs -p /sbin/ldconfig
  84. %clean
  85. rm -rf $RPM_BUILD_ROOT
  86. %files
  87. %defattr(-,root,root,-)
  88. %{_bindir}/*
  89. %{_libdir}/kde4/*.so
  90. %{_datadir}/autostart/*
  91. %{_datadir}/akonadi/agents/*
  92. %{_datadir}/applications/kde4/*
  93. %{_datadir}/config/*rc
  94. %{_datadir}/dbus-1/interfaces/*.xml
  95. %{_datadir}/kde4/services/*
  96. %{_datadir}/mime/packages/*
  97. %{_datadir}/icons/hicolor/*/*/*
  98. %{_datadir}/kde4/apps/*
  99. %files devel
  100. %defattr(-,root,root,-)
  101. #{_includedir}/kde4/akonadi/xml
  102. %{_libdir}/lib*.so
  103. %files libs
  104. %defattr(-,root,root,-)
  105. %{_libdir}/lib*.so.*
  106. %changelog
  107. * Fri May 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.3-1
  108. - new upstream release
  109. * Mon Apr 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.2-1
  110. - new upstream release
  111. * Sun Mar 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.1-1
  112. - new upstream release
  113. * Tue Mar 2 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.0-1
  114. - new upstream release
  115. - built with new toolchain
  116. * Mon Nov 23 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.3-1
  117. - new upstream release
  118. * Sun Oct 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.2-1
  119. - new upstream release
  120. * Sat Sep 5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.1-1
  121. - new upstream release
  122. - used %%cmake macro
  123. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.0-2
  124. - Initial build for Vine Linux
  125. * Thu Jul 30 2009 Than Ngo <than@redhat.com> - 4.3.0-1
  126. - 4.3.0
  127. * Wed Jul 22 2009 Than Ngo <than@redhat.com> - 4.2.98-1
  128. - 4.3rc3
  129. * Sat Jul 11 2009 Than Ngo <than@redhat.com> - 4.2.96-1
  130. - 4.3rc2
  131. * Thu Jul 02 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.95-3
  132. - -devel: Requires: kdepimlibs-devel
  133. - Req: akonadi >= 1.1.95
  134. * Mon Jun 29 2009 Than Ngo <than@redhat.com> - 4.2.95-2
  135. - cleanup
  136. * Fri Jun 26 2009 Than Ngo <than@redhat.com> - 4.2.95-1
  137. - first try