akonadi-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Summary: PIM Storage Service
  2. Summary(ja): PIM ストレージサービス
  3. Name: akonadi
  4. Version: 1.3.1
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: http://download.akonadi-project.org/
  9. Source0: http://download.akonadi-project.org/akonadi-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. # shrink default initial db size a bit (approx 140mb->28mb)
  12. %define mysql_conf_timestamp 20090220
  13. Patch1: akonadi-1.1.1-mysql_conf.patch
  14. ## upstream patches
  15. BuildRequires: cmake >= 2.6.0
  16. BuildRequires: qt4-devel >= 4.5.0
  17. BuildRequires: automoc4
  18. BuildRequires: MySQL-devel
  19. # for xsltproc
  20. BuildRequires: libxslt
  21. BuildRequires: shared-mime-info
  22. BuildRequires: libboost-devel libboost-program-options
  23. BuildRequires: soprano-devel >= 2.3.0
  24. BuildRequires: libICE-devel libXext-devel
  25. # when/if akonadi grows support for other backends, consider splitting
  26. # these similar to how phonon is done currently.
  27. Requires: qt4-MySQL
  28. # not *strictly* required, but we need a functional default configuration
  29. #Requires: mysql-server
  30. Requires(post): /sbin/ldconfig
  31. Requires(postun): /sbin/ldconfig
  32. %description
  33. %{summary}.
  34. Requires an available instance of mysql server at runtime.
  35. Akonadi can spawn a per-user one automatically if the mysql-server
  36. package is installed on the machine.
  37. See also: %{_sysconfdir}/akonadi/mysql-global.conf
  38. %package devel
  39. Summary: Developer files for %{name}
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: qt4-devel >= 4.5.0
  43. Requires: pkgconfig
  44. %description devel
  45. %{summary}.
  46. %prep
  47. %setup -q
  48. %patch1 -p1 -b .mysql_conf
  49. touch -d %{mysql_conf_timestamp} server/src/storage/mysql-global.conf
  50. %build
  51. %ifarch x86_64
  52. PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`"
  53. %endif
  54. mkdir -p %{_target_platform}
  55. pushd %{_target_platform}
  56. %cmake \
  57. -DCONFIG_INSTALL_DIR=%{_sysconfdir} \
  58. ..
  59. popd
  60. make %{?_smp_mflags} -C %{_target_platform}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  64. mkdir -p $RPM_BUILD_ROOT%{_datadir}/akonadi/agents
  65. touch -d %{mysql_conf_timestamp} $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-local.conf
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %post -p /sbin/ldconfig
  69. %posttrans
  70. update-mime-database %{_datadir}/mime &> /dev/null || :
  71. %postun
  72. /sbin/ldconfig ||:
  73. if [ $1 -eq 0 ] ; then
  74. update-mime-database %{_datadir}/mime &> /dev/null ||:
  75. fi
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc AUTHORS lgpl-license
  79. %dir %{_sysconfdir}/akonadi
  80. %config(noreplace) %{_sysconfdir}/akonadi/mysql-global.conf
  81. %config(noreplace) %{_sysconfdir}/akonadi/mysql-local.conf
  82. %{_bindir}/akonadi_control
  83. %{_bindir}/akonadictl
  84. %{_bindir}/akonadiserver
  85. %{_libdir}/libakonadi*.so.1*
  86. %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml
  87. %{_datadir}/dbus-1/services/org.freedesktop.Akonadi.*.service
  88. %{_datadir}/mime/packages/akonadi-mime.xml
  89. %{_datadir}/akonadi
  90. %files devel
  91. %defattr(-,root,root,-)
  92. %{_includedir}/akonadi
  93. %{_libdir}/pkgconfig/akonadi.pc
  94. %{_libdir}/libakonadi*.so
  95. %{_libdir}/cmake/Akonadi
  96. %changelog
  97. * Sun Feb 14 2010 Shu KONNO <owa@bg.wakwak.com> - 1.3.1-2
  98. - added qmake path to PATH (if x86_64)
  99. * Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-1
  100. - new upstream release
  101. - built with new toolchain
  102. * Thu Sep 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.1-1
  103. - new upstream release
  104. * Wed Sep 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.2.0-4
  105. - use %%cmake macro
  106. - removed MySQL-server from BuildRequires:
  107. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-3
  108. - fixed Requires
  109. * Sat Aug 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-2
  110. - Initial build for Vine
  111. * Thu Jul 30 2009 Lukáš Tinkl <ltinkl@redhat.com> - 1.2.0-1
  112. - Akonadi 1.2.0
  113. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.95-2
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  115. * Thu Jun 25 2009 Than Ngo <than@redhat.com> - 1.1.95-1
  116. - 1.1.95
  117. * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.90-1
  118. - akonadi-1.1.90
  119. * Tue May 26 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.85-3
  120. - akonadi.pc.cmake: s/AKONADI_LIB_VERSION_STRING/AKONADI_VERSION_STRING/
  121. * Tue May 12 2009 Than Ngo <than@redhat.com> 1.1.85-2
  122. - fix rpm file list
  123. * Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.85-1
  124. - akonadi-1.1.85
  125. * Thu Apr 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.2-1
  126. - akonadi-1.1.2
  127. - optimize scriptlets a bit
  128. * Wed Feb 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-6
  129. - rev startup patch
  130. - BR: cmake >= 2.6.0
  131. - preserve timestamp's on mysql*.conf's
  132. * Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-5
  133. - own %%_sysconfig/akonadi/mysql-local.conf
  134. - startup patch: reset conf only when needed, and clear mysql log file on update
  135. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
  136. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  137. * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-3
  138. - shrink default db initial size a bit (approx 140mb->28mb)
  139. - drop extraneous RPATH-cmake baggage
  140. * Wed Jan 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-1
  141. - 1.1.1
  142. * Sun Jan 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.0-1
  143. - 1.1.0
  144. * Tue Dec 16 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.81-1
  145. - 1.0.81
  146. * Mon Dec 08 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.80-3
  147. - restore Requires: mysql-server
  148. * Mon Dec 01 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.80-2
  149. - own /usr/share/akonadi and /usr/share/akonadi/agents (#473595)
  150. * Wed Nov 26 2008 Than Ngo <than@redhat.com> - 1.0.80-1
  151. - 1.0.80
  152. * Wed Oct 22 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4
  153. - drop Requires: mysql-server (for now), mention in %%description
  154. * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-3
  155. - Requires: mysql-server
  156. * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-2
  157. - BR: mysql-server
  158. - Requires: qt4-mysql
  159. - cleanup spec
  160. * Wed Jul 23 2008 Than Ngo <than@redhat.com> - 1.0.0-1
  161. - 1.0.0
  162. * Wed Jun 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.82.0-1
  163. - akonadi-0.82.0
  164. * Tue Jun 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.2.20080526svn812787
  165. - BR automoc, drop automoc hack
  166. * Mon May 26 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.1.20080526svn812787
  167. - update to revision 812787 from KDE SVN (to match KDE 4.1 Beta 1)
  168. - restore builtin automoc4 for now
  169. - update file list, require pkgconfig in -devel (.pc file now included)
  170. * Mon May 5 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-2
  171. - -devel: remove bogus Requires: pkgconfig
  172. * Sat May 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-1
  173. - first Fedora package