akonadi-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. %define _qt4_ver 4.7.2
  2. %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
  3. %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_version})
  4. %define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins)
  5. ## Can be either MYSQL(uptsream default), SQLITE, or POSTGRES(untested)
  6. %global database_backend SQLITE
  7. Name: akonadi
  8. Summary: PIM Storage Service
  9. Summary(ja): PIM ストレージサービス
  10. Version: 1.6.0
  11. Release: 1%{?_dist_release}
  12. Group: System Environment/Libraries
  13. License: LGPLv2+
  14. URL: http://download.akonadi-project.org/
  15. Source0: http://download.akonadi-project.org/akonadi-%{version}.tar.bz2
  16. %define mysql_conf_timestamp 20110629
  17. # shrink default initial db size a bit (approx 140mb->28mb)
  18. Patch1: akonadi-mysql_conf.patch
  19. ## upstream patches
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: cmake >= 2.6.0
  22. BuildRequires: qt4-devel >= 4.4
  23. BuildRequires: automoc4
  24. BuildRequires: MySQL-devel
  25. BuildRequires: MySQL-server
  26. # for xsltproc
  27. BuildRequires: libxslt
  28. BuildRequires: shared-mime-info
  29. BuildRequires: libboost-devel libboost-program-options
  30. BuildRequires: soprano-devel >= 2.5.0
  31. BuildRequires: sqlite3-devel
  32. BuildRequires: libICE-devel libXext-devel
  33. Requires: qt4 = %{_qt4_version}
  34. %if "%{?database_backend}" == "MYSQL"
  35. Requires: qt4-MySQL
  36. # not *strictly* required, but we need a functional default configuration
  37. Requires: MySQL-server
  38. %endif
  39. Obsoletes: akonadi-sqlite < %{version}-%{release}
  40. Requires(post): /sbin/ldconfig
  41. Requires(postun): /sbin/ldconfig
  42. %description
  43. %{summary}.
  44. %if "%{?database_backend}" == "MYSQL"
  45. Requires an available instance of mysql server at runtime.
  46. Akonadi can spawn a per-user one automatically if the mysql-server
  47. package is installed on the machine.
  48. See also: %{_sysconfdir}/akonadi/mysql-global.conf
  49. %endif
  50. %package devel
  51. Summary: Developer files for %{name}
  52. Summary(ja): %{name} の開発用ファイル
  53. Group: Development/Libraries
  54. Requires: %{name} = %{version}-%{release}
  55. Requires: qt4-devel
  56. %description devel
  57. %{summary}.
  58. %prep
  59. %setup -q
  60. #%patch1 -p1 -b .mysql_conf
  61. #touch -d %{mysql_conf_timestamp} server/src/storage/mysql-global.conf
  62. %build
  63. %ifarch x86_64
  64. PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`"
  65. %endif
  66. mkdir -p %{_target_platform}
  67. pushd %{_target_platform}
  68. %cmake \
  69. -DCONFIG_INSTALL_DIR=%{_sysconfdir} \
  70. -DINSTALL_QSQLITE_IN_QT_PREFIX:PATH=%{_qt4_plugindir} \
  71. %{?database_backend:-DDATABASE_BACKEND=%{database_backend}} \
  72. ..
  73. popd
  74. make %{?_smp_mflags} -C %{_target_platform}
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  78. mkdir -p $RPM_BUILD_ROOT%{_datadir}/akonadi/agents
  79. # create "big" config (analog to -mobile.conf)
  80. install -p \
  81. $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global.conf \
  82. $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global-big.conf
  83. # default to small/mobile config
  84. install -p \
  85. $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global-mobile.conf \
  86. $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global.conf
  87. touch -d %{mysql_conf_timestamp} \
  88. $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global*.conf \
  89. $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-local.conf
  90. # create/own %{_libdir}/akondi
  91. mkdir -p $RPM_BUILD_ROOT%{_libdir}/akonadi
  92. #%check
  93. #make test -C %{_target_platform}
  94. #export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
  95. #test "$(pkg-config --modversion akonadi)" = "%{version}"
  96. %clean
  97. rm -rf $RPM_BUILD_ROOT
  98. %post -p /sbin/ldconfig
  99. %posttrans
  100. update-mime-database %{_datadir}/mime &> /dev/null || :
  101. %postun
  102. /sbin/ldconfig ||:
  103. if [ $1 -eq 0 ] ; then
  104. update-mime-database %{_datadir}/mime &> /dev/null ||:
  105. fi
  106. %files
  107. %defattr(-,root,root,-)
  108. %doc AUTHORS lgpl-license
  109. %dir %{_sysconfdir}/akonadi
  110. # example conf's
  111. %{_sysconfdir}/akonadi/mysql-global-big.conf
  112. %{_sysconfdir}/akonadi/mysql-global-mobile.conf
  113. %config(noreplace) %{_sysconfdir}/akonadi/mysql-global.conf
  114. %config(noreplace) %{_sysconfdir}/akonadi/mysql-local.conf
  115. %{_bindir}/akonadi_agent_launcher
  116. %{_bindir}/akonadi_agent_server
  117. %{_bindir}/akonadi_control
  118. %{_bindir}/akonadi_rds
  119. %{_bindir}/akonadictl
  120. %{_bindir}/akonadiserver
  121. %{_libdir}/libakonadi*.so.1*
  122. %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml
  123. %{_datadir}/dbus-1/services/org.freedesktop.Akonadi.*.service
  124. %{_datadir}/mime/packages/akonadi-mime.xml
  125. %{_datadir}/akonadi
  126. %{_qt4_plugindir}/sqldrivers/libqsqlite3.so
  127. %files devel
  128. %defattr(-,root,root,-)
  129. %{_includedir}/akonadi
  130. %{_libdir}/pkgconfig/akonadi.pc
  131. %{_libdir}/libakonadi*.so
  132. %{_libdir}/cmake/Akonadi
  133. %changelog
  134. * Sat Jul 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-1
  135. - new upstream release
  136. * Thu Mar 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.5.0-2
  137. - rebuilt with qt4-4.7.2
  138. * Mon Jan 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.5.0-1
  139. - new upstream release
  140. * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.0-2
  141. - rebuilt with rpm-4.8.1
  142. * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.0-1
  143. - new upstream release
  144. - added BR: sqlite3-devel
  145. - added sqlite subpackage
  146. * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-3
  147. - new upstream release
  148. * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-3
  149. - updated Patch1
  150. - added BR: MySQL-server
  151. * Sun Feb 14 2010 Shu KONNO <owa@bg.wakwak.com> - 1.3.1-2
  152. - added qmake path to PATH (if x86_64)
  153. * Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-1
  154. - new upstream release
  155. - built with new toolchain
  156. * Thu Sep 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.1-1
  157. - new upstream release
  158. * Wed Sep 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.2.0-4
  159. - use %%cmake macro
  160. - removed MySQL-server from BuildRequires:
  161. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-3
  162. - fixed Requires
  163. * Sat Aug 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-2
  164. - Initial build for Vine
  165. * Thu Jul 30 2009 Lukáš Tinkl <ltinkl@redhat.com> - 1.2.0-1
  166. - Akonadi 1.2.0
  167. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.95-2
  168. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  169. * Thu Jun 25 2009 Than Ngo <than@redhat.com> - 1.1.95-1
  170. - 1.1.95
  171. * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.90-1
  172. - akonadi-1.1.90
  173. * Tue May 26 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.85-3
  174. - akonadi.pc.cmake: s/AKONADI_LIB_VERSION_STRING/AKONADI_VERSION_STRING/
  175. * Tue May 12 2009 Than Ngo <than@redhat.com> 1.1.85-2
  176. - fix rpm file list
  177. * Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.85-1
  178. - akonadi-1.1.85
  179. * Thu Apr 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.2-1
  180. - akonadi-1.1.2
  181. - optimize scriptlets a bit
  182. * Wed Feb 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-6
  183. - rev startup patch
  184. - BR: cmake >= 2.6.0
  185. - preserve timestamp's on mysql*.conf's
  186. * Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-5
  187. - own %%_sysconfig/akonadi/mysql-local.conf
  188. - startup patch: reset conf only when needed, and clear mysql log file on update
  189. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
  190. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  191. * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-3
  192. - shrink default db initial size a bit (approx 140mb->28mb)
  193. - drop extraneous RPATH-cmake baggage
  194. * Wed Jan 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-1
  195. - 1.1.1
  196. * Sun Jan 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.0-1
  197. - 1.1.0
  198. * Tue Dec 16 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.81-1
  199. - 1.0.81
  200. * Mon Dec 08 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.80-3
  201. - restore Requires: mysql-server
  202. * Mon Dec 01 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.80-2
  203. - own /usr/share/akonadi and /usr/share/akonadi/agents (#473595)
  204. * Wed Nov 26 2008 Than Ngo <than@redhat.com> - 1.0.80-1
  205. - 1.0.80
  206. * Wed Oct 22 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4
  207. - drop Requires: mysql-server (for now), mention in %%description
  208. * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-3
  209. - Requires: mysql-server
  210. * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-2
  211. - BR: mysql-server
  212. - Requires: qt4-mysql
  213. - cleanup spec
  214. * Wed Jul 23 2008 Than Ngo <than@redhat.com> - 1.0.0-1
  215. - 1.0.0
  216. * Wed Jun 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.82.0-1
  217. - akonadi-0.82.0
  218. * Tue Jun 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.2.20080526svn812787
  219. - BR automoc, drop automoc hack
  220. * Mon May 26 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.1.20080526svn812787
  221. - update to revision 812787 from KDE SVN (to match KDE 4.1 Beta 1)
  222. - restore builtin automoc4 for now
  223. - update file list, require pkgconfig in -devel (.pc file now included)
  224. * Mon May 5 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-2
  225. - -devel: remove bogus Requires: pkgconfig
  226. * Sat May 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-1
  227. - first Fedora package