kdepim-runtime-vl.spec 6.3 KB

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