Package akonadi: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
Name: akonadi
Version: 1.13.1
Release: alt0.6

Group: Databases
Summary: An extensible cross-desktop storage service for PIM
Url: http://pim.kde.org/akonadi/
License: LGPLv2+

Requires: %name-database tar bzip2

Source: %name-%version.tar
Source10: mysql_install_db
# RH
Patch10: akonadi-1.7.0-mysql_conf.patch
# ALT
Patch101: akonadi-1.1.1-alt-alt-kdebindir.patch
Patch102: akonadi-1.3.81-alt-mysql-paths.patch
Patch103: akonadi-1.11.0-alt-pluginsdir.patch
#
Patch105: akonadi-1.11.0-alt-start-mysqlcheck.patch
Patch106: akonadi-1.6.2-alt-own-mysql_install_db.patch
Patch107: akonadi-1.6.2-alt-check-nepomuk.patch

BuildRequires(pre): libqt4-devel rpm-build-ubt
BuildRequires: gcc-c++ automoc
BuildRequires: libqt4-devel >= 4.4 kde-common-devel >= 4
BuildRequires: shared-mime-info >=  0.20
BuildRequires: pkg-config cmake xsltproc xml-utils
BuildRequires: boost-devel boost-program_options-devel libsqlite3-devel

%description
An extensible cross-desktop storage service for PIM data and meta data providing
concurrent read, write, and query access.


%package common
Summary: %name common mime and dbus calls
Group: System/Libraries
%description common
%name common mime and dbus calls.

%package -n libqt4-sql-sqlite3
Summary: SQLite3 driver for Qt4 SQL classes
Group: System/Libraries
Requires: qt4-common
Provides: libqt4-plugin-sql = 4.7
%description -n libqt4-sql-sqlite3
SQLite3 driver for Qt's SQL classes (QSQLITE3)

%package database-1-sqlite
Group: Databases
Summary: %name Qt sqlite database
BuildArch: noarch
Requires: %name-common = %EVR
Requires: libqt4-sql-sqlite
Provides: %name-database = %EVR
Provides: %name-database-sqlite = %EVR
Provides: akonadi-database0 = %EVR
Obsoletes: akonadi-database0 < %EVR
%description database-1-sqlite
%name Qt sqlite database

%package database-3-sqlite3
Group: Databases
Summary: %name sqlite database
BuildArch: noarch
Requires: %name-common = %EVR
Requires: libqt4-sql-sqlite3
Provides: %name-database = %EVR
Provides: %name-database-sqlite3 = %EVR
Provides: akonadi-database1 = %EVR
Obsoletes: akonadi-database1 < %EVR
%description database-3-sqlite3
%name sqlite database

%package database-5-postgresql
Group: Databases
Summary: %name postgresql database
BuildArch: noarch
Requires: %name-common = %EVR
Requires: libqt4-sql-postgresql postgresql /usr/bin/pg_dump /usr/bin/pg_restore
Provides: %name-database = %EVR
Provides: %name-database-postgresql = %EVR
Provides: akonadi-database2 = %EVR
Obsoletes: akonadi-database2 < %EVR
%description database-5-postgresql
%name postgresql database

%package database-8-mysql
Group: Databases
Summary: %name mysql database
BuildArch: noarch
Requires: %name-common = %EVR
Requires: libqt4-sql-mysql mariadb-server mariadb-client
Provides: %name-database = %EVR
Provides: %name-database-mysql = %EVR
Provides: akonadi-database3 = %EVR
Obsoletes: akonadi-database3 < %EVR
Provides: akonadi-database-7-mysql = %EVR
Obsoletes: akonadi-database-7-mysql < %EVR
%description database-8-mysql
%name mysql database

%package -n libakonadiprotocolinternals
Group: System/Libraries
Summary: %name library
Requires: %name-common = %EVR
%description -n libakonadiprotocolinternals
%name library

%package -n libakonadiprivate
Group: System/Libraries
Summary: %name library
Requires: %name-common = %EVR
%description -n libakonadiprivate
%name library

%package devel
Group: Development/KDE and QT
Summary: Development files for %name
Requires: libqt4-devel libxml2-devel dbus
Conflicts: kde4pimlibs-devel < 4.0.70
Conflicts: kde4pim-devel < 4.0.70
%description devel
Development files for %name


%prep
%setup -q
#
%patch10 -p1
#
%patch101 -p1
%patch102 -p1
%patch103 -p1
#
%patch105 -p1
%patch106 -p1
%patch107 -p1

%build
#export PATH=%_libdir/kde4bin:$PATH
export CMAKE_LIBRARY_PATH=%_libdir
%Kcmake \
    -DQT5_BUILD=OFF \
    -DAKONADI_BUILD_TESTS=OFF \
    -DBIN_INSTALL_DIR2=%_kde4_bindir \
    -DCONFIG_INSTALL_DIR=%_sysconfdir \
    -DINCLUDE_INSTALL_DIR=%_includedir \
    -DMYSQLD_EXECUTABLE:FILEPATH=%_sbindir/mysqld \
    -DINSTALL_QSQLITE_IN_QT_PREFIX=ON \
    -DWITH_SOPRANO=FALSE \
    #
%Kmake


%install
%Kinstall
mkdir -p %buildroot/%_libdir/akonadi/contact/editorpageplugins/
install -m 0755 %SOURCE10 %buildroot/%_bindir/akonadi_mysql_install_db

%files common
%_K4xdg_mime/akonadi-mime.xml
%dir %_sysconfdir/akonadi/
%dir %_libdir/akonadi/
%dir %_libdir/akonadi/*/
%dir %_libdir/akonadi/*/*/

%files
%_bindir/akonadi_rds
%_bindir/akonadi_control
%_bindir/akonadictl
%_bindir/akonadiserver
%_bindir/akonadi_agent_launcher
%_bindir/akonadi_agent_server
%config(noreplace) %_sysconfdir/akonadi/*
%_K4dbus_services/org.freedesktop.Akonadi.Control.service

%files -n libqt4-sql-sqlite3
%_qt4dir/plugins/sqldrivers/libqsqlite3.so

%files database-1-sqlite
%files database-3-sqlite3
%files database-5-postgresql
%files database-8-mysql
%_bindir/akonadi_mysql_install_db

#%files -n libakonadiprivate
#%_libdir/libakonadiprivate.so.*

%files -n libakonadiprotocolinternals
%_libdir/libakonadiprotocolinternals.so.*

%files devel
%_K4dbus_interfaces/*.xml
%_includedir/*
%_libdir/cmake/Akonadi/
%_libdir/*.so
%_libdir/pkgconfig/*

%changelog
* Mon Apr 01 2019 Sergey V Turchin <zerg@altlinux.org> 1.13.1-alt0.6
- update from 1.13 branch

* Thu May 31 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.13.1-alt0.5%ubt
- NMU: rebuilt with boost-1.67.0

* Wed Oct 11 2017 Sergey V Turchin <zerg@altlinux.org> 1.13.1-alt0.4%ubt
- rebuild with new boost

* Wed Feb 24 2016 Sergey V Turchin <zerg@altlinux.org> 1.13.1-alt0.3
- fix requires

* Thu Feb 18 2016 Sergey V Turchin <zerg@altlinux.org> 1.13.1-alt0.2
- fix package dbus service file

* Thu Sep 10 2015 Sergey V Turchin <zerg@altlinux.org> 1.13.1-alt0.1
- update from 1.13 branch

* Thu Jun 18 2015 Sergey V Turchin <zerg@altlinux.org> 1.13.0-alt3
- add upstream fixes

* Fri Jan 23 2015 Sergey V Turchin <zerg@altlinux.org> 1.13.0-alt2
- rebuild with new boost

* Tue Aug 19 2014 Sergey V Turchin <zerg@altlinux.org> 1.13.0-alt1
- new version

* Tue Aug 12 2014 Sergey V Turchin <zerg@altlinux.org> 1.12.91-alt1
- new version

* Mon May 12 2014 Sergey V Turchin <zerg@altlinux.org> 1.12.1-alt2
- update from 1.12 branch

* Thu Apr 17 2014 Sergey V Turchin <zerg@altlinux.org> 1.12.1-alt1
- new version

* Wed Mar 26 2014 Sergey V Turchin <zerg@altlinux.org> 1.12.0-alt0.M70P.1
- built for M70P

* Wed Mar 26 2014 Sergey V Turchin <zerg@altlinux.org> 1.12.0-alt1
- new version

* Thu Jan 30 2014 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt4.M70P.1
- built for M70P

* Fri Jan 24 2014 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt5
- update from 1.11 branch

* Sun Dec 22 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt3.M70P.1
- built for M70P

* Sun Dec 22 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt4
- fix find plugins

* Wed Dec 18 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt2.M70P.1
- built for M70P

* Wed Dec 18 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt3
- update from 1.11 branch

* Fri Dec 06 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt1.M70P.1
- built for M70P

* Fri Dec 06 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt2
- don't start mysqlcheck detached only first time
- update from 1.11 branch

* Wed Dec 04 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt0.M70P.1
- built for M70P

* Wed Dec 04 2013 Sergey V Turchin <zerg@altlinux.org> 1.11.0-alt1
- new version
- don't start mysqlcheck detached

* Thu Oct 17 2013 Sergey V Turchin <zerg at altlinux dot org> 1.10.3-alt1.M70P.1
- built for M70P

* Thu Oct 17 2013 Sergey V Turchin <zerg at altlinux dot org> 1.10.3-alt2
- require mariadb directly

* Wed Oct 09 2013 Sergey V Turchin <zerg@altlinux.org> 1.10.3-alt0.M70P.1
- built for M70P

* Mon Oct 07 2013 Sergey V Turchin <zerg@altlinux.org> 1.10.3-alt1
- new version

* Mon Sep 23 2013 Sergey V Turchin <zerg@altlinux.org> 1.10.2-alt2
- fix requires to mysql-server and mysql-client

* Mon Jul 29 2013 Sergey V Turchin <zerg@altlinux.org> 1.10.2-alt1
- new version

* Wed Jul 24 2013 Sergey V Turchin <zerg@altlinux.org> 1.10.1-alt1
- new version

* Thu Jul 11 2013 Sergey V Turchin <zerg at altlinux dot org> 1.10.0-alt2
- fix requires

* Wed Jul 10 2013 Sergey V Turchin <zerg@altlinux.org> 1.10.0-alt1
- new version

* Tue May 07 2013 Sergey V Turchin <zerg@altlinux.org> 1.9.2-alt1
- new version

* Wed Mar 13 2013 Sergey V Turchin <zerg@altlinux.org> 1.9.1-alt3
- update provides for database subpackages

* Tue Mar 12 2013 Sergey V Turchin <zerg@altlinux.org> 1.9.1-alt2
- rename database subpackages

* Tue Mar 05 2013 Sergey V Turchin <zerg@altlinux.org> 1.9.1-alt1
- new version

* Mon Feb 11 2013 Sergey V Turchin <zerg@altlinux.org> 1.9.0-alt2
- rebuilt with new boost

* Thu Jan 10 2013 Sergey V Turchin <zerg@altlinux.org> 1.9.0-alt1
- new version

* Fri Dec 07 2012 Sergey V Turchin <zerg@altlinux.org> 1.8.80-alt1
- new beta version

* Wed Nov 28 2012 Sergey V Turchin <zerg@altlinux.org> 1.8.1-alt2
- rebuilt with new boost

* Mon Oct 15 2012 Sergey V Turchin <zerg@altlinux.org> 1.8.1-alt1
- new version

* Tue Sep 25 2012 Sergey V Turchin <zerg@altlinux.org> 1.8.0-alt2
- rebuilt with new boost

* Mon Aug 06 2012 Sergey V Turchin <zerg@altlinux.org> 1.8.0-alt1
- new version

* Wed Apr 04 2012 Sergey V Turchin <zerg@altlinux.org> 1.7.2-alt0.M60P.1
- built for M60P

* Wed Apr 04 2012 Sergey V Turchin <zerg@altlinux.org> 1.7.2-alt1
- new version

* Tue Mar 13 2012 Sergey V Turchin <zerg@altlinux.org> 1.7.1-alt1
- new version

* Fri Mar 02 2012 Sergey V Turchin <zerg@altlinux.org> 1.7.0-alt2
- update code from 1.7 branch

* Thu Jan 26 2012 Sergey V Turchin <zerg@altlinux.org> 1.7.0-alt1
- new version

* Fri Dec 02 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt9
- rebuilt with new boost

* Mon Nov 21 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt7.M60P.1
- built for M60P

* Mon Nov 21 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt8
- don't start nepomuk agents if nepomukserver is off

* Wed Nov 02 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt6.M60P.1
- built for M60P

* Wed Nov 02 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt7
- using own mysql_install_db (ALT#26541)

* Tue Nov 01 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt5.M60P.1
- built for M60P

* Tue Nov 01 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt6
- fix startup mysqlcheck and mysql_upgrade

* Mon Oct 31 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt4.M60P.1
- built for M60P

* Mon Oct 31 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt5
- start mysql_upgrade after connection

* Thu Oct 20 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt3.M60T.1
- built for M60T

* Thu Oct 20 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt3.M60P.1
- built for M60P

* Thu Oct 20 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt4
- start mysqlcheck detached

* Thu Oct 13 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt2.M60P.1
- built for M60P

* Thu Oct 13 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt3
- fix requires

* Fri Oct 07 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt1.M60P.1
- built for M60P

* Fri Oct 07 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt2
- add database0 subpackage with native qt sqlite driver dependency

* Thu Oct 06 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt0.M60P.1
- built for M60P

* Thu Oct 06 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.2-alt1
- new version

* Thu Oct 06 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.1-alt1
- new version

* Tue Sep 20 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.1-alt0.M60P.1
- built for M60P

* Tue Sep 20 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.1-alt1
- new version

* Fri Aug 05 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.0-alt0.M60P.1
- built for M60P

* Fri Jul 15 2011 Sergey V Turchin <zerg@altlinux.org> 1.6.0-alt1
- new version

* Tue May 10 2011 Sergey V Turchin <zerg@altlinux.org> 1.5.3-alt1
- new version

* Fri Apr 08 2011 Sergey V Turchin <zerg@altlinux.org> 1.5.2-alt1
- new version

* Thu Mar 24 2011 Sergey V Turchin <zerg@altlinux.org> 1.5.1-alt2
- rebuilt with new boost

* Fri Mar 11 2011 Sergey V Turchin <zerg@altlinux.org> 1.5.1-alt1
- new version

* Thu Jan 27 2011 Sergey V Turchin <zerg@altlinux.org> 1.5.0-alt1
- new version

* Fri Jan 14 2011 Sergey V Turchin <zerg@altlinux.org> 1.4.3-alt1
- new version

* Wed Dec 15 2010 Sergey V Turchin <zerg@altlinux.org> 1.4.1-alt2
- rebuilt with new boost

* Mon Nov 08 2010 Sergey V Turchin <zerg@altlinux.org> 1.4.1-alt1
- new version

* Wed Aug 11 2010 Sergey V Turchin <zerg@altlinux.org> 1.4.0-alt1
- new version

* Tue Aug 10 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.90-alt1
- new version

* Thu Jul 22 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.81-alt1
- new version

* Tue Apr 20 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.1-alt4.M51.1
- build for M51

* Thu Apr 15 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.1-alt5
- fix mysql database initialization

* Wed Apr 14 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.1-alt4
- don't use mysql_install_db because incompatible with user data

* Fri Apr 09 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.1-alt3
- add upstream mysw and dbus fixes
- fix mysql ulils search paths

* Wed Mar 03 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.1-alt2
- add common plugin dirs

* Fri Feb 12 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.1-alt1
- new version

* Tue Feb 02 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.0-alt2
- add requires to database packages (default mysql because qslite don't work)

* Fri Jan 22 2010 Sergey V Turchin <zerg@altlinux.org> 1.3.0-alt1
- new version

* Mon Jan 18 2010 Sergey V Turchin <zerg@altlinux.org> 1.2.90.1070828-alt1
- svn r1070828

* Mon Aug 31 2009 Sergey V Turchin <zerg@altlinux.org> 1.2.1-alt1
- new version

* Tue Aug 04 2009 Sergey V Turchin <zerg@altlinux.org> 1.2.0-alt1
- new version

* Wed Jul 15 2009 Sergey V Turchin <zerg@altlinux.org> 1.1.95-alt1
- new version

* Tue Jun 30 2009 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt3
- rebuilt with new boost

* Mon Mar 16 2009 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt2
- fix to find agents executables

* Wed Jan 28 2009 Sergey V Turchin <zerg at altlinux dot org> 1.1.1-alt1
- new version

* Tue Jan 13 2009 Sergey V Turchin <zerg at altlinux dot org> 1.1.0-alt1
- new version
- removed deprecated macroses from specfile

* Wed Jul 30 2008 Sergey V Turchin <zerg at altlinux dot org> 1.0.0-alt1
- new version

* Tue May 27 2008 Sergey V Turchin <zerg at altlinux dot org> 0.81.0-alt1
- new version

* Tue May 06 2008 Sergey V Turchin <zerg at altlinux dot org> 0.80.0-alt1
- initial spec