kdepim-runtime-vl.spec 5.6 KB

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