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