akonadi-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. %define _qt4_ver 4.8.0
  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}/qt4)
  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.2
  11. Release: 2%{?_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. * Mon Jan 9 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.2-2
  135. - rebuilt with qt-4.8.0
  136. * Sun Oct 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.2-1
  137. - new upstream release
  138. * Sun Sep 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.1-1
  139. - new upstream release
  140. * Sat Aug 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-2
  141. - rebuilt with soprano-2.7.0-2
  142. * Sat Jul 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-1
  143. - new upstream release
  144. * Thu Mar 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.5.0-2
  145. - rebuilt with qt4-4.7.2
  146. * Mon Jan 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.5.0-1
  147. - new upstream release
  148. * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.0-2
  149. - rebuilt with rpm-4.8.1
  150. * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.0-1
  151. - new upstream release
  152. - added BR: sqlite3-devel
  153. - added sqlite subpackage
  154. * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-3
  155. - new upstream release
  156. * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-3
  157. - updated Patch1
  158. - added BR: MySQL-server
  159. * Sun Feb 14 2010 Shu KONNO <owa@bg.wakwak.com> - 1.3.1-2
  160. - added qmake path to PATH (if x86_64)
  161. * Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-1
  162. - new upstream release
  163. - built with new toolchain
  164. * Thu Sep 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.1-1
  165. - new upstream release
  166. * Wed Sep 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.2.0-4
  167. - use %%cmake macro
  168. - removed MySQL-server from BuildRequires:
  169. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-3
  170. - fixed Requires
  171. * Sat Aug 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-2
  172. - Initial build for Vine
  173. * Thu Jul 30 2009 Lukáš Tinkl <ltinkl@redhat.com> - 1.2.0-1
  174. - Akonadi 1.2.0
  175. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.95-2
  176. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  177. * Thu Jun 25 2009 Than Ngo <than@redhat.com> - 1.1.95-1
  178. - 1.1.95
  179. * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.90-1
  180. - akonadi-1.1.90
  181. * Tue May 26 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.85-3
  182. - akonadi.pc.cmake: s/AKONADI_LIB_VERSION_STRING/AKONADI_VERSION_STRING/
  183. * Tue May 12 2009 Than Ngo <than@redhat.com> 1.1.85-2
  184. - fix rpm file list
  185. * Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.85-1
  186. - akonadi-1.1.85
  187. * Thu Apr 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.2-1
  188. - akonadi-1.1.2
  189. - optimize scriptlets a bit
  190. * Wed Feb 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-6
  191. - rev startup patch
  192. - BR: cmake >= 2.6.0
  193. - preserve timestamp's on mysql*.conf's
  194. * Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-5
  195. - own %%_sysconfig/akonadi/mysql-local.conf
  196. - startup patch: reset conf only when needed, and clear mysql log file on update
  197. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
  198. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  199. * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-3
  200. - shrink default db initial size a bit (approx 140mb->28mb)
  201. - drop extraneous RPATH-cmake baggage
  202. * Wed Jan 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-1
  203. - 1.1.1
  204. * Sun Jan 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.0-1
  205. - 1.1.0
  206. * Tue Dec 16 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.81-1
  207. - 1.0.81
  208. * Mon Dec 08 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.80-3
  209. - restore Requires: mysql-server
  210. * Mon Dec 01 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.80-2
  211. - own /usr/share/akonadi and /usr/share/akonadi/agents (#473595)
  212. * Wed Nov 26 2008 Than Ngo <than@redhat.com> - 1.0.80-1
  213. - 1.0.80
  214. * Wed Oct 22 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4
  215. - drop Requires: mysql-server (for now), mention in %%description
  216. * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-3
  217. - Requires: mysql-server
  218. * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-2
  219. - BR: mysql-server
  220. - Requires: qt4-mysql
  221. - cleanup spec
  222. * Wed Jul 23 2008 Than Ngo <than@redhat.com> - 1.0.0-1
  223. - 1.0.0
  224. * Wed Jun 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.82.0-1
  225. - akonadi-0.82.0
  226. * Tue Jun 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.2.20080526svn812787
  227. - BR automoc, drop automoc hack
  228. * Mon May 26 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.1.20080526svn812787
  229. - update to revision 812787 from KDE SVN (to match KDE 4.1 Beta 1)
  230. - restore builtin automoc4 for now
  231. - update file list, require pkgconfig in -devel (.pc file now included)
  232. * Mon May 5 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-2
  233. - -devel: remove bogus Requires: pkgconfig
  234. * Sat May 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-1
  235. - first Fedora package