akonadi-vl.spec 9.4 KB

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