kdepim-runtime-vl.spec 5.2 KB

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