summaryrefslogtreecommitdiffstats
path: root/redhat/kdepim/trinity-kdepim-3.5.13.spec
blob: baf732d4d3dcc084a8ffd84f223ce4049a65e6fe (plain)
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
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
%define _variant .opt
%define _docdir %{_datadir}/doc
%endif

# TDE 3.5.13 specific building variables
BuildRequires: cmake >= 2.8
%define tde_appdir %{_datadir}/applications/kde
%define tde_docdir %{_docdir}/kde
%define tde_includedir %{_includedir}/kde
%define tde_libdir %{_libdir}/trinity

# KDEPIM specific features
%if 0%{?fedora}
%define with_gnokii 1
%else
%define with_gnokii 0
%endif

# TDEPIM optional features
#BuildRequires: opensync-devel
%define		with_kitchensync 0


Name:		trinity-tdepim
Version:	3.5.13
Release:	7%{?dist}%{?_variant}
License:	GPL
Group:		Applications/Productivity

Vendor:		Trinity Project
Packager:	Francois Andriot <francois.andriot@free.fr>
Summary:	Personal Information Management apps from the official Trinity release

Prefix:		%{_prefix}

Source0:	kdepim-%{version}.tar.gz

# [kdepim] Fix compilation with GCC 4.7 [Bug #958]
Patch1:		kdepim-3.5.13-fix_gcc47_compilation.patch
# [tdepim] Reverse patch from GIT hash 33e649c9. [Bug #406] [Commit #2d5f15c8]
Patch2:		kdepim-3.5.13-fix_check_mail.patch
# [tdepim] Fix kmail composer crash [Bug #953]
Patch3:		kdepim-3.5.13-fix_composer_crash.patch
# [tdepim] Fix KMail counting of unread messages in the system tray icon [Commit #40c435e5]
Patch4:		kdepim-3.5.13-fix_systray_count.patch
# [tdepim] Fix knotes not appearing on the desktop when a session is restored. [Bug #987] [Commit #533f494f]
Patch5:		kdepim-3.5.13-fix_knotes_after_restored.patch
# [tdepim] Fix knotes to not close notes during saving session. [Bug #987] [Commit #c48253af]
Patch6:		kdepim-3.5.13-fix_knotes_on_suspend.patch
# [tdepim] Fix linear alphabet string errors [Bug 635] [Commit #80bc593e]
Patch7:		kdepim-3.5.13-fix_linear_alphabet.patch
# [tdepim] Fix infinite loop on IMAP4 authentication failure [Bug #1007]
Patch8:		kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch
# [tdepim] Fix infinite loop on kmime_utils addquotes [Bug #1009] [Commit #9b43d6e1] [Commit #b0c92b30]
Patch9:		kdepim-3.5.13-fix_kio_imap4_addquotes.patch
Patch10:	kdepim-3.5.13-fix_segv.patch
# [tdepim] Update kalarmd icon reference, which does not exist, to kalarm. [Commit #228ad1c6]
Patch11:	kdepim-3.5.13-fix_kalarm_icon_reference.patch
# [tdepim] Disable unneccesary fsync() in cached IMAP handler [Bug #467] [Commit #82d4a938]
Patch12:	kdepim-3.5.13-disable_fsync_in_cached_imap.patch

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	tqtinterface-devel
BuildRequires:	trinity-arts-devel
BuildRequires:	trinity-kdelibs-devel
BuildRequires:	gpgme-devel
BuildRequires:	libgpg-error-devel
BuildRequires:	flex
BuildRequires:	libical-devel
BuildRequires:	boost-devel
BuildRequires:	cyrus-sasl-devel
BuildRequires:	libXcomposite-devel
BuildRequires:	pcre-devel
BuildRequires:	glib2-devel
BuildRequires:	gcc-c++ make

BuildRequires:	libcaldav-devel
BuildRequires:	libcarddav-devel

%if 0%{?with_gnokii}
BuildRequires:	gnokii-devel
%endif

%if 0%{?fedora} >= 15
BuildRequires:	flex-static
%endif
%if 0%{?rhel} > 0 && 0%{?rhel} <= 5
BuildRequires:	trinity-libcurl-devel
%else
BuildRequires:	curl-devel
%endif

Requires:	trinity-libtdepim = %{version}-%{release}
Requires:	%{name}-kfile-plugins = %{version}-%{release}
Requires:	%{name}-kio-plugins = %{version}-%{release}
Requires:	%{name}-kresources = %{version}-%{release}
Requires:	%{name}-wizards = %{version}-%{release}
Requires:	trinity-akregator = %{version}-%{release}
Requires:	trinity-kaddressbook = %{version}-%{release}
Requires:	trinity-kalarm = %{version}-%{release}
Requires:	trinity-kandy = %{version}-%{release}
Requires:	trinity-karm = %{version}-%{release}
Requires:	trinity-kleopatra = %{version}-%{release}
Requires:	trinity-kmail = %{version}-%{release}
Requires:	trinity-kmailcvt = %{version}-%{release}
Requires:	trinity-kmobile = %{version}-%{release}
Requires:	trinity-knode = %{version}-%{release}
Requires:	trinity-knotes = %{version}-%{release}
Requires:	trinity-kode = %{version}-%{release}
Requires:	trinity-konsolekalendar = %{version}-%{release}
Requires:	trinity-kontact = %{version}-%{release}
Requires:	trinity-korganizer = %{version}-%{release}
Requires:	trinity-korn = %{version}-%{release}
Requires:	trinity-ktnef = %{version}-%{release}
Requires:	trinity-libindex = %{version}-%{release}
Requires:	trinity-libkcal = %{version}-%{release}
Requires:	trinity-libkgantt = %{version}-%{release}
Requires:	trinity-libkleopatra = %{version}-%{release}
Requires:	trinity-libkmime = %{version}-%{release}
Requires:	trinity-libkpimexchange = %{version}-%{release}
Requires:	trinity-libkpimidentities = %{version}-%{release}
Requires:	trinity-libksieve = %{version}-%{release}
Requires:	trinity-libktnef = %{version}-%{release}
Requires:	trinity-libmimelib = %{version}-%{release}

Obsoletes:	trinity-kdepim < %{version}-%{release}
Provides:	trinity-kdepim = %{version}-%{release}
Obsoletes:	tdepim < %{version}-%{release}
Provides:	tdepim = %{version}-%{release}

%description
This metapackage includes a collection of Personal Information Management
(PIM) applications provided with the official release of Trinity.

%files

##########

%package devel
Summary:	Development files for %{name}
Group:		Development/Libraries

Obsoletes:	tdepim-cmake < %{version}-%{release}

Obsoletes:	trinity-kdepim-devel < %{version}-%{release}
Provides:	trinity-kdepim-devel = %{version}-%{release}
Obsoletes:	tdepim-devel < %{version}-%{release}
Provides:	tdepim-devel = %{version}-%{release}

Requires:	%{name} = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}
Requires:	trinity-karm-devel = %{version}-%{release}
Requires:	trinity-knotes-devel = %{version}-%{release}
Requires:	trinity-kontact-devel = %{version}-%{release}
Requires:	trinity-korganizer-devel = %{version}-%{release}
Requires:	trinity-libindex-devel = %{version}-%{release}
Requires:	trinity-libkcal-devel = %{version}-%{release}
Requires:	trinity-libkgantt-devel = %{version}-%{release}
Requires:	trinity-libkleopatra-devel = %{version}-%{release}
Requires:	trinity-libkmime-devel = %{version}-%{release}
Requires:	trinity-libkpimexchange-devel = %{version}-%{release}
Requires:	trinity-libkpimidentities-devel = %{version}-%{release}
Requires:	trinity-libksieve-devel = %{version}-%{release}
Requires:	trinity-libktnef-devel = %{version}-%{release}
Requires:	trinity-libmimelib-devel = %{version}-%{release}
Requires:	%{name}-kresources-devel = %{version}-%{release}

%description devel
This metapackage includes all development files for TDE PIM.
It also contains the CMAKE macros.

%files devel
%{_datadir}/cmake/*

##########

%package -n trinity-akregator
Summary:	RSS feed aggregator for TDE
Group:		Applications/Internet
Requires:	trinity-libtdepim = %{version}-%{release}
Requires:	trinity-libkcal = %{version}-%{release}

%description -n trinity-akregator
aKregator is a fast, lightweight, and intuitive feed reader program
for TDE.  It allows you to quickly browse through hundreds of
thousands of internet feeds in a quick, efficient, and familiar way.

%files -n trinity-akregator
%{_bindir}/akregator
%{tde_libdir}/libakregatorpart.la
%{tde_libdir}/libakregatorpart.so
%{tde_libdir}/libakregator_mk4storage_plugin.la
%{tde_libdir}/libakregator_mk4storage_plugin.so
%{_libdir}/libakregatorprivate.la
%{_libdir}/libakregatorprivate.so
%{_libdir}/libakregatorprivate.so.0
%{_libdir}/libakregatorprivate.so.0.0.0
%{tde_appdir}/akregator.desktop
%{_datadir}/apps/akregator
%{_datadir}/config.kcfg/akregator.kcfg
%{_datadir}/config.kcfg/mk4config.kcfg
%{_datadir}/icons/hicolor/128x128/apps/akregator.png
%{_datadir}/icons/crystalsvg/16x16/actions/rss_tag.png
%{_datadir}/icons/crystalsvg/22x22/actions/rss_tag.png
%{_datadir}/icons/crystalsvg/32x32/actions/rss_tag.png
%{_datadir}/icons/crystalsvg/48x48/actions/rss_tag.png
%{_datadir}/icons/crystalsvg/64x64/actions/rss_tag.png
%{_datadir}/icons/crystalsvg/16x16/apps/akregator_empty.png
%{_datadir}/icons/hicolor/16x16/apps/akregator.png
%{_datadir}/icons/hicolor/22x22/apps/akregator.png
%{_datadir}/icons/hicolor/32x32/apps/akregator.png
%{_datadir}/icons/hicolor/48x48/apps/akregator.png
%{_datadir}/icons/hicolor/64x64/apps/akregator.png
%{_datadir}/icons/hicolor/scalable/apps/akregator.svgz
%{_datadir}/services/akregator_mk4storage_plugin.desktop
%{_datadir}/services/akregator_part.desktop
%{_datadir}/services/feed.protocol
%{_datadir}/services/kontact/akregatorplugin*.desktop
%{_datadir}/servicetypes/akregator_plugin.desktop
%{tde_docdir}/HTML/en/akregator
%{tde_includedir}/akregator

%post -n trinity-akregator
/sbin/ldconfig
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-akregator
/sbin/ldconfig
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-kaddressbook
Summary:	TDE addressbook application
Group:		Applications/Communications
Requires:	trinity-kdebase-pim-ioslaves
Requires:	%{name}-kresources = %{version}-%{release}

%description -n trinity-kaddressbook
KAddressBook is the main address book application for TDE; it enables you
to manage your contacts efficiently and comfortably. It can load and save
your contacts to many different locations, including the local file system,
LDAP servers, and SQL databases.

%files -n trinity-kaddressbook
%{_bindir}/kabc2mutt
%{_bindir}/kaddressbook
%{_bindir}/kabcdistlistupdater
%{tde_libdir}/kcm_kabconfig.la
%{tde_libdir}/kcm_kabconfig.so
%{tde_libdir}/kcm_kabcustomfields.la
%{tde_libdir}/kcm_kabcustomfields.so
%{tde_libdir}/kcm_kabldapconfig.la
%{tde_libdir}/kcm_kabldapconfig.so
%{tde_libdir}/ldifvcardthumbnail.la
%{tde_libdir}/ldifvcardthumbnail.so
%{tde_libdir}/libkaddrbk_*.la
%{tde_libdir}/libkaddrbk_*.so
%{tde_libdir}/libkaddressbookpart.la
%{tde_libdir}/libkaddressbookpart.so
%{_libdir}/libkabinterfaces.so.*
%{_libdir}/libkaddressbook.so.*
%{tde_appdir}/kaddressbook.desktop
%{_datadir}/apps/kaddressbook
%{_datadir}/icons/hicolor/*/apps/kaddressbook.png
%{_datadir}/services/kabconfig.desktop
%{_datadir}/services/kabcustomfields.desktop
%{_datadir}/services/kabldapconfig.desktop
%{_datadir}/services/kaddressbook
%{_datadir}/services/kontact/kaddressbookplugin.desktop
%{_datadir}/services/kresources/kabc/imap.desktop
%{_datadir}/services/ldifvcardthumbnail.desktop
%{_datadir}/servicetypes/dcopaddressbook.desktop
%{_datadir}/servicetypes/kaddressbook_contacteditorwidget.desktop
%{_datadir}/servicetypes/kaddressbookimprotocol.desktop
%{_datadir}/servicetypes/kaddressbook_extension.desktop
%{_datadir}/servicetypes/kaddressbook_view.desktop
%{_datadir}/servicetypes/kaddressbook_xxport.desktop
%{tde_docdir}/HTML/en/kaddressbook
%{_datadir}/autostart/kabcdistlistupdater.desktop
%{tde_includedir}/kaddressbook
%{tde_includedir}/kabc

# kaddressbook-devel
%{_libdir}/libkabinterfaces.la
%{_libdir}/libkabinterfaces.so
%{_libdir}/libkaddressbook.la
%{_libdir}/libkaddressbook.so

%post -n trinity-kaddressbook
/sbin/ldconfig
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kaddressbook
/sbin/ldconfig
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-kalarm
Summary:	Trinity alarm message, command and email scheduler
Group:		Applications/Communications
Requires:	trinity-libkpimidentities = %{version}-%{release}

%description -n trinity-kalarm
KAlarm provides a graphical interface to schedule personal timed events -
pop-up alarm messages, command execution and sending emails. There is a
range of options for configuring recurring events.

A pop-up alarm can show either a simple text message, or the contents of a
text or image file, It can optionally be spoken, or play a sound file. You
can choose its appearance, and set reminders. Among KAlarm's other
facilities, you can set up templates to allow KAlarm to be used as a 'tea
timer'.

As an alternative to using the graphical interface, alarms can be scheduled
from the command line or via DCOP calls from other programs. KAlarm is
TDE-based, but will also run on other desktops.

%files -n trinity-kalarm
%{_bindir}/kalarm
%{_bindir}/kalarmd
%{tde_appdir}/kalarm.desktop
%{_datadir}/applnk/.hidden/kalarmd.desktop
%{_datadir}/applnk/Applications/kalarm.desktop
%{_datadir}/apps/kalarm
%{_datadir}/autostart/kalarm.tray.desktop
%{_datadir}/autostart/kalarmd.autostart.desktop
%{_datadir}/icons/crystalsvg/*/actions/kalarm.png
%{_datadir}/icons/hicolor/*/apps/kalarm.png
%{tde_docdir}/HTML/en/kalarm

%post -n trinity-kalarm
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kalarm
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-kandy
Summary:	Trinity mobile phone utility
Group:		Applications/Communications

%description -n trinity-kandy
At the moment Kandy is more or less a terminal program with some special
features to store commands and their parameters, but is also has a simple GUI
to access the phone book of a mobile phone and it is able to save this phone
book to the TDE address book.

Kandy is aimed at mobile phones with integrated (GSM) modems.

%files -n trinity-kandy
%{_bindir}/kandy
%{_bindir}/kandy_client
%{tde_appdir}/kandy.desktop
%{_datadir}/applnk/Utilities/kandy.desktop
%{_datadir}/apps/kandy
%{_datadir}/config.kcfg/kandy.kcfg
%{tde_docdir}/HTML/en/kandy

%post -n trinity-kandy
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kandy
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-karm
Summary:	Trinity time tracker tool
Group:		Applications/Productivity

%description -n trinity-karm
KArm is a time tracker for busy people who need to keep track of the amount of
time they spend on various tasks.

%files -n trinity-karm
%{_bindir}/karm
%{_libdir}/libkarm.so.*
%{tde_libdir}/libkarmpart.la
%{tde_libdir}/libkarmpart.so
%{tde_appdir}/karm.desktop
%{_datadir}/applnk/Utilities/karm.desktop
%{_datadir}/apps/karm
%{_datadir}/apps/karmpart
%{_datadir}/icons/hicolor/*/apps/karm.png
%{_datadir}/services/karm_part.desktop
%{_datadir}/services/kontact/karmplugin.desktop
%{tde_docdir}/HTML/en/karm

%post -n trinity-karm
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-karm
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-karm-devel
Summary:	Development files for karm
Group:		Development/Libraries

%description -n trinity-karm-devel
%{summary}

%files -n trinity-karm-devel
%{_libdir}/libkarm.so
%{_libdir}/libkarm.la

%post -n trinity-karm-devel
/sbin/ldconfig

%postun -n trinity-karm-devel
/sbin/ldconfig

##########

%package kfile-plugins
Summary:	TDE File dialog plugins for palm and vcf files
Group:		Environment/Libraries

Obsoletes:	tdepim-kfile-plugins < %{version}-%{release}

%description kfile-plugins
File dialog plugins for palm and vcf files.

%files kfile-plugins
%{tde_libdir}/kfile_ics.la
%{tde_libdir}/kfile_ics.so
%{tde_libdir}/kfile_vcf.la
%{tde_libdir}/kfile_vcf.so
%{_datadir}/services/kfile_ics.desktop
%{_datadir}/services/kfile_vcf.desktop

##########

%package kio-plugins
Summary:	Trinity pim I/O Slaves
Group:		Environment/Libraries

Obsoletes:	tdepim-kio-plugins < %{version}-%{release}

%description kio-plugins
This package includes the pim kioslaves. This includes imap4, sieve,
and mbox.

%files kio-plugins
%{tde_libdir}/kio_groupwise.la
%{tde_libdir}/kio_groupwise.so
%{tde_libdir}/kio_imap4.la
%{tde_libdir}/kio_imap4.so
%{tde_libdir}/kio_mbox.la
%{tde_libdir}/kio_mbox.so
%{tde_libdir}/kio_scalix.la
%{tde_libdir}/kio_scalix.so
%{tde_libdir}/kio_sieve.la
%{tde_libdir}/kio_sieve.so
%{_datadir}/services/groupwise.protocol
%{_datadir}/services/groupwises.protocol
%{_datadir}/services/imap4.protocol
%{_datadir}/services/imaps.protocol
%{_datadir}/services/mbox.protocol
%{_datadir}/services/scalix.protocol
%{_datadir}/services/scalixs.protocol
%{_datadir}/services/sieve.protocol


##########

%package kresources
Summary:	Trinity pim resource plugins
Group:		Environment/Libraries
#Requires:	trinity-kaddressbook = %{version}-%{release}
#Requires:	trinity-korganizer = %{version}-%{release}
#Requires:	trinity-knotes = %{version}-%{release}
Requires:	libcaldav
Requires:	libcarddav

Obsoletes:	tdepim-kresources < %{version}-%{release}

%description kresources
This package includes several plugins needed to interface with groupware
servers. It also includes plugins for features such as blogging and
tracking feature plans.

%files kresources
%{tde_libdir}/kcal_caldav.la
%{tde_libdir}/kcal_caldav.so
%{tde_libdir}/kcal_groupdav.la
%{tde_libdir}/kcal_groupdav.so
%{tde_libdir}/kcal_groupwise.la
%{tde_libdir}/kcal_groupwise.so
%{tde_libdir}/kcal_kolab.la
%{tde_libdir}/kcal_kolab.so
%{tde_libdir}/kcal_scalix.la
%{tde_libdir}/kcal_scalix.so
%{tde_libdir}/kcal_newexchange.la
%{tde_libdir}/kcal_newexchange.so
%{tde_libdir}/kcal_resourcefeatureplan.la
%{tde_libdir}/kcal_resourcefeatureplan.so
%{tde_libdir}/kcal_slox.la
%{tde_libdir}/kcal_slox.so
%{tde_libdir}/kcal_xmlrpc.la
%{tde_libdir}/kcal_xmlrpc.so
%{tde_libdir}/knotes_kolab.la
%{tde_libdir}/knotes_kolab.so
%{tde_libdir}/knotes_scalix.la
%{tde_libdir}/knotes_scalix.so
%{tde_libdir}/knotes_xmlrpc.la
%{tde_libdir}/knotes_xmlrpc.so
%{_libdir}/libkabckolab.so.*
%{_libdir}/libkabcscalix.so.*
%{_libdir}/libkabc_groupdav.so.*
%{_libdir}/libkabc_groupwise.so.*
%{_libdir}/libkabc_newexchange.so.*
%{_libdir}/libkabc_slox.so.*
%{_libdir}/libkabc_xmlrpc.so.*
%{_libdir}/libkcalkolab.so.*
%{_libdir}/libkcalscalix.so.*
%{_libdir}/libkcal_caldav.so.*
%{_libdir}/libkabc_carddav.so.*
%{_libdir}/libkcal_groupdav.so.*
%{_libdir}/libkcal_groupwise.so.*
%{_libdir}/libkcal_newexchange.so.*
%{_libdir}/libkcal_resourcefeatureplan.so.*
%{_libdir}/libkcal_slox.so.*
%{_libdir}/libkcal_xmlrpc.so.*
%{_libdir}/libkgroupwarebase.so.*
%{_libdir}/libkgroupwaredav.so.*
%{_libdir}/libknoteskolab.so.*
%{_libdir}/libknotesscalix.so.*
%{_libdir}/libknotes_xmlrpc.so.*
%{_libdir}/libkslox.so.*
%{_libdir}/libgwsoap.so.*
%{_datadir}/services/kresources/kabc/kabc_groupdav.desktop
%{_datadir}/services/kresources/kabc/kabc_groupwise.desktop
%{_datadir}/services/kresources/kabc/kabc_newexchange.desktop
%{_datadir}/services/kresources/kabc/kabc_opengroupware.desktop
%{_datadir}/services/kresources/kabc/kabc_ox.desktop
%{_datadir}/services/kresources/kabc/kabc_slox.desktop
%{_datadir}/services/kresources/kabc/kabc_xmlrpc.desktop
%{_datadir}/services/kresources/kabc/kolab.desktop
%{_datadir}/services/kresources/kabc/scalix.desktop
%{_datadir}/services/kresources/kcal/exchange.desktop
%{_datadir}/services/kresources/kcal/kcal_caldav.desktop
%{_datadir}/services/kresources/kabc/kabc_carddav.desktop
%{_datadir}/services/kresources/kcal/kcal_groupdav.desktop
%{_datadir}/services/kresources/kcal/kcal_groupwise.desktop
%{_datadir}/services/kresources/kcal/kcal_newexchange.desktop
%{_datadir}/services/kresources/kcal/kcal_opengroupware.desktop
%{_datadir}/services/kresources/kcal/kcal_ox.desktop
%{_datadir}/services/kresources/kcal/kcal_resourcefeatureplan.desktop
%{_datadir}/services/kresources/kcal/kcal_slox.desktop
%{_datadir}/services/kresources/kcal/kcal_xmlrpc.desktop
%{_datadir}/services/kresources/kcal/kolab.desktop
%{_datadir}/services/kresources/kcal/scalix.desktop
%{_datadir}/services/kresources/knotes/knotes_xmlrpc.desktop
%{_datadir}/services/kresources/knotes/kolabresource.desktop
%{_datadir}/services/kresources/knotes/scalix.desktop

%{_datadir}/apps/kconf_update/upgrade-resourcetype.pl
%{_datadir}/apps/kconf_update/kolab-resource.upd

%{tde_libdir}/kabc_carddav.la
%{tde_libdir}/kabc_carddav.so
%{tde_libdir}/kabc_groupdav.la
%{tde_libdir}/kabc_groupdav.so
%{tde_libdir}/kabc_groupwise.la
%{tde_libdir}/kabc_groupwise.so
%{tde_libdir}/kabc_kolab.la
%{tde_libdir}/kabc_kolab.so
%{tde_libdir}/kabc_newexchange.la
%{tde_libdir}/kabc_newexchange.so
%{tde_libdir}/kabc_scalix.la
%{tde_libdir}/kabc_scalix.so
%{tde_libdir}/kabc_slox.la
%{tde_libdir}/kabc_slox.so
%{tde_libdir}/kabc_xmlrpc.la
%{tde_libdir}/kabc_xmlrpc.so

%post kresources
/sbin/ldconfig

%postun kresources
/sbin/ldconfig

##########

%package kresources-devel
Summary:	Development files for kresources
Group:		Development/Libraries
Requires:	%{name}-kresources = %{version}-%{release}
Requires:	libcaldav
Requires:	libcarddav

Obsoletes:	tdepim-kresources-devel < %{version}-%{release}

%description kresources-devel
%{summary}

%files kresources-devel
%{_libdir}/libkslox.la
%{_libdir}/libkslox.so
%{_libdir}/libkabc_groupdav.la
%{_libdir}/libkabc_groupdav.so
%{_libdir}/libkabc_groupwise.la
%{_libdir}/libkabc_groupwise.so
%{_libdir}/libgwsoap.la
%{_libdir}/libgwsoap.so
%{_libdir}/libkabc_carddav.la
%{_libdir}/libkabc_carddav.so
%{_libdir}/libkabc_newexchange.la
%{_libdir}/libkabc_newexchange.so
%{_libdir}/libkabc_slox.la
%{_libdir}/libkabc_slox.so
%{_libdir}/libkabc_xmlrpc.la
%{_libdir}/libkabc_xmlrpc.so
%{_libdir}/libkabckolab.la
%{_libdir}/libkabckolab.so
%{_libdir}/libkabcscalix.la
%{_libdir}/libkabcscalix.so
%{_libdir}/libkcal_caldav.la
%{_libdir}/libkcal_caldav.so
%{_libdir}/libkcal_groupdav.la
%{_libdir}/libkcal_groupdav.so
%{_libdir}/libkcal_groupwise.la
%{_libdir}/libkcal_groupwise.so
%{_libdir}/libkcal_newexchange.la
%{_libdir}/libkcal_newexchange.so
%{_libdir}/libkcal_resourcefeatureplan.la
%{_libdir}/libkcal_resourcefeatureplan.so
%{_libdir}/libkcal_slox.la
%{_libdir}/libkcal_slox.so
%{_libdir}/libkcal_xmlrpc.la
%{_libdir}/libkcal_xmlrpc.so
%{_libdir}/libkcalkolab.la
%{_libdir}/libkcalkolab.so
%{_libdir}/libkcalscalix.la
%{_libdir}/libkcalscalix.so
%{_libdir}/libkgroupwarebase.la
%{_libdir}/libkgroupwarebase.so
%{_libdir}/libkgroupwaredav.la
%{_libdir}/libkgroupwaredav.so
%{_libdir}/libknotes_xmlrpc.la
%{_libdir}/libknotes_xmlrpc.so
%{_libdir}/libknoteskolab.la
%{_libdir}/libknoteskolab.so
%{_libdir}/libknotesscalix.la
%{_libdir}/libknotesscalix.so
%{tde_includedir}/kpimprefs.h

%post kresources-devel
/sbin/ldconfig

%postun kresources-devel
/sbin/ldconfig

##########

%package wizards
Summary:	Trinity server configuration wizards
Group:		Applications/Communications

Obsoletes:	tdepim-wizards < %{version}-%{release}

%description wizards
This package contains KDE-based wizards for configuring eGroupware,
Kolab, and SUSE Linux Openexchange servers.

%files wizards
%{_bindir}/egroupwarewizard
%{_bindir}/exchangewizard
%{_bindir}/groupwarewizard
%{_bindir}/groupwisewizard
%{_bindir}/kolabwizard
%{_bindir}/scalixadmin
%{_bindir}/scalixwizard
%{_bindir}/sloxwizard
%{tde_libdir}/libegroupwarewizard.la
%{tde_libdir}/libegroupwarewizard.so
%{tde_libdir}/libexchangewizard.la
%{tde_libdir}/libexchangewizard.so
%{tde_libdir}/libgroupwisewizard.la
%{tde_libdir}/libgroupwisewizard.so
%{tde_libdir}/libkolabwizard.la
%{tde_libdir}/libkolabwizard.so
%{tde_libdir}/libscalixwizard.la
%{tde_libdir}/libscalixwizard.so
%{tde_libdir}/libsloxwizard.la
%{tde_libdir}/libsloxwizard.so
%{tde_appdir}/groupwarewizard.desktop
%{_datadir}/config.kcfg/egroupware.kcfg
%{_datadir}/config.kcfg/groupwise.kcfg
%{_datadir}/config.kcfg/kolab.kcfg
%{_datadir}/config.kcfg/scalix.kcfg
%{_datadir}/config.kcfg/slox.kcfg

%post wizards
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun wizards
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%if %{?with_kitchensync}
%package -n trinity-kitchensync
Summary:	Synchronization framework
Group:		Applications/Communications
#Suggests: konqueror-trinity
#Conflicts: kdebluetooth-irmcsync-trinity (<< 0.99+1.0beta2-4.1), ksync-trinity

%description -n trinity-kitchensync
This package contains a synchronization framework, still under heavy
development (?).  Kitchensync uses opensync.

%files -n trinity-kitchensync
%{_bindir}/kitchensync
%{tde_libdir}/libkitchensyncpart.la
%{tde_libdir}/libkitchensyncpart.so
%{_datadir}/apps/kitchensync
%{_libdir}/libkitchensync.so.*
%{_libdir}/libqopensync.so.*
%{tde_appdir}/kitchensync.desktop
%{_datadir}/icons/hicolor/*/apps/kitchensync.png

%post -n trinity-kitchensync
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kitchensync
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%endif

##########

%package -n trinity-kleopatra
Summary:	Trinity Certificate Manager
Group:		Applications/Communications
Requires:	gnupg2
Requires:	dirmngr
Requires:	pinentry

%description -n trinity-kleopatra
Kleopatra is the TDE tool for managing X.509 certificates in the gpgsm
keybox and for retrieving certificates from LDAP servers.

%files -n trinity-kleopatra
%{_bindir}/kleopatra
%{_bindir}/kwatchgnupg
%{tde_libdir}/kcm_kleopatra.la
%{tde_libdir}/kcm_kleopatra.so
%{tde_appdir}/kleopatra_import.desktop
%{_datadir}/apps/kleopatra
%{_datadir}/apps/kwatchgnupg
%{_datadir}/services/kleopatra_config_*.desktop
%{tde_docdir}/HTML/en/kleopatra
%{tde_docdir}/HTML/en/kwatchgnupg

%post -n trinity-kleopatra
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kleopatra
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-kmail
Summary:	Trinity Email client
Group:		Applications/Communications
Requires:	%{name}-kio-plugins = %{version}-%{release}
Requires:	gnupg2
Requires:	pinentry
Requires:	procmail
Requires:	trinity-kaddressbook = %{version}-%{release}
Requires:	trinity-kleopatra = %{version}-%{release}
Requires:	trinity-kdebase-pim-ioslaves

Provides: imap-client, mail-reader

%description -n trinity-kmail
KMail is a fully-featured email client that fits nicely into the TDE
desktop. It has features such as support for IMAP, POP3, multiple accounts,
mail filtering and sorting, PGP/GnuPG privacy, and inline attachments.

You need to install %{name}-kio-plugins if you want to use IMAP or
mbox files, and/or trinity-tdebase-kio-plugins if you want to use POP3.

%files -n trinity-kmail
%{_datadir}/config/kmail.antispamrc
%{_datadir}/config/kmail.antivirusrc
%{_bindir}/kmail
%{_bindir}/kmail_*.sh
%{tde_libdir}/kcm_kmail.la
%{tde_libdir}/kcm_kmail.so
%{tde_libdir}/libkmail_bodypartformatter_application_octetstream.la
%{tde_libdir}/libkmail_bodypartformatter_application_octetstream.so
%{tde_libdir}/libkmail_bodypartformatter_text_calendar.la
%{tde_libdir}/libkmail_bodypartformatter_text_calendar.so
%{tde_libdir}/libkmail_bodypartformatter_text_vcard.la
%{tde_libdir}/libkmail_bodypartformatter_text_vcard.so
%{tde_libdir}/libkmail_bodypartformatter_text_xdiff.la
%{tde_libdir}/libkmail_bodypartformatter_text_xdiff.so
%{tde_libdir}/libkmailpart.la
%{tde_libdir}/libkmailpart.so
%{_libdir}/libkmailprivate.la
%{_libdir}/libkmailprivate.so
%{tde_appdir}/KMail.desktop
%{tde_appdir}/kmail_view.desktop
%{_datadir}/apps/kconf_update/kmail-3.1-update-new-mail-notification-settings.pl
%{_datadir}/apps/kconf_update/kmail-3.1-use-UOID-for-identities.pl
%{_datadir}/apps/kconf_update/kmail-3.1.4-dont-use-UOID-0-for-any-identity.pl
%{_datadir}/apps/kconf_update/kmail-3.2-misc.sh
%{_datadir}/apps/kconf_update/kmail-3.2-update-loop-on-goto-unread-settings.sh
%{_datadir}/apps/kconf_update/kmail-3.3-aegypten.pl
%{_datadir}/apps/kconf_update/kmail-3.3-misc.pl
%{_datadir}/apps/kconf_update/kmail-3.3-move-identities.pl
%{_datadir}/apps/kconf_update/kmail-3.3-split-sign-encr-keys.sh
%{_datadir}/apps/kconf_update/kmail-3.3-use-ID-for-accounts.pl
%{_datadir}/apps/kconf_update/kmail-3.3b1-misc.pl
%{_datadir}/apps/kconf_update/kmail-3.4-misc.pl
%{_datadir}/apps/kconf_update/kmail-3.4.1-update-status-filters.pl
%{_datadir}/apps/kconf_update/kmail-3.5-trigger-flag-migration.pl
%{_datadir}/apps/kconf_update/kmail-3.5-filter-icons.pl
%{_datadir}/apps/kconf_update/kmail-pgpidentity.pl
%{_datadir}/apps/kconf_update/kmail-upd-identities.pl
%{_datadir}/apps/kconf_update/kmail.upd
%{_datadir}/apps/kconf_update/upgrade-signature.pl
%{_datadir}/apps/kconf_update/upgrade-transport.pl
%{_datadir}/apps/kmail
%{_datadir}/config.kcfg/custommimeheader.kcfg
%{_datadir}/config.kcfg/kmail.kcfg
%{_datadir}/config.kcfg/customtemplates_kfg.kcfg
%{_datadir}/config.kcfg/replyphrases.kcfg
%{_datadir}/config.kcfg/templatesconfiguration_kfg.kcfg
%{_datadir}/icons/crystalsvg/*/apps/kmaillight.png
%{_datadir}/icons/hicolor/*/apps/kmail.png
%{_datadir}/icons/hicolor/scalable/apps/kmail.svgz
%{_datadir}/services/kmail_config_*.desktop
%{_datadir}/services/kontact/kmailplugin.desktop
%{_datadir}/servicetypes/dcopimap.desktop
%{_datadir}/servicetypes/dcopmail.desktop
%{tde_docdir}/HTML/en/kmail
%{tde_includedir}/kmail
%{tde_includedir}/kmail*.h

%post -n trinity-kmail
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kmail
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########
 
%package -n trinity-kmailcvt
Summary:	Trinity KMail mail folder converter
Group:		Applications/Communications
Requires:	trinity-kmail = %{version}-%{release}

%description -n trinity-kmailcvt
Converts mail folders to KMail format.  Formats supported for import
include Outlook Express, Evolution, and plain mbox.

%files -n trinity-kmailcvt
%{_bindir}/kmailcvt
%{_datadir}/applnk/Utilities/kmailcvt.desktop
%{_datadir}/apps/kmailcvt
%{_datadir}/icons/crystalsvg/*/apps/kmailcvt.png

%post -n trinity-kmailcvt
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done

%postun -n trinity-kmailcvt
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done

##########

%package -n trinity-knode
Summary:	Trinity news reader
Group:		Applications/Internet

%description -n trinity-knode
KNode is an easy-to-use, convenient newsreader. It is intended to be usable
by inexperienced users, but also includes support for such features as
MIME attachments, article scoring, and creating and verifying GnuPG
signatures.

%files -n trinity-knode
%{_bindir}/knode
%{tde_libdir}/kcm_knode.la
%{tde_libdir}/kcm_knode.so
%{tde_libdir}/libknodepart.la
%{tde_libdir}/libknodepart.so
%{_libdir}/libknodecommon.la
%{_libdir}/libknodecommon.so
%{_libdir}/libknodecommon.so.3
%{_libdir}/libknodecommon.so.3.0.0
%{tde_appdir}/KNode.desktop
%{_datadir}/apps/knode
%{tde_docdir}/HTML/en/knode
%{_datadir}/icons/hicolor/*/apps/knode.png
%{_datadir}/icons/hicolor/*/apps/knode2.png
%{_datadir}/services/knewsservice.protocol
%{_datadir}/services/knode_config_*.desktop
%{_datadir}/services/kontact/knodeplugin.desktop

%post -n trinity-knode
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-knode
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-knotes
Summary:	Trinity sticky notes
Group:		Applications/Utilities
Requires:	trinity-tdepim-kresources = %{version}-%{release}

%description -n trinity-knotes
KNotes is a program that lets you write sticky notes. The notes are saved
automatically when you exit the program, and they display when you open the
program.  The program supports printing and mailing your notes.

%files -n trinity-knotes
%{_bindir}/knotes
%{tde_libdir}/knotes_local.la
%{tde_libdir}/knotes_local.so
%{_libdir}/libknotes.so.*
%{tde_appdir}/knotes.desktop
%{_datadir}/apps/knotes
%{_datadir}/config.kcfg/knoteconfig.kcfg
%{_datadir}/config.kcfg/knotesglobalconfig.kcfg
%{_datadir}/icons/hicolor/*/apps/knotes.png
%{_datadir}/services/kresources/knotes/imap.desktop
%{_datadir}/services/kresources/knotes/local.desktop
%{_datadir}/services/kresources/knotes_manager.desktop
%{_datadir}/services/kontact/knotesplugin.desktop
%{tde_docdir}/HTML/en/knotes

%post -n trinity-knotes
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-knotes
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-knotes-devel
Summary:	Development files for knots
Group:		Development/Libraries
Requires:	trinity-knotes = %{version}-%{release}
Requires:	%{name}-kresources-devel = %{version}-%{release}

%description -n trinity-knotes-devel
%{summary}

%files -n trinity-knotes-devel
%{_libdir}/libknotes.so
%{_libdir}/libknotes.la
%{tde_includedir}/KNotesAppIface.h
%{tde_includedir}/KNotesIface.h

%post -n trinity-knotes-devel
/sbin/ldconfig

%postun -n trinity-knotes-devel
/sbin/ldconfig

##########

%package -n trinity-kode
Summary:	Helper library for programmatic generation of C++ code
Group:		Development/Libraries

%description -n trinity-kode
This package includes a program kode for generation of C++ template files
and kxml_compiler for generation of C++ classes representing XML data
described by RelaxNG schemes.

%files -n trinity-kode
%{_bindir}/kode
%{_bindir}/kxml_compiler
%{_libdir}/libkode.la
%{_libdir}/libkode.so
%{_libdir}/libkode.so.*

%post -n trinity-kode
/sbin/ldconfig

%postun -n trinity-kode
/sbin/ldconfig

##########

%package -n trinity-konsolekalendar
Summary:	Trinity konsole personal organizer
Group:		Applications/Productivity

%description -n trinity-konsolekalendar
KonsoleKalendar is a command-line interface to TDE calendars.
Konsolekalendar complements the TDE KOrganizer by providing a console
frontend to manage your calendars.

%files -n trinity-konsolekalendar
%{_bindir}/konsolekalendar
%{tde_appdir}/konsolekalendar.desktop
%{_datadir}/icons/crystalsvg/*/apps/konsolekalendar.png
%{tde_docdir}/HTML/en/konsolekalendar

%post -n trinity-konsolekalendar
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-konsolekalendar
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-kontact
Summary:	Trinity pim application
Group:		Applications/Communications
Requires:	trinity-kmail = %{version}-%{release}
Requires:	trinity-korganizer = %{version}-%{release}
Requires:	trinity-kaddressbook = %{version}-%{release}
Requires:	trinity-knode = %{version}-%{release}
Requires:	trinity-knotes = %{version}-%{release}
Requires:	trinity-akregator = %{version}-%{release}

%description -n trinity-kontact
Kontact is the integrated solution to your personal information management
needs. It combines TDE applications like KMail, KOrganizer, and
KAddressBook into a single interface to provide easy access to mail,
scheduling, address book and other PIM functionality.

%files -n trinity-kontact
%{_bindir}/kontact
%{tde_libdir}/kcm_kmailsummary.la
%{tde_libdir}/kcm_kmailsummary.so
%{tde_libdir}/kcm_kontact.la
%{tde_libdir}/kcm_kontact.so
%{tde_libdir}/kcm_kontactknt.la
%{tde_libdir}/kcm_kontactknt.so
%{tde_libdir}/kcm_kontactsummary.la
%{tde_libdir}/kcm_kontactsummary.so
%{tde_libdir}/kcm_korgsummary.la
%{tde_libdir}/kcm_korgsummary.so
%{tde_libdir}/kcm_sdsummary.la
%{tde_libdir}/kcm_sdsummary.so
%{tde_libdir}/libkontact_*.la
%{tde_libdir}/libkontact_*.so
%{_libdir}/libkontact.so.*
%{_libdir}/libkpinterfaces.so.*
%{tde_appdir}/Kontact.desktop
%{tde_appdir}/kontactdcop.desktop
%{_datadir}/apps/kontact
%{_datadir}/apps/kontactsummary/kontactsummary_part.rc
%{_datadir}/config.kcfg/kontact.kcfg
%{_datadir}/icons/hicolor/*/apps/kontact.png
%{_datadir}/icons/crystalsvg/*/actions/kontact_*.png
%{_datadir}/services/kcmkmailsummary.desktop
%{_datadir}/services/kcmkontactknt.desktop
%{_datadir}/services/kcmkontactsummary.desktop
%{_datadir}/services/kcmkorgsummary.desktop
%{_datadir}/services/kcmsdsummary.desktop
%{_datadir}/services/kontact/newstickerplugin.desktop
%{_datadir}/services/kontact/specialdatesplugin.desktop
%{_datadir}/services/kontact/summaryplugin.desktop
%{_datadir}/services/kontact/weatherplugin.desktop
%{_datadir}/services/kontactconfig.desktop
%{_datadir}/servicetypes/kontactplugin.desktop
%{tde_docdir}/HTML/en/kontact
%{tde_docdir}/HTML/en/kpilot

%post -n trinity-kontact
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kontact
for f in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-kontact-devel
Summary:	Development files for kontact
Group:		Development/Libraries
Requires:	trinity-kontact = %{version}-%{release}

%description -n trinity-kontact-devel
%{summary}

%files -n trinity-kontact-devel
%{_libdir}/libkontact.la
%{_libdir}/libkontact.so
%{_libdir}/libkpinterfaces.la
%{_libdir}/libkpinterfaces.so
%{tde_includedir}/kontact

%post -n trinity-kontact-devel
/sbin/ldconfig

%postun -n trinity-kontact-devel
/sbin/ldconfig

##########

%package -n trinity-korganizer
Summary:	Trinity personal organizer
Group:		Applications/Productivity
Requires:	trinity-libkpimidentities = %{version}-%{release}
Requires:	trinity-libkpimexchange = %{version}-%{release}
Requires:	%{name}-kresources = %{version}-%{release}

%description -n trinity-korganizer
This package contains KOrganizer, a calendar and scheduling program.

KOrganizer aims to be a complete program for organizing appointments,
contacts, projects, etc. KOrganizer natively supports information interchange
with other calendar applications, through the industry standard vCalendar
personal data interchange file format. This eases the move from other
modern PIMs to KOrganizer.

KOrganizer offers full synchronization with Palm Pilots, if kpilot is
installed.

%files -n trinity-korganizer
%{_bindir}/ical2vcal
%{_bindir}/korgac
%{_bindir}/korganizer
%{tde_libdir}/kcm_korganizer.la
%{tde_libdir}/kcm_korganizer.so
%{tde_libdir}/libkorg_*.la
%{tde_libdir}/libkorg_*.so
%{tde_libdir}/libkorganizerpart.la
%{tde_libdir}/libkorganizerpart.so
%{_libdir}/libkocorehelper.so.*
%{_libdir}/libkorg_stdprinting.so.*
%{_libdir}/libkorganizer.so.*
%{_libdir}/libkorganizer_calendar.so.*
%{_libdir}/libkorganizer_eventviewer.so.*
%{tde_appdir}/korganizer.desktop
%{_datadir}/apps/kconf_update/korganizer.upd
%{_datadir}/apps/korgac
%{_datadir}/apps/korganizer
%{_datadir}/autostart/korgac.desktop
%{_datadir}/config.kcfg/korganizer.kcfg
%{_datadir}/icons/hicolor/*/apps/korganizer.png
%{_datadir}/services/kontact/korganizerplugin.desktop
%{_datadir}/services/kontact/journalplugin.desktop
%{_datadir}/services/kontact/todoplugin.desktop
%{_datadir}/services/korganizer_*.desktop
%{_datadir}/services/korganizer
%{_datadir}/services/webcal.protocol
%{_datadir}/servicetypes/calendardecoration.desktop
%{_datadir}/servicetypes/calendarplugin.desktop
%{_datadir}/servicetypes/dcopcalendar.desktop
%{_datadir}/servicetypes/korganizerpart.desktop
%{_datadir}/servicetypes/korgprintplugin.desktop
%{tde_docdir}/HTML/en/korganizer
%{_includedir}/korganizer
%{tde_includedir}/korganizer
%{tde_includedir}/calendar

%post -n trinity-korganizer
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-korganizer
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-korganizer-devel
Summary:	Development files for korganizer
Group:		Development/Libraries
Requires:	trinity-korganizer = %{version}-%{release}

%description -n trinity-korganizer-devel
%{summary}

%files -n trinity-korganizer-devel
%{_libdir}/libkocorehelper.la
%{_libdir}/libkocorehelper.so
%{_libdir}/libkorg_stdprinting.la
%{_libdir}/libkorg_stdprinting.so
%{_libdir}/libkorganizer.la
%{_libdir}/libkorganizer.so
%{_libdir}/libkorganizer_calendar.la
%{_libdir}/libkorganizer_calendar.so
%{_libdir}/libkorganizer_eventviewer.la
%{_libdir}/libkorganizer_eventviewer.so

%post -n trinity-korganizer-devel
/sbin/ldconfig

%postun -n trinity-korganizer-devel
/sbin/ldconfig

##########

%package -n trinity-korn
Summary:	Trinity mail checker
Group:		Applications/Communications
Requires:	%{name}-kio-plugins = %{version}-%{release}
#Requires:	tdebase-kio-plugins-trinity

%description -n trinity-korn
Korn is a TDE mail checker that can display a small summary in the Kicker
tray.  It supports checking mbox, pop3, imap4, and nntp sources.

Once mail is received you can have Korn run a third party program or change
the color/icon of the Kicker display.  In addition to this you can have
Korn run a program once you click on the docked icon in Kicker.

%files -n trinity-korn
%{_bindir}/korn
%{_libdir}/kconf_update_bin/korn-3-4-config_change
%{tde_appdir}/KOrn.desktop
%{_datadir}/apps/kconf_update/korn-3-4-config_change.upd
%{_datadir}/apps/kconf_update/korn-3-5-metadata-update.pl
%{_datadir}/apps/kconf_update/korn-3-5-ssl-update.pl
%{_datadir}/apps/kconf_update/korn-3-5-update.upd
%{_datadir}/icons/hicolor/*/apps/korn.png
%{tde_docdir}/HTML/en/korn

%post -n trinity-korn
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-korn
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-ktnef
Summary:	Trinity TNEF viewer
Group:		Applications/Communications

%description -n trinity-ktnef
The TNEF File Viewer allows you to handle mail attachments using the TNEF
format. These attachments are usually found in mails coming from Microsoft
mail servers and embed the mail properties as well as the actual attachments.

%files -n trinity-ktnef
%{_bindir}/ktnef
%{tde_appdir}/ktnef.desktop
%{_datadir}/apps/ktnef
%{_datadir}/icons/hicolor/*/apps/ktnef.png
%{_datadir}/icons/locolor/*/apps/ktnef.png
%{_datadir}/mimelnk/application/ms-tnef.desktop
%{tde_docdir}/HTML/en/ktnef

%post -n trinity-ktnef
for f in hicolor locolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-ktnef
for f in hicolor locolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%package -n trinity-libindex
Summary:	Trinity indexing library
Group:		Environment/Libraries

%description -n trinity-libindex
This library provides text indexing and is currently used by KMail
to implement fast searches in mail bodies.

This is the runtime package for programs that use the libindex library.

%files -n trinity-libindex
%{_libdir}/libindex.so.*

%post -n trinity-libindex
/sbin/ldconfig

%postun -n trinity-libindex
/sbin/ldconfig

##########

%package -n trinity-libindex-devel
Summary:	Trinity indexing library [development]
Group:		Development/Libraries
Requires:	trinity-libindex = %{version}-%{release}

%description -n trinity-libindex-devel
This library provides text indexing and is currently used by KMail
to implement searching through mail text.

This is the development package which contains the headers for the libindex-trinity
library.

%files -n trinity-libindex-devel
%{_bindir}/indexlib-config
%{tde_includedir}/index
%{_libdir}/libindex.la
%{_libdir}/libindex.so

%post -n trinity-libindex-devel
/sbin/ldconfig

%postun -n trinity-libindex-devel
/sbin/ldconfig

##########

%package -n trinity-libkcal
Summary:	Trinity calendaring library
Group:		Environment/Libraries
#Requires:	%{name}-kresources = %{version}-%{release}

%description -n trinity-libkcal
This library provides a C++ API for handling the vCalendar and iCalendar
formats.

This is the runtime package for programs that use the libkcal-trinity library.

%files -n trinity-libkcal
%{tde_libdir}/kcal_kabc.la
%{tde_libdir}/kcal_kabc.so
%{tde_libdir}/kcal_localdir.la
%{tde_libdir}/kcal_localdir.so
%{tde_libdir}/kcal_local.la
%{tde_libdir}/kcal_local.so
%{tde_libdir}/kcal_remote.la
%{tde_libdir}/kcal_remote.so
%{_libdir}/libkcal.so.*
%{_libdir}/libkcal_resourceremote.so.*
%{_libdir}/libkholidays.so.*
%{_datadir}/apps/libkholidays
%{_datadir}/services/kresources/kcal/imap.desktop
%{_datadir}/services/kresources/kcal/kabc.desktop
%{_datadir}/services/kresources/kcal/local.desktop
%{_datadir}/services/kresources/kcal/localdir.desktop
%{_datadir}/services/kresources/kcal/remote.desktop
%{_datadir}/services/kresources/kcal_manager.desktop

%post -n trinity-libkcal
/sbin/ldconfig

%postun -n trinity-libkcal
/sbin/ldconfig

##########

%package -n trinity-libkcal-devel
Summary:	Trinity calendaring library [development]
Group:		Development/Libraries
Requires:	trinity-libkcal = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}
Requires:	trinity-libktnef-devel = %{version}-%{release}

%description -n trinity-libkcal-devel
This library provides a C++ API for handling the vCalendar and iCalendar
formats.

This is the development package which contains the headers for the libkcal-trinity
library.

%files -n trinity-libkcal-devel
%{tde_includedir}/libemailfunctions/idmapper.h
%{tde_includedir}/libkcal
%{_includedir}/libkcal
%{_libdir}/libkcal.la
%{_libdir}/libkcal.so
%{_libdir}/libkcal_resourceremote.la
%{_libdir}/libkcal_resourceremote.so
%{_libdir}/libkholidays.la
%{_libdir}/libkholidays.so

%post -n trinity-libkcal-devel
/sbin/ldconfig

%postun -n trinity-libkcal-devel
/sbin/ldconfig

##########

%package -n trinity-libtdepim
Summary:	Trinity PIM library
Group:		Environment/Libraries
Requires:	trinity-libkcal = %{version}-%{release}

Obsoletes:	libtdepim < %{version}-%{release}
Provides:	libtdepim = %{version}-%{release}

%description -n trinity-libtdepim
This is the runtime package for programs that use the libtdepim-trinity library.

%files -n trinity-libtdepim
%{tde_libdir}/plugins/designer/[kt]depimwidgets.la
%{tde_libdir}/plugins/designer/[kt]depimwidgets.so
%{tde_libdir}/plugins/designer/kpartsdesignerplugin.la
%{tde_libdir}/plugins/designer/kpartsdesignerplugin.so
%{_libdir}/lib[kt]depim.so.*
%{_datadir}/apps/[kt]depimwidgets
%{_datadir}/apps/lib[kt]depim
%{_datadir}/apps/[kt]depim
%{_datadir}/config.kcfg/pimemoticons.kcfg
%{_datadir}/icons/crystalsvg/22x22/actions/button_fewer.png
%{_datadir}/icons/crystalsvg/22x22/actions/button_more.png

%post -n trinity-libtdepim
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig

%postun -n trinity-libtdepim
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig

##########

%package -n trinity-libtdepim-devel
Summary:	Trinity PIM library [development]
Group:		Development/Libraries
Requires:	trinity-libtdepim = %{version}-%{release}
Requires:	trinity-kdelibs-devel

Obsoletes:	libtdepim-devel < %{version}-%{release}
Provides:	libtdepim-devel = %{version}-%{release}

%description -n trinity-libtdepim-devel
This is the development package which contains the headers for the libtdepim-trinity
library.

%files -n trinity-libtdepim-devel
%{tde_includedir}/[kt]depimmacros.h
%{_libdir}/lib[kt]depim.la
%{_libdir}/lib[kt]depim.so

%post -n trinity-libtdepim-devel
/sbin/ldconfig

%postun -n trinity-libtdepim-devel
/sbin/ldconfig

##########

%package -n trinity-libkgantt
Summary:	Trinity gantt charting library
Group:		Environment/Libraries

%description -n trinity-libkgantt
This is the runtime package for programs that use the libkgantt-trinity library.

%files -n trinity-libkgantt
%{_libdir}/libkgantt.so.*
%{_datadir}/apps/kgantt

%post -n trinity-libkgantt
/sbin/ldconfig

%postun -n trinity-libkgantt
/sbin/ldconfig

##########

%package -n trinity-libkgantt-devel
Summary:	Trinity gantt charting library [development]
Group:		Development/Libraries
Requires:	trinity-libkgantt = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}

%description -n trinity-libkgantt-devel
This is the development package which contains the headers for the libkgantt-trinity
library.

%files -n trinity-libkgantt-devel
%{tde_includedir}/kgantt
%{_libdir}/libkgantt.la
%{_libdir}/libkgantt.so

%post -n trinity-libkgantt-devel
/sbin/ldconfig

%postun -n trinity-libkgantt-devel
/sbin/ldconfig

##########

%package -n trinity-libkleopatra
Summary:	TDE GnuPG interface libraries
Group:		Environment/Libraries
Requires:	gnupg

%description -n trinity-libkleopatra
This library is used by several TDE applications to interface to the
GnuPG program.

This is the runtime package for programs that use the libkleopatra-trinity library.

%files -n trinity-libkleopatra
%{_datadir}/config/libkleopatrarc
%{_libdir}/libgpgme++.so.*
%{_libdir}/libkleopatra.so.*
%{_libdir}/libkpgp.so.*
%{_libdir}/libqgpgme.so.*
%{_datadir}/apps/kconf_update/kpgp-3.1-upgrade-address-data.pl
%{_datadir}/apps/kconf_update/kpgp.upd
%{_datadir}/apps/libkleopatra/
%{_datadir}/icons/crystalsvg/*/apps/gpg.png
%{_datadir}/icons/crystalsvg/*/apps/gpgsm.png

%post -n trinity-libkleopatra
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig

%postun -n trinity-libkleopatra
for f in crystalsvg ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig

##########

%package -n trinity-libkleopatra-devel
Summary:	Trinity GnuPG interface libraries [development]
Group:		Development/Libraries
Requires:	trinity-libkleopatra = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}

%description -n trinity-libkleopatra-devel
This library is used by several KDE applications to interface to the
GnuPG program.

This is the development package which contains the headers for the
libkleopatra-trinity library.

%files -n trinity-libkleopatra-devel
%{tde_includedir}/gpgme++
%{_includedir}/gpgme++
%{tde_includedir}/kleo
%{_includedir}/kleo
%{tde_includedir}/qgpgme
%{_libdir}/libgpgme++.la
%{_libdir}/libgpgme++.so
%{_libdir}/libkleopatra.la
%{_libdir}/libkleopatra.so
%{_libdir}/libkpgp.la
%{_libdir}/libkpgp.so
%{_libdir}/libqgpgme.la
%{_libdir}/libqgpgme.so

%post -n trinity-libkleopatra-devel
/sbin/ldconfig

%postun -n trinity-libkleopatra-devel
/sbin/ldconfig

##########

%package -n trinity-libkmime
Summary:	Trinity MIME interface library
Group:		Environment/Libraries
#Conflicts:	trinity-libmimelib

%description -n trinity-libkmime
This library provides a C++ interface to MIME messages, parsing them into
an object tree.

%files -n trinity-libkmime
%{_libdir}/libkmime.so.*

%post -n trinity-libkmime
/sbin/ldconfig

%postun -n trinity-libkmime
/sbin/ldconfig

##########

%package -n trinity-libkmime-devel
Summary:	Development files for libkmime
Group:		Development/Libraries
Requires:	trinity-libkmime = %{version}-%{release}

%description -n trinity-libkmime-devel
%{summary}

%files -n trinity-libkmime-devel
%{_libdir}/libkmime.la
%{_libdir}/libkmime.so

%post -n trinity-libkmime-devel
/sbin/ldconfig

%postun -n trinity-libkmime-devel
/sbin/ldconfig

##########

%package -n trinity-libkpimexchange
Summary:	Trinity PIM Exchange library
Group:		Environment/Libraries

%description -n trinity-libkpimexchange
This is the runtime package for programs that use the libkpimexchange-trinity
library. 

%files -n trinity-libkpimexchange
%{tde_libdir}/resourcecalendarexchange.la
%{tde_libdir}/resourcecalendarexchange.so
%{_libdir}/libkpimexchange.so.*

%post -n trinity-libkpimexchange
/sbin/ldconfig

%postun -n trinity-libkpimexchange
/sbin/ldconfig

##########

%package -n trinity-libkpimexchange-devel
Summary:	Trinity PIM Exchange library [development]
Group:		Development/Libraries
Requires:	trinity-libkpimexchange = %{version}-%{release}
Requires:	trinity-libkcal-devel = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}

%description -n trinity-libkpimexchange-devel
This is the development package which contains the headers for the
libkpimexchange-trinity library.

%files -n trinity-libkpimexchange-devel
%{tde_includedir}/[kt]depim/exchangeaccount.h
%{tde_includedir}/[kt]depim/exchangeclient.h
%{_libdir}/libkpimexchange.la
%{_libdir}/libkpimexchange.so

%post -n trinity-libkpimexchange-devel
/sbin/ldconfig

%postun -n trinity-libkpimexchange-devel
/sbin/ldconfig

##########

%package -n trinity-libkpimidentities
Summary:	Trinity PIM user identity information library
Group:		Environment/Libraries

%description -n trinity-libkpimidentities
This library provides information to TDE programs about user identity,
such as email address, organization, etc.

This is the runtime package for programs that use the libkpimidentities-trinity
library.

%files -n trinity-libkpimidentities
%{_libdir}/libkpimidentities.so.*

%post -n trinity-libkpimidentities
/sbin/ldconfig

%postun -n trinity-libkpimidentities
/sbin/ldconfig

##########

%package -n trinity-libkpimidentities-devel
Summary:	Development files for libkpimidentities
Group:		Development/Libraries
Requires:	trinity-libkpimidentities = %{version}-%{release}

%description -n trinity-libkpimidentities-devel
%{summary}

%files -n trinity-libkpimidentities-devel
%{_libdir}/libkpimidentities.la
%{_libdir}/libkpimidentities.so

%post -n trinity-libkpimidentities-devel
/sbin/ldconfig

%postun -n trinity-libkpimidentities-devel
/sbin/ldconfig

##########

%package -n trinity-libksieve
Summary:	Trinity mail/news message filtering library
Group:		Environment/Libraries

%description -n trinity-libksieve
This is the runtime package for programs that use the libksieve-trinity library.

%files -n trinity-libksieve
%{_libdir}/libksieve.so.*

%post -n trinity-libksieve
/sbin/ldconfig

%postun -n trinity-libksieve
/sbin/ldconfig

##########

%package -n trinity-libksieve-devel
Summary:	Trinity mail/news message filtering library [development]
Group:		Development/Libraries
Requires:	trinity-libksieve = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}

%description -n trinity-libksieve-devel
This is the development package which contains the headers for the libksieve-trinity
library.

%files -n trinity-libksieve-devel
%{tde_includedir}/ksieve
%{_libdir}/libksieve.la
%{_libdir}/libksieve.so

%post -n trinity-libksieve-devel
/sbin/ldconfig

%postun -n trinity-libksieve-devel
/sbin/ldconfig

##########

%package -n trinity-libktnef
Summary:	Library for handling KTNEF email attachments
Group:		Environment/Libraries

%description -n trinity-libktnef
This library handles mail attachments using the TNEF format. These
attachments are usually found in mails coming from Microsoft mail
servers and embed the mail properties as well as the actual
attachments.
.
This is the runtime library for packages using the ktnef-trinity library.

%files -n trinity-libktnef
%{_libdir}/libktnef.so.*

%post -n trinity-libktnef
/sbin/ldconfig

%postun -n trinity-libktnef
/sbin/ldconfig

##########

%package -n trinity-libktnef-devel
Summary:	KTNEF handler library [development]
Group:		Development/Libraries
Requires:	trinity-libktnef = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}

%description -n trinity-libktnef-devel
This library handles mail attachments using the TNEF format. These
attachments are usually found in mails coming from Microsoft mail
servers and embed the mail properties as well as the actual
attachments.

This is the development package which contains the headers for the
ktnef-trinity library.

%files -n trinity-libktnef-devel
%{tde_includedir}/ktnef
%{_libdir}/libktnef.la
%{_libdir}/libktnef.so

%post -n trinity-libktnef-devel
/sbin/ldconfig

%postun -n trinity-libktnef-devel
/sbin/ldconfig

##########

%package -n trinity-libmimelib
Summary:	Trinity mime library
Group:		Environment/Libraries

%description -n trinity-libmimelib
This library is used by several Trinity applications to handle mime types.

This is the runtime package for programs that use the libmimelib-trinity library.

%files -n trinity-libmimelib
%{_libdir}/libmimelib.so.*

%post -n trinity-libmimelib
/sbin/ldconfig

%postun -n trinity-libmimelib
/sbin/ldconfig

##########

%package -n trinity-libmimelib-devel
Summary:	Trinity mime library [development]
Group:		Development/Libraries
Requires:	trinity-libmimelib = %{version}-%{release}

%description -n trinity-libmimelib-devel
This library is used by several KDE applications to handle mime types.

This is the development package which contains the headers for the
libmimelib library.

%files -n trinity-libmimelib-devel
%{tde_includedir}/mimelib
%{_libdir}/libmimelib.la
%{_libdir}/libmimelib.so

%post -n trinity-libmimelib-devel
/sbin/ldconfig

%postun -n trinity-libmimelib-devel
/sbin/ldconfig

##########

%package -n trinity-kmobile
Summary:	Synchronize and manage mobile phone with your PC.
Group:		Applications/Communications

%description -n trinity-kmobile
KMobileTools is a nice TDE-based application that allows to synchronize 
and manage mobile phones with your PC. It handles full SMS control, 
dialing calls, phonebook, and phone status monitoring.

%files -n trinity-kmobile
%{_bindir}/kmobile
%{_datadir}/icons/default.kde/32x32/devices/mobile_camera.png
%{_datadir}/icons/default.kde/32x32/devices/mobile_musicplayer.png
%{_datadir}/icons/default.kde/32x32/devices/mobile_organizer.png
%{_datadir}/icons/default.kde/32x32/devices/mobile_phone.png
%{_datadir}/icons/default.kde/32x32/devices/mobile_unknown.png
%{_datadir}/icons/hicolor/*/apps/kmobile.png
%{_datadir}/services/libkmobile_digicam.desktop
%{_datadir}/services/libkmobile_gammu.desktop
%{_datadir}/services/libkmobile_skeleton.desktop
%{_datadir}/servicetypes/libkmobile.desktop
%{_datadir}/apps/kmobile/kmobileui.rc
%{tde_appdir}/kmobile.desktop
%{tde_libdir}/libkmobile_skeleton.la
%{tde_libdir}/libkmobile_skeleton.so
%{_libdir}/libkmobileclient.la
%{_libdir}/libkmobileclient.so
%{_libdir}/libkmobiledevice.la
%{_libdir}/libkmobiledevice.so

%post -n trinity-kmobile
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun -n trinity-kmobile
for f in hicolor ; do
  touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

##########

%prep
%setup -q -n kdepim
%patch1 -p1 -b .gcc47
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1 -b .addquotes
%patch10 -p1 -b .segv
%patch11 -p1
%patch12 -p1


%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{_libdir}/pkgconfig"
export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt"
export LD_LIBRARY_PATH="%{_libdir}"

%__mkdir build
cd build
%cmake \
  -DWITH_ARTS=ON \
  -DWITH_SASL=ON \
  -DWITH_NEWDISTRLISTS=ON  \
%if 0%{?with_gnokii}
  -DWITH_GNOKII=ON \
%else
  -DWITH_GNOKII=OFF \
%endif
  -DWITH_EXCHANGE=ON \
  -DWITH_EGROUPWARE=ON \
  -DWITH_KOLAB=ON \
  -DWITH_SLOX=ON \
  -DWITH_GROUPWISE=ON \
  -DWITH_FEATUREPLAN=ON \
  -DWITH_GROUPDAV=ON \
  -DWITH_BIRTHDAYS=ON \
  -DWITH_NEWEXCHANGE=ON \
  -DWITH_SCALIX=ON \
  -DWITH_CALDAV=ON \
  -DWITH_CARDDAV=ON \
  -DWITH_INDEXLIB=ON \
%if %{?with_kitchensync}
  -DBUILD_KITCHENSYNC=ON \
%endif
  -DBUILD_ALL=ON \
  ..

%__make  %{?_smp_mflags}

%install
export PATH="%{_bindir}:${PATH}"
%__rm -rf %{?buildroot}
%__make install DESTDIR=%{?buildroot} -C build

%clean
%__rm -rf %{?buildroot}


%changelog
* Sat Jun 30 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-7
- Rename 'tdepim' to 'trinity-tdepim'
- Disable unneccesary fsync() in cached IMAP handler [Bug #467] [Commit #82d4a938]

* Sat Jun 16 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-6
- Rename 'kdepim' to 'tdepim'
- Add 'Requires: trinity-kdebase-pim-ioslaves' to add POP3 support to kmail
- Split into several packages
- Update kalarmd icon reference, which does not exist, to kalarm. [Commit #228ad1c6]

* Sun May 27 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-5
- Fix KMail counting of unread messages in the system tray icon [Commit #40c435e5]
- Fix knotes not appearing on the desktop when a session is restored. [Bug #987] [Commit #533f494f]
- Fix knotes to not close notes during saving session. [Bug #987] [Commit #c48253af]
- Fix linear alphabet string errors [Bug 635] [Commit #80bc593e]
- Fix infinite loop on IMAP4 authentication failure [Bug #1007]

* Wed Apr 25 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-4
- Fix compilation with GCC 4.7 [Bug #958]
- Reverse patch from GIT hash 33e649c9. [Bug #406] [Commit #2d5f15c8]
- Fix kmail composer crash [Bug #953]

* Sun Nov 27 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-3
- Add missing files '*.la'

* Fri Nov 04 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-2
- Updates BuildRequires

* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-1
- Initial release for RHEL 6, RHEL 5 and Fedora 15

* Mon Sep 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-0
- Import to GIT