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