kdepim-runtime-vl.spec 4.9 KB

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