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