summaryrefslogtreecommitdiffstats
path: root/redhat/tdepim/tdepim-14.0.0.spec
blob: faa41871ccb3e63ec90e83fbbe9f7caeb7b3ad56 (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
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?tde_prefix}" != "/usr"
%define _variant .opt
%endif

%define tde_version 14.0.0

# TDE specific building variables
%define tde_bindir %{tde_prefix}/bin
%define tde_datadir %{tde_prefix}/share
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}

%define tde_tdeappdir %{tde_datadir}/applications/tde
%define tde_tdedocdir %{tde_docdir}/tde
%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity

%define _docdir %{tde_docdir}

# KDEPIM specific features
%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
%define with_gnokii 1
BuildRequires:	gnokii-devel
%endif

# TDEPIM optional features
#define		with_kitchensync 1


Name:		trinity-tdepim
Version:	%{tde_version}
Release:	%{?!preversion:1}%{?preversion:0_%{preversion}}%{?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:		%{tde_prefix}

Source0:	%{name}-%{version}%{?preversion:~%{preversion}}.tar.gz

# [tdepim] Missing LDFLAGS cause FTBFS on MGA2/MDV2011
Patch14:	kdepim-3.5.13-missing_ldflags.patch

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

BuildRequires:	trinity-tqtinterface-devel >= %{tde_version}
BuildRequires:	trinity-arts-devel >= %{tde_version}
BuildRequires:	trinity-tdelibs-devel >= %{tde_version}
BuildRequires:	trinity-libcaldav-devel
BuildRequires:	trinity-libcarddav-devel

BuildRequires:	cmake >= 2.8
BuildRequires:	gpgme-devel
BuildRequires:	libgpg-error-devel
BuildRequires:	flex
BuildRequires:	libical-devel
BuildRequires:	boost-devel
BuildRequires:	pcre-devel
BuildRequires:	glib2-devel
BuildRequires:	gcc-c++
BuildRequires:	make
BuildRequires:	libidn-devel

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

# SASL support
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires:	%{_lib}sasl2-devel
%else
BuildRequires:	cyrus-sasl-devel
%endif

# XCOMPOSITE support
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires:	%{_lib}xcomposite%{?mgaversion:1}-devel
%endif
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?suse_version} >= 1220
BuildRequires:	libXcomposite-devel
%endif

# XSCREENSAVER support
#  Disabled on RHEL4
%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 5 || 0%{?suse_version}
%define with_xscreensaver 1
%if 0%{?rhel} == 5
BuildRequires:	xorg-x11-proto-devel
BuildRequires:	gnome-screensaver
%endif
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires:	%{_lib}xscrnsaver%{?mgaversion:1}-devel
%endif
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1220
BuildRequires:	libXScrnSaver-devel
%endif
%if 0%{?suse_version} == 1140
BuildRequires:	xscreensaver
%endif
%endif


Requires:	trinity-libtdepim = %{version}-%{release}
Requires:	%{name}-kfile-plugins = %{version}-%{release}
Requires:	%{name}-tdeio-plugins = %{version}-%{release}
Requires:	%{name}-tderesources = %{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-akregator-devel = %{version}-%{release}
Requires:	trinity-libtdepim-devel = %{version}-%{release}
Requires:	trinity-kaddressbook-devel = %{version}-%{release}
Requires:	trinity-karm-devel = %{version}-%{release}
Requires:	trinity-kmail-devel = %{version}-%{release}
Requires:	trinity-knode-devel = %{version}-%{release}
Requires:	trinity-knotes-devel = %{version}-%{release}
Requires:	trinity-kode-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}-tderesources-devel = %{version}-%{release}

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

%files devel
%defattr(-,root,root,-)
%{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/akregator
%{tde_tdelibdir}/libakregatorpart.la
%{tde_tdelibdir}/libakregatorpart.so
%{tde_tdelibdir}/libakregator_mk4storage_plugin.la
%{tde_tdelibdir}/libakregator_mk4storage_plugin.so
%{tde_libdir}/libakregatorprivate.so.*
%{tde_tdeappdir}/akregator.desktop
%{tde_datadir}/apps/akregator
%{tde_datadir}/config.kcfg/akregator.kcfg
%{tde_datadir}/config.kcfg/mk4config.kcfg
%{tde_datadir}/icons/crystalsvg/*/actions/rss_tag.png
%{tde_datadir}/icons/crystalsvg/16x16/apps/akregator_empty.png
%{tde_datadir}/icons/hicolor/*/apps/akregator.png
%{tde_datadir}/icons/hicolor/scalable/apps/akregator.svgz
%{tde_datadir}/services/akregator_mk4storage_plugin.desktop
%{tde_datadir}/services/akregator_part.desktop
%{tde_datadir}/services/feed.protocol
%{tde_datadir}/services/kontact/akregatorplugin*.desktop
%{tde_datadir}/servicetypes/akregator_plugin.desktop
%{tde_tdedocdir}/HTML/en/akregator/

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

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

##########

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

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

%files -n trinity-akregator-devel
%defattr(-,root,root,-)
%{tde_tdeincludedir}/akregator/
%{tde_libdir}/libakregatorprivate.la
%{tde_libdir}/libakregatorprivate.so

%post -n trinity-akregator-devel
/sbin/ldconfig || :

%postun -n trinity-akregator-devel
/sbin/ldconfig || :

##########

%package -n trinity-kaddressbook
Summary:	TDE addressbook application
Group:		Applications/Communications
Requires:	trinity-kdebase-pim-ioslaves
Requires:	%{name}-tderesources = %{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
%defattr(-,root,root,-)
%{tde_bindir}/kabc2mutt
%{tde_bindir}/kaddressbook
%{tde_bindir}/kabcdistlistupdater
%{tde_tdelibdir}/kcm_kabconfig.la
%{tde_tdelibdir}/kcm_kabconfig.so
%{tde_tdelibdir}/kcm_kabcustomfields.la
%{tde_tdelibdir}/kcm_kabcustomfields.so
%{tde_tdelibdir}/kcm_kabldapconfig.la
%{tde_tdelibdir}/kcm_kabldapconfig.so
%{tde_tdelibdir}/ldifvcardthumbnail.la
%{tde_tdelibdir}/ldifvcardthumbnail.so
%{tde_tdelibdir}/libkaddrbk_*.la
%{tde_tdelibdir}/libkaddrbk_*.so
%{tde_tdelibdir}/libkaddressbookpart.la
%{tde_tdelibdir}/libkaddressbookpart.so
%{tde_libdir}/libkabinterfaces.so.*
%{tde_libdir}/libkaddressbook.so.*
%{tde_tdeappdir}/kaddressbook.desktop
%{tde_datadir}/apps/kaddressbook
%{tde_datadir}/icons/hicolor/*/apps/kaddressbook.png
%{tde_datadir}/services/kabconfig.desktop
%{tde_datadir}/services/kabcustomfields.desktop
%{tde_datadir}/services/kabldapconfig.desktop
%{tde_datadir}/services/kaddressbook
%{tde_datadir}/services/kontact/kaddressbookplugin.desktop
%{tde_datadir}/services/tderesources/tdeabc/imap.desktop
%{tde_datadir}/services/ldifvcardthumbnail.desktop
%{tde_datadir}/servicetypes/dcopaddressbook.desktop
%{tde_datadir}/servicetypes/kaddressbook_contacteditorwidget.desktop
%{tde_datadir}/servicetypes/kaddressbookimprotocol.desktop
%{tde_datadir}/servicetypes/kaddressbook_extension.desktop
%{tde_datadir}/servicetypes/kaddressbook_view.desktop
%{tde_datadir}/servicetypes/kaddressbook_xxport.desktop
%{tde_tdedocdir}/HTML/en/kaddressbook/
%{tde_datadir}/autostart/kabcdistlistupdater.desktop
%{tde_tdeincludedir}/kaddressbook/
%{tde_tdeincludedir}/tdeabc/

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

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

##########

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

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

%files -n trinity-kaddressbook-devel
%defattr(-,root,root,-)
%{tde_libdir}/libkabinterfaces.la
%{tde_libdir}/libkabinterfaces.so
%{tde_libdir}/libkaddressbook.la
%{tde_libdir}/libkaddressbook.so

%post -n trinity-kaddressbook-devel
/sbin/ldconfig || :

%postun -n trinity-kaddressbook-devel
/sbin/ldconfig || :

##########

%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
%defattr(-,root,root,-)
%{tde_bindir}/kalarm
%{tde_bindir}/kalarmd
%{tde_tdeappdir}/kalarm.desktop
%{tde_datadir}/applnk/.hidden/kalarmd.desktop
%{tde_datadir}/applnk/Applications/kalarm.desktop
%{tde_datadir}/apps/kalarm
%{tde_datadir}/autostart/kalarm.tray.desktop
%{tde_datadir}/autostart/kalarmd.autostart.desktop
%{tde_datadir}/icons/crystalsvg/*/actions/kalarm.png
%{tde_datadir}/icons/hicolor/*/apps/kalarm.png
%{tde_tdedocdir}/HTML/en/kalarm/

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

%postun -n trinity-kalarm
for f in crystalsvg hicolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/kandy
%{tde_bindir}/kandy_client
%{tde_tdeappdir}/kandy.desktop
%{tde_datadir}/applnk/Utilities/kandy.desktop
%{tde_datadir}/apps/kandy/
%{tde_datadir}/icons/crystalsvg/*/apps/kandy.png
%{tde_datadir}/config.kcfg/kandy.kcfg
%{tde_tdedocdir}/HTML/en/kandy/

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

%postun -n trinity-kandy
for f in crystalsvg ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/karm
%{tde_libdir}/libkarm.so.*
%{tde_tdelibdir}/libkarmpart.la
%{tde_tdelibdir}/libkarmpart.so
%{tde_tdeappdir}/karm.desktop
%{tde_datadir}/applnk/Utilities/karm.desktop
%{tde_datadir}/apps/karm/
%{tde_datadir}/apps/karmpart/
%{tde_datadir}/icons/hicolor/*/apps/karm.png
%{tde_datadir}/services/karm_part.desktop
%{tde_datadir}/services/kontact/karmplugin.desktop
%{tde_tdedocdir}/HTML/en/karm/

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

%postun -n trinity-karm
for f in hicolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig || :
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_libdir}/libkarm.so
%{tde_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
%defattr(-,root,root,-)
%{tde_tdelibdir}/tdefile_ics.la
%{tde_tdelibdir}/tdefile_ics.so
%{tde_tdelibdir}/tdefile_vcf.la
%{tde_tdelibdir}/tdefile_vcf.so
%{tde_datadir}/services/tdefile_ics.desktop
%{tde_datadir}/services/tdefile_vcf.desktop

##########

%package tdeio-plugins
Summary:	Trinity PIM I/O Slaves
Group:		Environment/Libraries

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

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

%files tdeio-plugins
%defattr(-,root,root,-)
%{tde_tdelibdir}/tdeio_groupwise.la
%{tde_tdelibdir}/tdeio_groupwise.so
%{tde_tdelibdir}/tdeio_imap4.la
%{tde_tdelibdir}/tdeio_imap4.so
%{tde_tdelibdir}/tdeio_mbox.la
%{tde_tdelibdir}/tdeio_mbox.so
%{tde_tdelibdir}/tdeio_scalix.la
%{tde_tdelibdir}/tdeio_scalix.so
%{tde_tdelibdir}/tdeio_sieve.la
%{tde_tdelibdir}/tdeio_sieve.so
%{tde_datadir}/services/groupwise.protocol
%{tde_datadir}/services/groupwises.protocol
%{tde_datadir}/services/imap4.protocol
%{tde_datadir}/services/imaps.protocol
%{tde_datadir}/services/mbox.protocol
%{tde_datadir}/services/scalix.protocol
%{tde_datadir}/services/scalixs.protocol
%{tde_datadir}/services/sieve.protocol

##########

%package tderesources
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-tderesources < %{version}-%{release}

%description tderesources
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 tderesources
%defattr(-,root,root,-)
%{tde_tdelibdir}/kcal_caldav.la
%{tde_tdelibdir}/kcal_caldav.so
%{tde_tdelibdir}/kcal_groupdav.la
%{tde_tdelibdir}/kcal_groupdav.so
%{tde_tdelibdir}/kcal_groupwise.la
%{tde_tdelibdir}/kcal_groupwise.so
%{tde_tdelibdir}/kcal_kolab.la
%{tde_tdelibdir}/kcal_kolab.so
%{tde_tdelibdir}/kcal_scalix.la
%{tde_tdelibdir}/kcal_scalix.so
%{tde_tdelibdir}/kcal_newexchange.la
%{tde_tdelibdir}/kcal_newexchange.so
%{tde_tdelibdir}/kcal_resourcefeatureplan.la
%{tde_tdelibdir}/kcal_resourcefeatureplan.so
%{tde_tdelibdir}/kcal_slox.la
%{tde_tdelibdir}/kcal_slox.so
%{tde_tdelibdir}/kcal_xmlrpc.la
%{tde_tdelibdir}/kcal_xmlrpc.so
%{tde_tdelibdir}/knotes_kolab.la
%{tde_tdelibdir}/knotes_kolab.so
%{tde_tdelibdir}/knotes_scalix.la
%{tde_tdelibdir}/knotes_scalix.so
%{tde_tdelibdir}/knotes_xmlrpc.la
%{tde_tdelibdir}/knotes_xmlrpc.so
%{tde_libdir}/libkabckolab.so.*
%{tde_libdir}/libkabcscalix.so.*
%{tde_libdir}/libtdeabc_groupdav.so.*
%{tde_libdir}/libtdeabc_groupwise.so.*
%{tde_libdir}/libtdeabc_newexchange.so.*
%{tde_libdir}/libtdeabc_slox.so.*
%{tde_libdir}/libtdeabc_xmlrpc.so.*
%{tde_libdir}/libkcalkolab.so.*
%{tde_libdir}/libkcalscalix.so.*
%{tde_libdir}/libkcal_caldav.so.*
%{tde_libdir}/libtdeabc_carddav.so.*
%{tde_libdir}/libkcal_groupdav.so.*
%{tde_libdir}/libkcal_groupwise.so.*
%{tde_libdir}/libkcal_newexchange.so.*
%{tde_libdir}/libkcal_resourcefeatureplan.so.*
%{tde_libdir}/libkcal_slox.so.*
%{tde_libdir}/libkcal_xmlrpc.so.*
%{tde_libdir}/libkgroupwarebase.so.*
%{tde_libdir}/libkgroupwaredav.so.*
%{tde_libdir}/libknoteskolab.so.*
%{tde_libdir}/libknotesscalix.so.*
%{tde_libdir}/libknotes_xmlrpc.so.*
%{tde_libdir}/libkslox.so.*
%{tde_libdir}/libgwsoap.so.*
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_groupdav.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_groupwise.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_newexchange.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_opengroupware.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_ox.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_slox.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_xmlrpc.desktop
%{tde_datadir}/services/tderesources/tdeabc/kolab.desktop
%{tde_datadir}/services/tderesources/tdeabc/scalix.desktop
%{tde_datadir}/services/tderesources/kcal/exchange.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_caldav.desktop
%{tde_datadir}/services/tderesources/tdeabc/tdeabc_carddav.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_groupdav.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_groupwise.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_newexchange.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_opengroupware.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_ox.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_resourcefeatureplan.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_slox.desktop
%{tde_datadir}/services/tderesources/kcal/kcal_xmlrpc.desktop
%{tde_datadir}/services/tderesources/kcal/kolab.desktop
%{tde_datadir}/services/tderesources/kcal/scalix.desktop
%{tde_datadir}/services/tderesources/knotes/knotes_xmlrpc.desktop
%{tde_datadir}/services/tderesources/knotes/kolabresource.desktop
%{tde_datadir}/services/tderesources/knotes/scalix.desktop

%{tde_datadir}/apps/tdeconf_update/upgrade-resourcetype.pl
%{tde_datadir}/apps/tdeconf_update/kolab-resource.upd

%{tde_tdelibdir}/tdeabc_carddav.la
%{tde_tdelibdir}/tdeabc_carddav.so
%{tde_tdelibdir}/tdeabc_groupdav.la
%{tde_tdelibdir}/tdeabc_groupdav.so
%{tde_tdelibdir}/tdeabc_groupwise.la
%{tde_tdelibdir}/tdeabc_groupwise.so
%{tde_tdelibdir}/tdeabc_kolab.la
%{tde_tdelibdir}/tdeabc_kolab.so
%{tde_tdelibdir}/tdeabc_newexchange.la
%{tde_tdelibdir}/tdeabc_newexchange.so
%{tde_tdelibdir}/tdeabc_scalix.la
%{tde_tdelibdir}/tdeabc_scalix.so
%{tde_tdelibdir}/tdeabc_slox.la
%{tde_tdelibdir}/tdeabc_slox.so
%{tde_tdelibdir}/tdeabc_xmlrpc.la
%{tde_tdelibdir}/tdeabc_xmlrpc.so

%post tderesources
/sbin/ldconfig || :

%postun tderesources
/sbin/ldconfig || :

##########

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

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

%description tderesources-devel
%{summary}

%files tderesources-devel
%defattr(-,root,root,-)
%{tde_libdir}/libkslox.la
%{tde_libdir}/libkslox.so
%{tde_libdir}/libtdeabc_groupdav.la
%{tde_libdir}/libtdeabc_groupdav.so
%{tde_libdir}/libtdeabc_groupwise.la
%{tde_libdir}/libtdeabc_groupwise.so
%{tde_libdir}/libgwsoap.la
%{tde_libdir}/libgwsoap.so
%{tde_libdir}/libtdeabc_carddav.la
%{tde_libdir}/libtdeabc_carddav.so
%{tde_libdir}/libtdeabc_newexchange.la
%{tde_libdir}/libtdeabc_newexchange.so
%{tde_libdir}/libtdeabc_slox.la
%{tde_libdir}/libtdeabc_slox.so
%{tde_libdir}/libtdeabc_xmlrpc.la
%{tde_libdir}/libtdeabc_xmlrpc.so
%{tde_libdir}/libkabckolab.la
%{tde_libdir}/libkabckolab.so
%{tde_libdir}/libkabcscalix.la
%{tde_libdir}/libkabcscalix.so
%{tde_libdir}/libkcal_caldav.la
%{tde_libdir}/libkcal_caldav.so
%{tde_libdir}/libkcal_groupdav.la
%{tde_libdir}/libkcal_groupdav.so
%{tde_libdir}/libkcal_groupwise.la
%{tde_libdir}/libkcal_groupwise.so
%{tde_libdir}/libkcal_newexchange.la
%{tde_libdir}/libkcal_newexchange.so
%{tde_libdir}/libkcal_resourcefeatureplan.la
%{tde_libdir}/libkcal_resourcefeatureplan.so
%{tde_libdir}/libkcal_slox.la
%{tde_libdir}/libkcal_slox.so
%{tde_libdir}/libkcal_xmlrpc.la
%{tde_libdir}/libkcal_xmlrpc.so
%{tde_libdir}/libkcalkolab.la
%{tde_libdir}/libkcalkolab.so
%{tde_libdir}/libkcalscalix.la
%{tde_libdir}/libkcalscalix.so
%{tde_libdir}/libkgroupwarebase.la
%{tde_libdir}/libkgroupwarebase.so
%{tde_libdir}/libkgroupwaredav.la
%{tde_libdir}/libkgroupwaredav.so
%{tde_libdir}/libknotes_xmlrpc.la
%{tde_libdir}/libknotes_xmlrpc.so
%{tde_libdir}/libknoteskolab.la
%{tde_libdir}/libknoteskolab.so
%{tde_libdir}/libknotesscalix.la
%{tde_libdir}/libknotesscalix.so
%{tde_tdeincludedir}/kpimprefs.h

%post tderesources-devel
/sbin/ldconfig || :

%postun tderesources-devel
/sbin/ldconfig || :

##########

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

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

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

%files wizards
%defattr(-,root,root,-)
%{tde_bindir}/egroupwarewizard
%{tde_bindir}/exchangewizard
%{tde_bindir}/groupwarewizard
%{tde_bindir}/groupwisewizard
%{tde_bindir}/kolabwizard
%{tde_bindir}/scalixadmin
%{tde_bindir}/scalixwizard
%{tde_bindir}/sloxwizard
%{tde_tdelibdir}/libegroupwarewizard.la
%{tde_tdelibdir}/libegroupwarewizard.so
%{tde_tdelibdir}/libexchangewizard.la
%{tde_tdelibdir}/libexchangewizard.so
%{tde_tdelibdir}/libgroupwisewizard.la
%{tde_tdelibdir}/libgroupwisewizard.so
%{tde_tdelibdir}/libkolabwizard.la
%{tde_tdelibdir}/libkolabwizard.so
%{tde_tdelibdir}/libscalixwizard.la
%{tde_tdelibdir}/libscalixwizard.so
%{tde_tdelibdir}/libsloxwizard.la
%{tde_tdelibdir}/libsloxwizard.so
%{tde_tdeappdir}/groupwarewizard.desktop
%{tde_datadir}/config.kcfg/egroupware.kcfg
%{tde_datadir}/config.kcfg/groupwise.kcfg
%{tde_datadir}/config.kcfg/kolab.kcfg
%{tde_datadir}/config.kcfg/scalix.kcfg
%{tde_datadir}/config.kcfg/slox.kcfg

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

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

##########

%if 0%{?with_kitchensync}
%package -n trinity-kitchensync
Summary:	Synchronization framework
Group:		Applications/Communications
BuildRequires:	opensync-devel
#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
%defattr(-,root,root,-)
%{tde_bindir}/kitchensync
%{tde_tdelibdir}/libkitchensyncpart.la
%{tde_tdelibdir}/libkitchensyncpart.so
%{tde_datadir}/apps/kitchensync
%{tde_libdir}/libkitchensync.so.*
%{tde_libdir}/libqopensync.so.*
%{tde_tdeappdir}/kitchensync.desktop
%{tde_datadir}/icons/hicolor/*/apps/kitchensync.png

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

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

##########

%package -n trinity-kleopatra
Summary:	Trinity Certificate Manager
Group:		Applications/Communications

# GPG support
%if 0%{?suse_version}
Requires:	gpg2
%endif
%if 0%{?rhel} == 4
Requires:	gnupg
%endif
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion}
Requires:	gnupg2
%endif

%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version}
Requires:	pinentry
Requires:	dirmngr
%endif

%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
%defattr(-,root,root,-)
%{tde_bindir}/kleopatra
%{tde_bindir}/kwatchgnupg
%{tde_tdelibdir}/kcm_kleopatra.la
%{tde_tdelibdir}/kcm_kleopatra.so
%{tde_tdeappdir}/kleopatra_import.desktop
%{tde_datadir}/apps/kleopatra
%{tde_datadir}/apps/kwatchgnupg
%{tde_datadir}/services/kleopatra_config_*.desktop
%{tde_tdedocdir}/HTML/en/kleopatra/
%{tde_tdedocdir}/HTML/en/kwatchgnupg/

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

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

##########

%package -n trinity-kmail
Summary:	Trinity Email client
Group:		Applications/Communications
Requires:	%{name}-tdeio-plugins = %{version}-%{release}
Requires:	trinity-tdebase-tdeio-pim-plugins >= %{version}

# GPG support
%if 0%{?suse_version}
Requires:	gpg2
%endif
%if 0%{?rhel} == 4
Requires:	gnupg
%endif
%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion}
Requires:	gnupg2
%endif

# Pinentry
%if 0%{?suse_version} || 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion}
Requires:	pinentry
%endif

Requires:	procmail
Requires:	trinity-kaddressbook = %{version}-%{release}
Requires:	trinity-kleopatra = %{version}-%{release}
Requires:	trinity-tdebase-tdeio-pim-plugins >= %{version}-%{release}

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}-tdeio-plugins if you want to use IMAP or
mbox files, and/or trinity-tdebase-tdeio-plugins if you want to use POP3.

%files -n trinity-kmail
%defattr(-,root,root,-)
%{tde_datadir}/config/kmail.antispamrc
%{tde_datadir}/config/kmail.antivirusrc
%{tde_bindir}/kmail
%{tde_bindir}/kmail_*.sh
%{tde_tdelibdir}/kcm_kmail.la
%{tde_tdelibdir}/kcm_kmail.so
%{tde_tdelibdir}/libkmail_bodypartformatter_application_octetstream.la
%{tde_tdelibdir}/libkmail_bodypartformatter_application_octetstream.so
%{tde_tdelibdir}/libkmail_bodypartformatter_text_calendar.la
%{tde_tdelibdir}/libkmail_bodypartformatter_text_calendar.so
%{tde_tdelibdir}/libkmail_bodypartformatter_text_vcard.la
%{tde_tdelibdir}/libkmail_bodypartformatter_text_vcard.so
%{tde_tdelibdir}/libkmail_bodypartformatter_text_xdiff.la
%{tde_tdelibdir}/libkmail_bodypartformatter_text_xdiff.so
%{tde_tdelibdir}/libkmailpart.la
%{tde_tdelibdir}/libkmailpart.so
%{tde_tdeappdir}/KMail.desktop
%{tde_tdeappdir}/kmail_view.desktop
%{tde_datadir}/apps/tdeconf_update/kmail-3.1-update-new-mail-notification-settings.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.1-use-UOID-for-identities.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.1.4-dont-use-UOID-0-for-any-identity.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.2-misc.sh
%{tde_datadir}/apps/tdeconf_update/kmail-3.2-update-loop-on-goto-unread-settings.sh
%{tde_datadir}/apps/tdeconf_update/kmail-3.3-aegypten.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.3-misc.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.3-move-identities.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.3-split-sign-encr-keys.sh
%{tde_datadir}/apps/tdeconf_update/kmail-3.3-use-ID-for-accounts.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.3b1-misc.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.4-misc.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.4.1-update-status-filters.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.5-trigger-flag-migration.pl
%{tde_datadir}/apps/tdeconf_update/kmail-3.5-filter-icons.pl
%{tde_datadir}/apps/tdeconf_update/kmail-pgpidentity.pl
%{tde_datadir}/apps/tdeconf_update/kmail-upd-identities.pl
%{tde_datadir}/apps/tdeconf_update/kmail.upd
%{tde_datadir}/apps/tdeconf_update/upgrade-signature.pl
%{tde_datadir}/apps/tdeconf_update/upgrade-transport.pl
%{tde_datadir}/apps/kmail
%{tde_datadir}/apps/konqueror/servicemenus/email.desktop
%{tde_datadir}/config.kcfg/custommimeheader.kcfg
%{tde_datadir}/config.kcfg/kmail.kcfg
%{tde_datadir}/config.kcfg/customtemplates_kfg.kcfg
%{tde_datadir}/config.kcfg/replyphrases.kcfg
%{tde_datadir}/config.kcfg/templatesconfiguration_kfg.kcfg
%{tde_datadir}/icons/crystalsvg/*/apps/kmaillight.png
%{tde_datadir}/icons/hicolor/*/apps/kmail.png
%{tde_datadir}/icons/hicolor/scalable/apps/kmail.svgz
%{tde_datadir}/services/kmail_config_*.desktop
%{tde_datadir}/services/kontact/kmailplugin.desktop
%{tde_datadir}/servicetypes/dcopimap.desktop
%{tde_datadir}/servicetypes/dcopmail.desktop
# 'libkmailprivate.so' is required at runtime, not devel !
%{tde_libdir}/libkmailprivate.so
%{tde_libdir}/libkmailprivate.la
%{tde_tdedocdir}/HTML/en/kmail/

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

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

##########

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

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

%files -n trinity-kmail-devel
%defattr(-,root,root,-)
%defattr(-,root,root,-)
%{tde_tdeincludedir}/kmail/
%{tde_tdeincludedir}/kmail*.h

%post -n trinity-kmail-devel
/sbin/ldconfig || :

%postun -n trinity-kmail-devel
/sbin/ldconfig || :

##########
 
%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
%defattr(-,root,root,-)
%{tde_bindir}/kmailcvt
%{tde_datadir}/applnk/Utilities/kmailcvt.desktop
%{tde_datadir}/apps/kmailcvt
%{tde_datadir}/icons/crystalsvg/*/apps/kmailcvt.png

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

%postun -n trinity-kmailcvt
for f in crystalsvg ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/knode
%{tde_tdelibdir}/kcm_knode.la
%{tde_tdelibdir}/kcm_knode.so
%{tde_tdelibdir}/libknodepart.la
%{tde_tdelibdir}/libknodepart.so
%{tde_libdir}/libknodecommon.so.*
%{tde_tdeappdir}/KNode.desktop
%{tde_datadir}/apps/knode/
%{tde_datadir}/icons/hicolor/*/apps/knode.png
%{tde_datadir}/icons/hicolor/*/apps/knode2.png
%{tde_datadir}/services/knewsservice.protocol
%{tde_datadir}/services/knode_config_*.desktop
%{tde_datadir}/services/kontact/knodeplugin.desktop
%{tde_tdedocdir}/HTML/en/knode/

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

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

##########

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

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

%files -n trinity-knode-devel
%defattr(-,root,root,-)
%{tde_libdir}/libknodecommon.la
%{tde_libdir}/libknodecommon.so

%post -n trinity-knode-devel
/sbin/ldconfig || :

%postun -n trinity-knode-devel
/sbin/ldconfig || :

##########

%package -n trinity-knotes
Summary:	Trinity sticky notes
Group:		Applications/Utilities
Requires:	trinity-tdepim-tderesources = %{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
%defattr(-,root,root,-)
%{tde_bindir}/knotes
%{tde_tdelibdir}/knotes_local.la
%{tde_tdelibdir}/knotes_local.so
%{tde_libdir}/libknotes.so.*
%{tde_tdeappdir}/knotes.desktop
%{tde_datadir}/apps/knotes/
%{tde_datadir}/config.kcfg/knoteconfig.kcfg
%{tde_datadir}/config.kcfg/knotesglobalconfig.kcfg
%{tde_datadir}/icons/hicolor/*/apps/knotes.png
%{tde_datadir}/services/tderesources/knotes/imap.desktop
%{tde_datadir}/services/tderesources/knotes/local.desktop
%{tde_datadir}/services/tderesources/knotes_manager.desktop
%{tde_datadir}/services/kontact/knotesplugin.desktop
%{tde_tdedocdir}/HTML/en/knotes/

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

%postun -n trinity-knotes
for f in hicolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig || :
update-desktop-database %{tde_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}-tderesources-devel = %{version}-%{release}

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

%files -n trinity-knotes-devel
%defattr(-,root,root,-)
%{tde_libdir}/libknotes.so
%{tde_libdir}/libknotes.la
%{tde_tdeincludedir}/KNotesAppIface.h
%{tde_tdeincludedir}/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
%defattr(-,root,root,-)
%{tde_bindir}/kode
%{tde_bindir}/kxml_compiler
%{tde_libdir}/libkode.so.*

%post -n trinity-kode
/sbin/ldconfig || :

%postun -n trinity-kode
/sbin/ldconfig || :

##########

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

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

%files -n trinity-kode-devel
%defattr(-,root,root,-)
%{tde_libdir}/libkode.la
%{tde_libdir}/libkode.so

%post -n trinity-kode-devel
/sbin/ldconfig || :

%postun -n trinity-kode-devel
/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
%defattr(-,root,root,-)
%{tde_bindir}/konsolekalendar
%{tde_tdeappdir}/konsolekalendar.desktop
%{tde_datadir}/icons/crystalsvg/*/apps/konsolekalendar.png
%{tde_tdedocdir}/HTML/en/konsolekalendar/

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

%postun -n trinity-konsolekalendar
for f in crystalsvg ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/kontact
%{tde_tdelibdir}/kcm_kmailsummary.la
%{tde_tdelibdir}/kcm_kmailsummary.so
%{tde_tdelibdir}/kcm_kontact.la
%{tde_tdelibdir}/kcm_kontact.so
%{tde_tdelibdir}/kcm_kontactknt.la
%{tde_tdelibdir}/kcm_kontactknt.so
%{tde_tdelibdir}/kcm_kontactsummary.la
%{tde_tdelibdir}/kcm_kontactsummary.so
%{tde_tdelibdir}/kcm_korgsummary.la
%{tde_tdelibdir}/kcm_korgsummary.so
%{tde_tdelibdir}/kcm_sdsummary.la
%{tde_tdelibdir}/kcm_sdsummary.so
%{tde_tdelibdir}/libkontact_*.la
%{tde_tdelibdir}/libkontact_*.so
%{tde_libdir}/libkontact.so.*
%{tde_libdir}/libkpinterfaces.so.*
%{tde_tdeappdir}/Kontact.desktop
%{tde_tdeappdir}/kontactdcop.desktop
%{tde_datadir}/apps/kontact
%{tde_datadir}/apps/kontactsummary/kontactsummary_part.rc
%{tde_datadir}/config.kcfg/kontact.kcfg
%{tde_datadir}/icons/hicolor/*/apps/kontact.png
%{tde_datadir}/icons/crystalsvg/*/actions/kontact_*.png
%{tde_datadir}/services/kcmkmailsummary.desktop
%{tde_datadir}/services/kcmkontactknt.desktop
%{tde_datadir}/services/kcmkontactsummary.desktop
%{tde_datadir}/services/kcmkorgsummary.desktop
%{tde_datadir}/services/kcmsdsummary.desktop
%{tde_datadir}/services/kontact/newstickerplugin.desktop
%{tde_datadir}/services/kontact/specialdatesplugin.desktop
%{tde_datadir}/services/kontact/summaryplugin.desktop
%{tde_datadir}/services/kontact/weatherplugin.desktop
%{tde_datadir}/services/kontactconfig.desktop
%{tde_datadir}/servicetypes/kontactplugin.desktop
%{tde_tdedocdir}/HTML/en/kontact/
%{tde_tdedocdir}/HTML/en/kpilot/

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

%postun -n trinity-kontact
for f in crystalsvg hicolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig || :
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_libdir}/libkontact.la
%{tde_libdir}/libkontact.so
%{tde_libdir}/libkpinterfaces.la
%{tde_libdir}/libkpinterfaces.so
%{tde_tdeincludedir}/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}-tderesources = %{version}-%{release}
Requires:	perl

%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
%defattr(-,root,root,-)
%{tde_bindir}/ical2vcal
%{tde_bindir}/korgac
%{tde_bindir}/korganizer
%{tde_tdelibdir}/kcm_korganizer.la
%{tde_tdelibdir}/kcm_korganizer.so
%{tde_tdelibdir}/libkorg_*.la
%{tde_tdelibdir}/libkorg_*.so
%{tde_tdelibdir}/libkorganizerpart.la
%{tde_tdelibdir}/libkorganizerpart.so
%{tde_libdir}/libkocorehelper.so.*
%{tde_libdir}/libkorg_stdprinting.so.*
%{tde_libdir}/libkorganizer.so.*
%{tde_libdir}/libkorganizer_calendar.so.*
%{tde_libdir}/libkorganizer_eventviewer.so.*
%{tde_tdeappdir}/korganizer.desktop
%{tde_datadir}/apps/tdeconf_update/korganizer.upd
%{tde_datadir}/apps/korgac/
%{tde_datadir}/apps/korganizer/
%{tde_datadir}/autostart/korgac.desktop
%{tde_datadir}/config.kcfg/korganizer.kcfg
%{tde_datadir}/icons/hicolor/*/apps/korganizer.png
%{tde_datadir}/services/kontact/korganizerplugin.desktop
%{tde_datadir}/services/kontact/journalplugin.desktop
%{tde_datadir}/services/kontact/todoplugin.desktop
%{tde_datadir}/services/korganizer_*.desktop
%{tde_datadir}/services/korganizer
%{tde_datadir}/services/webcal.protocol
%{tde_datadir}/servicetypes/calendardecoration.desktop
%{tde_datadir}/servicetypes/calendarplugin.desktop
%{tde_datadir}/servicetypes/dcopcalendar.desktop
%{tde_datadir}/servicetypes/korganizerpart.desktop
%{tde_datadir}/servicetypes/korgprintplugin.desktop
%{tde_tdedocdir}/HTML/en/korganizer/

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

%postun -n trinity-korganizer
for f in hicolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig || :
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/korganizer/
%{tde_tdeincludedir}/calendar/
%{tde_libdir}/libkocorehelper.la
%{tde_libdir}/libkocorehelper.so
%{tde_libdir}/libkorg_stdprinting.la
%{tde_libdir}/libkorg_stdprinting.so
%{tde_libdir}/libkorganizer.la
%{tde_libdir}/libkorganizer.so
%{tde_libdir}/libkorganizer_calendar.la
%{tde_libdir}/libkorganizer_calendar.so
%{tde_libdir}/libkorganizer_eventviewer.la
%{tde_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}-tdeio-plugins = %{version}-%{release}

%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
%defattr(-,root,root,-)
%{tde_bindir}/korn
%{tde_libdir}/tdeconf_update_bin/korn-3-4-config_change
%{tde_tdeappdir}/KOrn.desktop
%{tde_datadir}/apps/tdeconf_update/korn-3-4-config_change.upd
%{tde_datadir}/apps/tdeconf_update/korn-3-5-metadata-update.pl
%{tde_datadir}/apps/tdeconf_update/korn-3-5-ssl-update.pl
%{tde_datadir}/apps/tdeconf_update/korn-3-5-update.upd
%{tde_datadir}/icons/hicolor/*/apps/korn.png
%{tde_tdedocdir}/HTML/en/korn/

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

%postun -n trinity-korn
for f in hicolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
/sbin/ldconfig || :
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/ktnef
%{tde_tdeappdir}/ktnef.desktop
%{tde_datadir}/apps/ktnef
%{tde_datadir}/icons/hicolor/*/apps/ktnef.png
%{tde_datadir}/icons/locolor/*/apps/ktnef.png
%{tde_datadir}/mimelnk/application/ms-tnef.desktop
%{tde_tdedocdir}/HTML/en/ktnef/

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

%postun -n trinity-ktnef
for f in hicolor locolor ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_datadir}/icons/${f} 2> /dev/null ||:
done
update-desktop-database %{tde_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
%defattr(-,root,root,-)
%{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/indexlib-config
%{tde_tdeincludedir}/index
%{tde_libdir}/libindex.la
%{tde_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}-tderesources = %{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
%defattr(-,root,root,-)
%{tde_tdelibdir}/kcal_kabc.la
%{tde_tdelibdir}/kcal_kabc.so
%{tde_tdelibdir}/kcal_localdir.la
%{tde_tdelibdir}/kcal_localdir.so
%{tde_tdelibdir}/kcal_local.la
%{tde_tdelibdir}/kcal_local.so
%{tde_tdelibdir}/kcal_remote.la
%{tde_tdelibdir}/kcal_remote.so
%{tde_libdir}/libkcal.so.*
%{tde_libdir}/libkcal_resourceremote.so.*
%{tde_libdir}/libkholidays.so.*
%{tde_datadir}/apps/libkholidays
%{tde_datadir}/services/tderesources/kcal/imap.desktop
%{tde_datadir}/services/tderesources/kcal/kabc.desktop
%{tde_datadir}/services/tderesources/kcal/local.desktop
%{tde_datadir}/services/tderesources/kcal/localdir.desktop
%{tde_datadir}/services/tderesources/kcal/remote.desktop
%{tde_datadir}/services/tderesources/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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/libemailfunctions/idmapper.h
%{tde_tdeincludedir}/libkcal
%{tde_libdir}/libkcal.la
%{tde_libdir}/libkcal.so
%{tde_libdir}/libkcal_resourceremote.la
%{tde_libdir}/libkcal_resourceremote.so
%{tde_libdir}/libkholidays.la
%{tde_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 trinity-libtdepim library.

%files -n trinity-libtdepim
%defattr(-,root,root,-)
%{tde_tdelibdir}/plugins/designer/tdepimwidgets.la
%{tde_tdelibdir}/plugins/designer/tdepimwidgets.so
%{tde_tdelibdir}/plugins/designer/tdepartsdesignerplugin.la
%{tde_tdelibdir}/plugins/designer/tdepartsdesignerplugin.so
%{tde_libdir}/libtdepim.so.*
%{tde_datadir}/apps/tdepimwidgets
%{tde_datadir}/apps/libtdepim
%{tde_datadir}/apps/tdepim
%{tde_datadir}/config.kcfg/pimemoticons.kcfg
%{tde_datadir}/icons/crystalsvg/22x22/actions/button_fewer.png
%{tde_datadir}/icons/crystalsvg/22x22/actions/button_more.png

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

%postun -n trinity-libtdepim
for f in crystalsvg ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_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-tdelibs-devel >= %{version}

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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/tdepimmacros.h
%{tde_libdir}/libtdepim.la
%{tde_libdir}/libtdepim.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
%defattr(-,root,root,-)
%{tde_libdir}/libkgantt.so.*
%{tde_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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/kgantt
%{tde_libdir}/libkgantt.la
%{tde_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
%defattr(-,root,root,-)
%{tde_datadir}/config/libkleopatrarc
%{tde_libdir}/libgpgme++.so.*
%{tde_libdir}/libkleopatra.so.*
%{tde_libdir}/libkpgp.so.*
%{tde_libdir}/libqgpgme.so.*
%{tde_datadir}/apps/tdeconf_update/kpgp-3.1-upgrade-address-data.pl
%{tde_datadir}/apps/tdeconf_update/kpgp.upd
%{tde_datadir}/apps/libkleopatra/
%{tde_datadir}/icons/crystalsvg/*/apps/gpg.png
%{tde_datadir}/icons/crystalsvg/*/apps/gpgsm.png

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

%postun -n trinity-libkleopatra
for f in crystalsvg ; do
  touch --no-create %{tde_datadir}/icons/${f} 2> /dev/null ||:
  gtk-update-icon-cache -q %{tde_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 TDE 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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/gpgme++/
%{tde_tdeincludedir}/kleo/
%{tde_tdeincludedir}/qgpgme/
%{tde_libdir}/libgpgme++.la
%{tde_libdir}/libgpgme++.so
%{tde_libdir}/libkleopatra.la
%{tde_libdir}/libkleopatra.so
%{tde_libdir}/libkpgp.la
%{tde_libdir}/libkpgp.so
%{tde_libdir}/libqgpgme.la
%{tde_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
%defattr(-,root,root,-)
%{tde_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
%defattr(-,root,root,-)
%{tde_libdir}/libkmime.la
%{tde_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
%defattr(-,root,root,-)
%{tde_tdelibdir}/resourcecalendarexchange.la
%{tde_tdelibdir}/resourcecalendarexchange.so
%{tde_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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/tdepim/exchangeaccount.h
%{tde_tdeincludedir}/tdepim/exchangeclient.h
%{tde_libdir}/libkpimexchange.la
%{tde_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
%defattr(-,root,root,-)
%{tde_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
%defattr(-,root,root,-)
%{tde_libdir}/libkpimidentities.la
%{tde_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
%defattr(-,root,root,-)
%{tde_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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/ksieve
%{tde_libdir}/libksieve.la
%{tde_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
%defattr(-,root,root,-)
%{tde_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
%defattr(-,root,root,-)
%{tde_tdeincludedir}/ktnef
%{tde_libdir}/libktnef.la
%{tde_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
%defattr(-,root,root,-)
%{tde_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 TDE applications to handle mime types.

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

%files -n trinity-libmimelib-devel
%defattr(-,root,root,-)
%{tde_tdeincludedir}/mimelib/
%{tde_libdir}/libmimelib.la
%{tde_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
%defattr(-,root,root,-)
%{tde_bindir}/kmobile
%{tde_datadir}/icons/default.tde/32x32/devices/mobile_camera.png
%{tde_datadir}/icons/default.tde/32x32/devices/mobile_musicplayer.png
%{tde_datadir}/icons/default.tde/32x32/devices/mobile_organizer.png
%{tde_datadir}/icons/default.tde/32x32/devices/mobile_phone.png
%{tde_datadir}/icons/default.tde/32x32/devices/mobile_unknown.png
%{tde_datadir}/icons/hicolor/*/apps/kmobile.png
%{tde_datadir}/services/libkmobile_digicam.desktop
%{tde_datadir}/services/libkmobile_gammu.desktop
%{tde_datadir}/services/libkmobile_skeleton.desktop
%{tde_datadir}/servicetypes/libkmobile.desktop
%{tde_datadir}/apps/kmobile/kmobileui.rc
%{tde_tdeappdir}/kmobile.desktop
%{tde_tdelibdir}/libkmobile_skeleton.la
%{tde_tdelibdir}/libkmobile_skeleton.so
%{tde_libdir}/libkmobileclient.la
%{tde_libdir}/libkmobileclient.so
%{tde_libdir}/libkmobiledevice.la
%{tde_libdir}/libkmobiledevice.so

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

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

##########

%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif

##########

%prep
%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
#patch14 -p1 -b .ldflags


%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
export LD_LIBRARY_PATH="%{tde_libdir}"

# Specific path for RHEL4
if [ -d "/usr/X11R6" ]; then
  export CXXFLAGS="${RPM_OPT_FLAGS} -I/usr/X11R6/include -L/usr/X11R6/%{_lib}"
fi

%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
%__mkdir_p build
cd build
%endif

# Warning: GCC visibility causes FTBFS [Bug #1285]
%cmake \
  -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
  -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
  -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
  -DCMAKE_SKIP_RPATH=OFF \
  -DCMAKE_VERBOSE_MAKEFILE=ON \
  -DWITH_GCC_VISIBILITY=OFF \
  \
  -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
  -DBIN_INSTALL_DIR=%{tde_bindir} \
  -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
  -DLIB_INSTALL_DIR=%{tde_libdir} \
  -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
  \
  -DWITH_ARTS=ON \
  -DWITH_SASL=ON \
  -DWITH_NEWDISTRLISTS=ON  \
  %{?with_gnokii:-DWITH_GNOKII=ON} \
  -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 \
  %{?with_xscreensaver:-DWITH_XSCREENSAVER=ON} \
  %{?with_kitchensync:-DBUILD_KITCHENSYNC=ON} \
  -DBUILD_ALL=ON \
  ..

%__make %{?_smp_mflags} || %__make


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


%clean
%__rm -rf %{?buildroot}


%changelog
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1
- Initial release for TDE 14.0.0