Package claws-mail: Specfile

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

%def_enable 	svg
%ifnarch %e2k
%def_enable 	networkmanager
%else
%def_disable 	networkmanager
%endif

%def_enable		manual

# pligins
%def_enable 	archive
%def_disable	bsfilter
%ifnarch %e2k
%def_disable 	dillo
%def_enable 	fancy
%else
%def_enable 	dillo
%def_disable 	fancy
%endif
%def_enable 	litehtmlviewer
%ifnarch %e2k
%def_enable 	python
%else
%def_disable 	python
%endif
%def_enable 	tnef

%define _unpackaged_files_terminate_build 1

Name:   	claws-mail
Version:	4.2.0
Release: 	alt2

Summary:	Claws Mail is a GTK+ based, user-friendly, lightweight, and fast email client.
License: 	GPLv3+
Group: 		Networking/Mail

Url:		https://www.claws-mail.org
Vcs:		git://git.claws-mail.org/claws.git

Source: %name-%version.tar
Patch:	%name-%version-%release.patch

# Patches from upstream git.
# Must be reverted when new version will be released.
Patch1: Fix-bug-4720-resource-leak-patch-by-olaf-aepfle.de.patch
Patch2: Fix-bug-4724-set-proper-availability-status-to-sign-.patch
Patch3: Fix-Bug-4728.-Patch-provided-by-Olaf-Hering.patch
Patch4: fix-bug-4733-Line-breaks-lost-in-headers.patch
Patch5: Fix-CIDs-1220325-1491306-and-1491315.patch
Patch6: Fix-CIDs-1491064-and-1491074.patch
Patch7: Fix-CID-1491137-Out-of-bounds-access-OVERRUN.patch
Patch8: Fix-CID-1491211-Use-after-free.patch
Patch9: Remove-wrong-initialization-from-max_message_size.patch
Patch10: fix-several-USE_AFTER_FREE-coverity-bugs.patch

Obsoletes:	%_oldname < %version
Provides:	%_oldname

BuildPreReq:	autoconf-common gettext-tools

BuildRequires: flex libSM-devel libcompface-devel libdbus-glib-devel libenchant2-devel libgnutls-devel libgpgme-devel libldap-devel libstartup-notification-devel libgcrypt-devel zlib-devel
# For SNI support
BuildRequires: libetpan-devel >= 1.9.1-alt3
BuildRequires: libnettle-devel
BuildRequires: libgtk+3-devel
BuildRequires: libcairo-devel
BuildRequires: rpm-build-python3
%{?_enable_svg:BuildRequires: librsvg-devel}
%{?_enable_networkmanager:BuildRequires: libnm-devel}
%{?_enable_manual:BuildRequires: docbook-utils lynx}

# For plugin-archive:
%if_enabled archive
BuildRequires: libarchive-devel
%endif

# For plugin-fancy, plugin-libravatar, plugin-litehtmlviewer, plugin-rssyl, plugin-spamreport, plugin-vcalendar
BuildRequires: libcurl-devel

# For plugin-fancy
%if_enabled fancy
BuildRequires: libwebkit2gtk4.1-devel
%endif

# For plugin-litehtmlviewer
%if_enabled litehtmlviewer
BuildRequires: gcc-c++
BuildRequires: fontconfig-devel
BuildRequires: libgumbo-devel
%endif

# For plugin-rssyl
BuildRequires: libexpat-devel

# For plugin-pdfviewer
BuildRequires: libpoppler-glib-devel

# For plugin-perl
BuildRequires: perl-devel sed

# For pligin-python
%{?_enable_python:BuildRequires: python3-devel python3-module-pygobject3-devel}

# For plugin-notification
%def_disable indicator
%def_enable hotkeys
BuildRequires: libnotify-devel
BuildRequires: libcanberra-gtk3-devel
%{?_enable_indicator:BuildRequires: libindicate-devel >=  0.3.0}
%{?_enable_hotkeys:BuildRequires: libgio-devel >= 2.15.6}

# For plugin-tnef
%if_enabled tnef
BuildRequires: libytnef-devel
%endif

# For vcalendar
BuildRequires: libical-devel

# For tools
BuildPreReq:	perl-MIME-tools
BuildPreReq:	perl-Text-Iconv
BuildPreReq:	perl-XML-SimpleObject
BuildPreReq:	perl-URI
BuildPreReq: 	perl-libwww
BuildPreReq: 	perl-Text-CSV_XS
BuildPreReq: 	perl-File-Which

%description
Claws Mail is an email client (and news reader), based on GTK+,
featuring

    Quick response
    Graceful, and sophisticated interface
    Easy configuration, intuitive operation
    Abundant features
    Extensibility

The appearance and interface are designed to be familiar to new users
coming from other popular email clients, as well as experienced users.
Almost all commands are accessible with the keyboard.

The messages are managed in the standard MH format, which features fast
access and data security. You'll be able to import your emails from
almost any other email client, and export them just as easily.

Lots of extra functionality, like an RSS aggregator, calendar, or laptop
LED handling, are provided by extra plugins.

Claws Mail is distributed under the GPL.

%package        devel
Summary:        Development environment for %name
Group:          Development/C
Requires:	%name = %version-%release
Obsoletes:	%_oldname-devel < %version
Provides:	%_oldname-devel

%description 	devel
This package contains the header files and libraries for building
program which use %name.

%package	plugins-minimal
Summary:	Install minimal set of %name plugins
Group:		Networking/Mail
BuildArch:	noarch
Requires:	%name = %version-%release

Requires:	%name-plugin-pgpcore = %version-%release
Requires:	%name-plugin-pgpinline = %version-%release
Requires:	%name-plugin-pgpmime = %version-%release
Requires:	%name-plugin-smime = %version-%release

%description	plugins-minimal
This package installs minimal set of %name plugins.

%package	plugins-default
Summary:	Install most of %name plugins
Group:		Networking/Mail
BuildArch:	noarch
Requires:	%name-plugins-minimal = %version-%release

Requires:	%name-plugin-acpinotifier = %version-%release
Requires:	%name-plugin-addresskeeper = %version-%release
%if_enabled archive
Requires:	%name-plugin-archive = %version-%release
%endif
Requires:	%name-plugin-attachwarner = %version-%release
Requires:	%name-plugin-attremover = %version-%release
Requires:	%name-plugin-bogofilter = %version-%release
%if_enabled bsfilter
Requires:	%name-plugin-bsfilter = %version-%release
%endif
%if_enabled dillo
Requires:	%name-plugin-dillo = %version-%release
%endif
%if_enabled fancy
Requires:	%name-plugin-fancy = %version-%release
%endif
Requires:	%name-plugin-fetchinfo = %version-%release
Requires:	%name-plugin-keywordwarner = %version-%release
Requires:	%name-plugin-libravatar = %version-%release
%if_enabled litehtmlviewer
Requires:	%name-plugin-litehtmlviewer = %version-%release
%endif
Requires:	%name-plugin-mailmbox = %version-%release
Requires:	%name-plugin-newmail = %version-%release
Requires:	%name-plugin-notification = %version-%release
Requires:	%name-plugin-pdfviewer = %version-%release
Requires:	%name-plugin-rssyl = %version-%release
Requires:	%name-plugin-spamreport = %version-%release
%if_enabled tnef
Requires:	%name-plugin-tnef = %version-%release
%endif
Requires:	%name-plugin-vcalendar = %version-%release

%description	plugins-default
This package installs most of %name plugins.

%package	plugins-full
Summary:	Install all plugins for %name
Group:		Networking/Mail
BuildArch:	noarch
Requires:	%name-plugins-default = %version-%release
Obsoletes:	%name-plugins < 4.1.0-alt1
Provides:	%name-plugins = %version-%release

Requires:	%name-plugin-clamd = %version-%release
Requires:	%name-plugin-managesieve = %version-%release
Requires:	%name-plugin-perl = %version-%release
%if_enabled python
Requires:	%name-plugin-python = %version-%release
%endif
Requires:	%name-plugin-spamassassin = %version-%release

%description	plugins-full
This package installs all plugins for %name.

%package	plugin-acpinotifier
Summary:	Mail notification via LEDs on some laptops (Acer, ASUS, Fujitsu, IBM).
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-acpinotifier
The AcpiNotifier plugin handles the email LED found on some laptops.
It makes it possible to see whether you have new emails from the other
side of the room, without even unlocking the screen. The plugin handles
the following types of laptops:

 * ACER,
 * ASUS,
 * IBM,
 * Fujitsu,
 and others.

%package	plugin-addresskeeper
Summary:	Keeps all recipient addresses in an addressbook folder
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-addresskeeper
This plugin allows saving outgoing addresses to a designated folder
in the address book. Addresses are saved only if not found in the
address book to avoid unwanted duplicates.
Selecting which headers are scanned for keeping addresses is also
supported (Any or several of 'To', 'Cc' or 'Bcc').

%package	plugin-archive
Summary:	Mail archiving functionality for Claws Mail
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-archive
This plugin adds archiving features to Claws Mail.

%package	plugin-attachwarner
Summary:	Warn when the user is likely to have forgotten to attach a file.
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-attachwarner
The AttachWarner verifies that you have attached something to your email
if you mentioned attachment in the email's body.

%package	plugin-attremover
Summary:	This plugin lets you remove attachments from emails
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-attremover
This plugin lets you remove attachments from emails.

%package	plugin-bogofilter
Summary:	Bogofilter plugin for %name
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	bogofilter bogofilter-utils
Obsoletes:	%_oldname-plugin-bogofilter < %version
Provides:	%_oldname-plugin-bogofilter

%description	plugin-bogofilter
This plugin for %name provides integration with Bogofilter spam checking
tool.

%package	plugin-bsfilter
Summary:	Check messages for spam using Bsfilter
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	bsfilter

%description	plugin-bsfilter
Check all messages that are received from an IMAP, LOCAL or POP account
for spam using Bsfilter.

%package	plugin-clamd
Summary:	This plugin scans messages using clamd (Clam AV)
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	clamav

%description	plugin-clamd
This plugin scans all messages that are received from an IMAP, LOCAL or
POP account using clamd (Clam AV).

%package       plugin-dillo
Summary:       Dillo browser plugin for %name
Group:         Networking/Mail
Requires:      %name = %version
Requires:      dillo >= 0.7.2
Obsoletes:     %_oldname-plugin-dillo < %version
Provides:      %_oldname-plugin-dillo

%description   plugin-dillo
This plugin uses the Dillo (http://www.dillo.org) browser to
view text/html MIME parts inside Claws Mail.
See README file for more information.

This plugin only provides very basic HTML
support; if you want something more, consider installing
%name-plugin-fancy package.

%package	plugin-fancy
Summary:	Renders HTML e-mail using the WebKit library
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-fancy
The Fancy plugin renders html email using the GTK+ port of WebKit
library.

%package	plugin-fetchinfo
Summary:	This plugin inserts headers containing some download information
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-fetchinfo
This plugin inserts headers containing some download information: UIDL,
Claws' account name, POP server, user ID and retrieval time.

%package	plugin-keywordwarner
Summary:	Warn when message text contains a keyword
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-keywordwarner
This plugin shows a warning when sending or queueing a message and a reference
to one or more keywords is found in the message text.

%package	plugin-libravatar
Summary:	Pligin displays libravatar/gravatar profiles' images
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-libravatar
This plugin allows showing the profile picture associated to email
addresses provided by https://www.libravatar.org/. You can read
more about what is this at http://wiki.libravatar.org/description/.
By default missing profiles in the libravatar site are also searched
in http://gravatar.com, so it will also show pictures from gravatar
profiles.

%package	plugin-litehtmlviewer
Summary:	Viewer plugin for HTML emails, using the litehtml library
Group:		Networking/Mail
License:	GPLv3+ and BSD-3-Clause
Requires:	%name = %version-%release

%description	plugin-litehtmlviewer
Viewer plugin for HTML emails, using the litehtml library
(http://www.litehtml.com/).

%package	plugin-mailmbox
Summary:	This plugin handles mailboxes in mbox format
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-mailmbox
This plugin handles mailboxes in mbox format.

%package	plugin-managesieve
Summary:	This plugin handles managing Sieve filters
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-managesieve
The Claws Mail ManageSieve plugin provides an interface for managing
Sieve filters. Sieve filters are used for filtering mail on mail
servers, usually with an IMAP account.

This plugin handles managing Sieve filters, editing them, and checking
their syntax.

To learn how to write Sieve filters, see RFC 5228
https://tools.ietf.org/html/rfc5228
and the Sieve language extensions
http://sieve.info/documents#sieve_language_extensions

%package	plugin-newmail
Summary:	This plugin writes a msg header summary to a log file
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-newmail
This plugin writes a msg header summary to a log file,
(Default: ~/Mail/NewLog), on arrival of new mail *after* sorting.

%package	plugin-notification
Summary:	Various ways to notify the user of new and unread email
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-notification
The Notification plugin provides various ways to notify the user of new
and possibly unread mail. Currently, the following modules are
implemented:

    * A mail banner (stocks ticker-like widget)
    * A popup window
    * A command to be issued on new mail arrival

All modules can be activated or deactivated at compilation time, and are
highly configurable at run time. It is possible to include only selected
folders in any module. In general, the notification is executed after
filtering, so it is possible to exclude spam or other unwanted messages
from notification.

%package	plugin-pdfviewer
Summary:	This plugin enables the viewing of PDF and PostScript attachments
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-pdfviewer
The PDF Viewer plugin renders PDF and Postscript attachments in Claws
Mail. It features:

  * Moving between document pages, sequentially and jumping to
    a specific page
  * Zoom, Rotation, Fit Page, Fit Page Width
  * Displaying information about the document such as Author, Date,
    Creator, etc...
  * Displaying the PDF Index, if available, which allows easily surfing
    the document
  * Search text inside the document
  * Manage links to internal and external documents, if available, such
    as jumping to the paragraph or section and also opening an external
    URL or composing a new mail

The Poppler library and GhostScript are required.

%package	plugin-perl
Summary:	This plugin provides a Perl interface to Claws Mail' filtering mechanism
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	perl

%description	plugin-perl
This plugin is intended to extend the filtering possibilities of Claws
Mail. It provides a Perl interface to Claws Mail' filtering mechanism,
allowing the use of full Perl power in email filters.

%package	plugin-pgpcore
Summary:	Core PGP plugin for %name
Group:		Networking/Mail
Requires:	%name = %version-%release
Obsoletes:	%_oldname-plugin-pgpcore < %version
Provides:	%_oldname-plugin-pgpcore

%description	plugin-pgpcore
This plugin for %name provides core PGP functionality. It is used by
other encryption/signing plugins.

%package	plugin-pgpinline
Summary:	PGP/Inline plugin for %name
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	%name-plugin-pgpcore = %version-%release
Obsoletes:	%_oldname-plugin-pgpinline < %version
Provides:	%_oldname-plugin-pgpinline

%description	plugin-pgpinline
This plugin for %name lets you create and see messages encrypted/signed
with PGP/Inline.

%package	plugin-pgpmime
Summary:	PGP/MIME plugin for %name
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	%name-plugin-pgpcore = %version-%release
Obsoletes:	%_oldname-plugin-pgpmime < %version
Provides:	%_oldname-plugin-pgpmime

%description	plugin-pgpmime
This plugin for %name lets you create and see messages encrypted/signed
with PGP/MIME.

%package	plugin-python
Summary:	This plugin provides Python integration features
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-python
This plugin offers Python scripting access to Claws Mail.
Python code can be entered interactively into an embedded Python
console, or stored in scripts.

%package	plugin-rssyl
Summary:	RSS feed aggregator for Claws Mail
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-rssyl
he RSSyl plugin is an RSS feed aggregator for Claws Mail. It has the
following features:

    * Handling of RSS 1.0, RSS 2.0, and Atom feeds
    * Fetching and threaded display of comment feeds
    * Customisable refresh interval for each feed
    * Customisable number of feed items to keep for each feed

Navigating in your feeds and posts is done in the same way as you would
for emails, which makes feed-reading really fast and enjoyable if Claws
Mail's shortcuts are hardwired into your fingers.
Also, the RSSyl plugin unleashes its full potential when used with an
HTML viewer plugin like Dillo or Gtkhtml2Viewer, as this allows fetching
a post's images and font styles.

%package	plugin-smime
Summary:	S/MIME plugin for %name
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	%name-plugin-pgpcore = %version-%release
Requires:   dirmngr gnupg2-common
Obsoletes:	%_oldname-plugin-smime < %version
Provides:	%_oldname-plugin-smime

%description	plugin-smime
This plugin for %name lets you create and see messages encrypted/signed
with S/MIME.

%package	plugin-spamassassin
Summary:	SpamAssassin plugin for %name
Group:		Networking/Mail
Requires:	%name = %version-%release
Requires:	spamassassin
Obsoletes:	%_oldname-plugin-spamassassin < %version
Provides:	%_oldname-plugin-spamassassin

%description	plugin-spamassassin
This plugin for %name provides integration with SpamAssassin.

%package	plugin-spamreport
Summary:	This plugin reports spam to various places
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-spamreport
This Claws Mail plugin allows you to upload your spams to various spam
reporting places, like http://www.signal-spam.fr/ or http://www.spamcop.net/.

%package	plugin-tnef
Summary:	This plugin enables reading application/ms-tnef attachments
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-tnef
The TNEF Parser plugins handles TNEF attachments from Outlook.
TNEF attachments have a MIME type of "application/ms-tnef" and
are often named "winmail.dat". They can contain multiple files.
This plugin parses this kind of attachment and displays the real files
in the parts list.

%package	plugin-vcalendar
Summary:	Plugin handles the vCalendar for Claws Mail
Group:		Networking/Mail
Requires:	%name = %version-%release

%description	plugin-vcalendar
This Claws Mail plugin handles the vCalendar format (or rather, the
meeting subset of it). It displays such mails in a nice format, lets you
create and send meetings, and creates a virtual folder with the meetings
you sent or received.

%package	tools
Summary:	Additional tools for %name
Group:		Networking/Mail
Requires:	%name = %version-%release

BuildArch: noarch

Obsoletes:	%_oldname-tools < %version
Provides:	%_oldname-tools

%description	tools
additional tools for %name.

%prep
%setup

subst "s,%%f,%%N," ./src/prefs_quote.c
echo "Libs: -lenchant-2 -lgnutls" >>%name.pc.in

# set version
echo 'echo "%version"' >./version

%patch -p1

# From upstream
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

%autoreconf

%build
%add_optflags -fpie
export LDFLAGS=-pie
%configure \
		--disable-static \
		--disable-rpath \
		--with-lib-prefix=%_usr \
		--with-manualdir=%_defaultdocdir/%name \
		--with-config-dir=.%name \
		%{subst_enable manual} \
		--disable-jpilot \
		%{subst_enable svg} \
		%{subst_enable networkmanager} \
		%if_disabled archive
		--disable-archive-plugin \
		%endif
		%if_disabled bsfilter
		--disable-bsfilter-plugin \
		%endif
		%if_disabled dillo
		--disable-dillo-plugin \
		%endif
		%if_disabled fancy
		--disable-fancy-plugin \
		%endif
		%if_disabled litehtmlviewer
		--disable-litehtml_viewer-plugin \
		%endif
		%if_disabled python
		--disable-python-plugin \
		%endif
		%if_disabled tnef
		--disable-tnef_parse-plugin \
		%endif
		%if_enabled debug
		--enable-crash-dialog
		%else
		--disable-crash-dialog
		%endif
%make_build
%make -C tools

%install
%makeinstall_std
%make -C tools install

mkdir -p %buildroot%_datadir/%name/
cp -va  tools %buildroot%_datadir/%name/
rm -vf  %buildroot%_datadir/%name/tools/README*
rm -vf  %buildroot%_datadir/%name/tools/Makefile*

mkdir -p %buildroot%_pixmapsdir
install -p -m644 %name.png %buildroot%_pixmapsdir/

# XXX: Make sure the path below is the same as the path above.
%define _claws_plugins_path %_libdir/%name/plugins

%if_enabled litehtmlviewer
# Install litehtml BSD 3-clause license
mkdir -p %buildroot%_defaultdocdir/%name-plugin-litehtmlviewer-%version/litehtml/
install -p -m644 src/plugins/litehtml_viewer/litehtml/LICENSE %buildroot%_defaultdocdir/%name-plugin-litehtmlviewer-%version/litehtml/
%endif

%find_lang %name

%files -f %name.lang
%doc AUTHORS ChangeLog* COPYING INSTALL NEWS README* TODO* RELEASE_NOTES
%_bindir/%name
%_man1dir/%name.1.*
%_desktopdir/*.desktop
%_iconsdir/hicolor/*x*/apps/%name.png
%_pixmapsdir/%name.png
%dir %_libdir/%name
%dir %_claws_plugins_path
%dir %_datadir/%name
%if_enabled manual
%_defaultdocdir/%name/
%exclude %_defaultdocdir/%name/RELEASE_NOTES
%endif

%files devel
%_includedir/%name
%_pkgconfigdir/%name.pc

%files plugins-minimal

%files plugins-default

%files plugins-full

%files plugin-acpinotifier
%_claws_plugins_path/acpi_notifier.so

%files plugin-addresskeeper
%_claws_plugins_path/address_keeper.so

%if_enabled archive
%files plugin-archive
%_claws_plugins_path/archive.so
%endif

%files plugin-attachwarner
%_claws_plugins_path/attachwarner.so

%files plugin-attremover
%_claws_plugins_path/att_remover.so

%files plugin-bogofilter
%_claws_plugins_path/bogofilter.so

%if_enabled bsfilter
%files plugin-bsfilter
%_claws_plugins_path/bsfilter.so
%endif

%files plugin-clamd
%_claws_plugins_path/clamd.so

%if_enabled dillo
%files plugin-dillo
%_claws_plugins_path/dillo.so
%endif

%if_enabled fancy
%files plugin-fancy
%_claws_plugins_path/fancy.so
%dir %_libdir/%name/web_extensions/
%_libdir/%name/web_extensions/fancywebextension.so
%exclude %_libdir/%name/web_extensions/*.la
%endif

%files plugin-fetchinfo
%_claws_plugins_path/fetchinfo.so

%files plugin-keywordwarner
%_claws_plugins_path/keyword_warner.so

%files plugin-libravatar
%doc src/plugins/libravatar/README*
%_claws_plugins_path/libravatar.so

%if_enabled litehtmlviewer
%files plugin-litehtmlviewer
%doc %_defaultdocdir/%name-plugin-litehtmlviewer-%version/
%_claws_plugins_path/litehtml_viewer.so
%endif

%files plugin-mailmbox
%_claws_plugins_path/mailmbox.so

%files plugin-managesieve
%_claws_plugins_path/managesieve.so

%files plugin-newmail
%_claws_plugins_path/newmail.so

%files plugin-notification
%_claws_plugins_path/notification.so

%files plugin-pdfviewer
%_claws_plugins_path/pdf_viewer.so

%files plugin-perl
%_claws_plugins_path/perl.so

%files plugin-pgpcore
%_claws_plugins_path/pgpcore.so

%files plugin-pgpinline
%_claws_plugins_path/pgpinline.so
%_claws_plugins_path/pgpinline.deps

%files plugin-pgpmime
%_claws_plugins_path/pgpmime.so
%_claws_plugins_path/pgpmime.deps

%if_enabled python
%files plugin-python
%_claws_plugins_path/python.so
%endif

%files plugin-rssyl
%_claws_plugins_path/rssyl.so

%files plugin-smime
%_claws_plugins_path/smime.so
%_claws_plugins_path/smime.deps

%files plugin-spamassassin
%doc src/plugins/spamassassin/README* src/plugins/spamassassin/NOTICE
%_claws_plugins_path/spamassassin.so

%files plugin-spamreport
%_claws_plugins_path/spamreport.so

%if_enabled tnef
%files plugin-tnef
%_claws_plugins_path/tnef_parse.so
%endif

%files plugin-vcalendar
%_claws_plugins_path/vcalendar.so

%files tools
%doc tools/README*
%_datadir/%name/tools/
%exclude %_datadir/%name/tools/update-po
%exclude %_datadir/%name/tools/check-appstream.sh
%exclude %_datadir/%name/tools/gitlog2changelog.py

%exclude %_claws_plugins_path/*.la
%exclude %_datadir/doc/%name/RELEASE_NOTES

%changelog
* Thu Feb 22 2024 Mikhail Efremov <sem@altlinux.org> 4.2.0-alt2
- Patches from upstream:
  + Fix bug 4720 (resource leak);
  + Fix bug 4724: set proper availability status to sign/encrypt;
  + Fix Bug 4728;
  + fix bug 4733, 'Line breaks lost in headers';
  + Fix CIDs 1220325, 1491306 and 1491315;
  + Fix CIDs 1491064 and 1491074;
  + Fix CID 1491137 'Out-of-bounds access (OVERRUN)';
  + Fix CID 1491211 'Use after free';
  + Remove wrong initialization from max_message_size;
  + fix several USE_AFTER_FREE coverity bugs.
- fancy: Build with libwebkit2gtk4.1.

* Fri Nov 24 2023 Mikhail Efremov <sem@altlinux.org> 4.2.0-alt1
- Patch from upstream:
    + if cmd is invalid, NULL it.
- Dropped gdata plugin.
- Updated to 4.2.0.

* Thu Jun 22 2023 Mikhail Efremov <sem@altlinux.org> 4.1.1-alt2
- Patches from upstream:
  + po/ru.po: fix "text" translation;
  + po/ru.po: fix "Grey" translation;
  + fix bug 4658, 'Headers unfolded incorrectly in message view';
  + fix bug 4670, 'To/CC incorrectly escaped with a trailing backslash';
  + fix bug 4648, 'fails to build with gcc 13'.

* Wed Oct 26 2022 Mikhail Efremov <sem@altlinux.org> 4.1.1-alt1
- textviewer.sh: Replaced egrep with grep -E.
- Updated to 4.1.1.

* Tue Apr 05 2022 Mikhail Efremov <sem@altlinux.org> 4.1.0-alt1
- Dropped appdata support from spec.
- Packaged keywordwarner plugin.
- Splitted plugins subpackage -> minimal,default,full.
- Updated to 4.1.0.

* Mon Jul 12 2021 Mikhail Efremov <sem@altlinux.org> 4.0.0-alt1
- Enabled python plugin.
- Updated to 4.0.0.

* Mon Jul 12 2021 Mikhail Efremov <sem@altlinux.org> 3.18.0-alt1
- Updated to 3.18.0.

* Tue May 11 2021 Mikhail Efremov <sem@altlinux.org> 3.17.8-alt2
- Fixed build: added rpm-build-python3 to BR.

* Tue Oct 20 2020 Mikhail Efremov <sem@altlinux.org> 3.17.8-alt1
- Updated to 3.17.8.

* Wed Sep 30 2020 Mikhail Efremov <sem@altlinux.org> 3.17.7-alt1
- Updated to 3.17.7.

* Tue Jul 14 2020 Mikhail Efremov <sem@altlinux.org> 3.17.6-alt1
- Updated to 3.17.6.

* Tue Feb 25 2020 Mikhail Efremov <sem@altlinux.org> 3.17.5-alt1
- tools: Don't pull dos2unix.
- tools: Don't package gitlog2changelog.py.
- tools: Package python scripts again.
- Drop unneded OOo2claws-mail.pl fix.
- Add Vcs tag.
- Drop obsoleted patches.
- Don't use rpm-build-licenses.
- Updated to 3.17.5.

* Fri Nov 08 2019 Mikhail Efremov <sem@altlinux.org> 3.17.4-alt3
- Patch from upstream:
    Fix wrong length value passed to fd_write().
- Fix comment.
- Build and package manual.
- cosmetic: Arrange plugin %%files in alphabet order.
- Drop non-existent configure option.
- tools: Don't package python2 scripts.
- Disable python plugin.

* Fri Oct 18 2019 Mikhail Efremov <sem@altlinux.org> 3.17.4-alt2
- Patches from upstream:
  + Fix crash in litehtml_viewer when <base> tag has no href.
  + fix bug 4257, 'claws-mail 3.17.4 breaks copy-pasting from
    emacs-gtk3' (closes: #37347).

* Wed Jul 31 2019 Mikhail Efremov <sem@altlinux.org> 3.17.4-alt1
- Package litehtml_viewer plugin.
- Updated to 3.17.4.

* Tue Mar 12 2019 Mikhail Efremov <sem@altlinux.org> 3.17.3-alt3
- Patches from upstream:
  + Fix buf #4166: corrupted double-linked list.
  + Fix possible segmentation fault.
  + Check result of fputs (CID 1440024).
  + Check writting crash-indicator (CID 1440021).
  + Fix a small memory leak in rssyl_remove_msgs().

* Fri Feb 01 2019 Mikhail Efremov <sem@altlinux.org> 3.17.3-alt2
- Patches from upstream:
  + Fix possible stack overflow in vcalendar's Curl data handler.
  + Fix crash when LDAP address source is defined in index, but LDAP
    support is disabled.
  + Make children tracking in execute_actions() more async-aware.
  + Fix an impossible to trigger buffer overflow.
  + fix bug 4143, 'fingerprint in SSL/TLS certificates for ...
    (regress error)'.
  + Fix few (possible) crashes due to missing return code checks.
  + Fix use after free in rare code path in rssyl_subscribe().

* Thu Jan 24 2019 Igor Vlasenko <viy@altlinux.ru> 3.17.3-alt1.1
- rebuild with new perl 5.28.1

* Mon Dec 24 2018 Mikhail Efremov <sem@altlinux.org> 3.17.3-alt1
- Fix Russian translation.
- Drop upstreamed patch.
- Updated to 3.17.3.

* Fri Dec 14 2018 Mikhail Efremov <sem@altlinux.org> 3.17.2-alt1
- Drop sylpheed-claws symlink.
- Drop gtk3 support from spec.
- Updated to 3.17.2.

* Tue Oct 30 2018 Mikhail Efremov <sem@altlinux.org> 3.17.1-alt3
- Add experimental SNI support.

* Mon Oct 22 2018 Mikhail Efremov <sem@altlinux.org> 3.17.1-alt2
- Disable PDA support.

* Mon Aug 27 2018 Mikhail Efremov <sem@altlinux.org> 3.17.1-alt1
- Updated to 3.17.1.

* Fri Aug 17 2018 Mikhail Efremov <sem@altlinux.org> 3.17.0-alt1
- Updated to 3.17.0.

* Thu Jun 28 2018 Mikhail Efremov <sem@altlinux.org> 3.16.0-alt3
- Add libnettle-devel to BR.
- Require libnm-devel instead of NetworkManager-devel.
- Patches from upstream:
  + Fix bug 3895: Port from libnm-util/libnm-glib to libnm.
  + Fix a buffer overflow in password encryption, and allow arbitrary
    password length.
  + require nettle, following removal of libcrypt from glibc.
- Add e2k build support.
- Add knob to disable python plugin.
- Add NetworkManager support knob.

* Fri Feb 02 2018 Mikhail Efremov <sem@altlinux.org> 3.16.0-alt2
- Drop libnsl check.

* Mon Dec 18 2017 Mikhail Efremov <sem@altlinux.org> 3.16.0-alt1
- tools: Don't package acient ca-certificates.crt.
- Highest priority for /etc/pki/tls/certs/ca-bundle.crt.
- Build with -pie.
- tools: Don't pull wget.
- tools: Don't pull ImageMagick-tools.

* Fri Dec 15 2017 Igor Vlasenko <viy@altlinux.ru> 3.15.1-alt1.1
- rebuild with new perl 5.26.1

* Fri Sep 01 2017 Mikhail Efremov <sem@altlinux.org> 3.15.1-alt1
- Updated to 3.15.1.

* Mon Mar 27 2017 Mikhail Efremov <sem@altlinux.org> 3.15.0-alt1
- Add build switch for fancy plugin.
- Spec cleanup.
- Add Dillo pligin support, but disable it for now.
- Enable librsvg support.
- Updated to 3.15.0.

* Fri Feb 03 2017 Igor Vlasenko <viy@altlinux.ru> 3.14.1-alt1.1
- rebuild with new perl 5.24.1

* Thu Nov 10 2016 Mikhail Efremov <sem@altlinux.org> 3.14.1-alt1
- Fix BR (by Repocop Q. A. Robot).
- Move claws-mail.png to %%_pixmapsdir (closes: #32112).
- Updated to 3.14.1.

* Mon Aug 22 2016 Mikhail Efremov <sem@altlinux.org> 3.14.0-alt1
- Fixes from upstream.
- Updated to 3.14.0.

* Thu Jun 16 2016 Mikhail Efremov <sem@altlinux.org> 3.13.2-alt2
- Rebuild with libetpan-1.7.2.

* Tue Jan 19 2016 Mikhail Efremov <sem@altlinux.org> 3.13.2-alt1
- Updated to 3.13.2.

* Mon Jan 18 2016 Mikhail Efremov <sem@altlinux.org> 3.13.1-alt3
- Patch from upstream:
  + fix CVE-2015-8708, bug 3557, 'Remotely exploitable bug.'.

* Mon Dec 28 2015 Mikhail Efremov <sem@altlinux.org> 3.13.1-alt2
- Enable tnef plugin.
- Patches from upstream:
  + fix bug 3584, 'After 3.13.1, characters in some Japanese codec
    are never correctly converted to internal ones'.
  + comment out the paragraphs which no longer apply.
  + late, post-release pt_BR.po update.

* Mon Dec 21 2015 Mikhail Efremov <sem@altlinux.org> 3.13.1-alt1
- Use Russian translation from upstream.
- Updated to 3.13.1.

* Wed Dec 16 2015 Mikhail Efremov <sem@altlinux.org> 3.13.0-alt5
- Enable archive plugin again.

* Fri Dec 11 2015 Mikhail Efremov <sem@altlinux.org> 3.13.0-alt4
- Disable archive plugin.

* Thu Dec 03 2015 Mikhail Efremov <sem@altlinux.org> 3.13.0-alt3
- Patches from upstream:
    + Fix 'end of file' message on checking sign of a key not
      found.
- Don't explicitly specify man page's extension.
- Rebuild with gnutls-3.4.7.

* Wed Nov 25 2015 Igor Vlasenko <viy@altlinux.ru> 3.13.0-alt2.1
- rebuild with new perl 5.22.0

* Fri Nov 20 2015 Igor Vlasenko <viy@altlinux.ru> 3.13.0-alt2
- bugfix for perl 5.22

* Mon Oct 26 2015 Mikhail Efremov <sem@altlinux.org> 3.13.0-alt1
- Patches from upstream:
  + fix syntax error
  + Fix Debian bug #801375 "Segfault when activating
    the plugin with the Code from Google"
  + fix bug 3375, 'Crash (SEGV) at gtkcmctree.c:4514 after deleting
    an unread message'
- Drop geolocation plugin from spec.
- Updated to 3.13.0.

* Mon Oct 05 2015 Mikhail Efremov <sem@altlinux.org> 3.12.0-alt3
- Patches from upstream:
  + Fix several memory leaks in RSSyl.
  + Fix string leaks.
  + managesieve: fix memory leak.
  + fix bug 3531, 'a/z hotkeys crash Claws immediately after startup'.
  + Fix crash on double notification popup.
  + Fix crash in address completion when matching group name.
  + managesieve: close windows when unloading.

* Wed Aug 12 2015 Mikhail Efremov <sem@altlinux.org> 3.12.0-alt2
- Enable gdata plugin again.

* Tue Jul 21 2015 Mikhail Efremov <sem@altlinux.org> 3.12.0-alt1
- Disable gdata plugin (it requires libgdata >= 0.17.1).
- Package new managesieve plugin.
- Use Russian translation again.
- Updated to 3.12.0.

* Tue Dec 09 2014 Igor Vlasenko <viy@altlinux.ru> 3.11.1-alt2.1
- rebuild with new perl 5.20.1

* Thu Nov 06 2014 Mikhail Efremov <sem@altlinux.org> 3.11.1-alt2
- Drop rpm-macros-claws-mail subpackage.
- Drop obsoleted substs.
- Add Russion translation from Serg A. Kotlyarov.

* Tue Oct 28 2014 Mikhail Efremov <sem@altlinux.org> 3.11.1-alt1
- Fixes from upstream git:
  + Recover desktop file installation.
  + Fix categories and recover keywords in desktop file.
- Disable appdata and update BR.
- Updated to 3.11.1.

* Wed Oct 22 2014 Mikhail Efremov <sem@altlinux.org> 3.11.0-alt1
- Fixes from upstream git:
  + Use gnutls_priority override also for POP3 connections.
  + RSSyl: fix markup escaping in one more alertpanel_error in
    rssyl_update_feed().
  + fix bug 3306, 'HTML tag </b> is not always rendered in error
    dialog'.
  + use standard hyphen-less "Claws Mail" in user-facing
    strings.
  + fix some missing whitespace, and standardise the placement of
    the whitespace.
  + some improvement to appdata summaries.
- tools: Don't package check-appstream script.
- Explicitly enable build with appdata.
- Updated BR.
- Updated to 3.11.0.

* Fri Aug 22 2014 Mikhail Efremov <sem@altlinux.org> 3.10.1-alt3
- Rebuild with libetpan-1.5.

* Fri Aug 22 2014 Mikhail Efremov <sem@altlinux.org> 3.10.1-alt2
- Rebuild with libgdata-0.15.2.

* Mon Jun 16 2014 Mikhail Efremov <sem@altlinux.org> 3.10.1-alt1
- Updated to 3.10.1.

* Mon May 26 2014 Mikhail Efremov <sem@altlinux.org> 3.10.0-alt1
- Fixes from upstream git:
    + Fix GCond use with newer Glib.
    + added Esperanto and re-instated Dutch.
- Package README files for spamassassin and libravatar plugins.
- Package appdata helper file.
- Package libravatar plugin.
- Fix menu categories.

* Mon Dec 16 2013 Mikhail Efremov <sem@altlinux.org> 3.9.3-alt1
- Fixes from upstream git:
    + Fix parsing universal time zone in mailmbox.
    + fix typo.
- Updated to 3.9.3.

* Mon Sep 02 2013 Vladimir Lettiev <crux@altlinux.ru> 3.9.2-alt2
- built for perl 5.18

* Mon Jun 17 2013 Mikhail Efremov <sem@altlinux.org> 3.9.2-alt1
- Fixes from upstream git:
    + fix a bunch of compiler warnings.
    + Revert undesired effect of fixing bug #2927.
    + fix debian bug #711864, 'claws-mail-vcalendar-plugin:
       when creating meeting GTK_IS_COMBO_BOX_TEXT failed'.
    + fix double-free crasher in Edit Accounts dialogue.
- Updated to 3.9.2.

* Wed May 15 2013 Mikhail Efremov <sem@altlinux.org> 3.9.1-alt1
- Use strict dependences on Claws Mail in the subpackages.
- Add claws-mail-plugins virtual subpackage.
- Set Claws version.
- Drop obsoleted plugins.
- Updated spec for new version.
- Updated to 3.9.1.

* Tue Dec 25 2012 Mikhail Efremov <sem@altlinux.org> 3.9.0-alt2
- Fix 'paths for SSL certs' patch.
- Patch from upstream:
    + Fix marking mails for deletion.

* Thu Nov 29 2012 Mikhail Efremov <sem@altlinux.org> 3.9.0-alt1
- Drop obsoleted patches.
- Updated to 3.9.0.

* Thu Oct 11 2012 Mikhail Efremov <sem@altlinux.org> 3.8.1-alt4
- Use ALT-specific paths for SSL certs.
- Patches from upstream:
    + Fix null pointer crash in procmime strchr.
    + Fix potential buffer overflow.
    + Fix failure to check peer hostname when checking certificate.
    + Fix segfault when trying to view info about pgp/smime sign.
- Own forgotten directories.

* Thu Jul 12 2012 Mikhail Efremov <sem@altlinux.org> 3.8.1-alt3
- Fix segfault in parse_parameters().

* Tue Jul 03 2012 Mikhail Efremov <sem@altlinux.org> 3.8.1-alt2
- Subpackages tools and rpm-macros-claws-mail are noarch.
- Rebuild against libetpan.so.16.0.0.

* Fri Jun 29 2012 Mikhail Efremov <sem@altlinux.org> 3.8.1-alt1
- Updated to 3.8.1.

* Wed Jan 18 2012 Mikhail Efremov <sem@altlinux.org> 3.8.0-alt1
- Drop obsoleted patches.
- Updated to 3.8.0.

* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 3.7.10-alt1.1
- Rebuild with Python-2.7

* Fri Sep 02 2011 Mikhail Efremov <sem@altlinux.org> 3.7.10-alt1
- Drop module-load-dirty-fix.patch.
- Drop obsoleted patches.
- Fix crash with long MIME type in the header.
- Updated to 3.7.10.

* Tue May 31 2011 Mikhail Efremov <sem@altlinux.org> 3.7.9-alt2
- Rebuild for NM-0.9 support.

* Mon May 23 2011 Repocop Q. A. Robot <repocop@altlinux.org> 3.7.9-alt1.qa1
- NMU (by repocop). See http://www.altlinux.org/Tools/Repocop
- applied repocop fixes:
  * altlinux-policy-rpm-macros-packaging for claws-mail-devel

* Tue May 03 2011 Mikhail Efremov <sem@altlinux.org> 3.7.9-alt1
- Patches from upstream CVS:
   + Don't show message on right click.
   + Work around for a bug in Gnome Shell.
   + Fix segfault on startup (thanks aris@, closes: #25555).
- Minor spec cleanup.
- Sources: tar.bz2 -> tar.
- Updated to 3.7.9 (closes: #25532).

* Mon Apr 04 2011 Mikhail Efremov <sem@altlinux.org> 3.7.8-alt2
- Fix BR: add libgcrypt-devel and zlib-devel.

* Thu Dec 30 2010 Mikhail Efremov <sem@altlinux.org> 3.7.8-alt1
- textviewer.pl: Added 'gz' extension handler.
- Updated to 3.7.8

* Wed Dec 01 2010 Mikhail Efremov <sem@altlinux.org> 3.7.7-alt2
- tools: don't package update-po script
- textviewer.sh: remove color codes from plain text.
- tools: to masquerade huge and unnecessary dependences.

* Mon Nov 29 2010 Mikhail Efremov <sem@altlinux.org> 3.7.7-alt1
- Updated to 3.7.7

* Thu Jul 22 2010 Mikhail Efremov <sem@altlinux.org> 3.7.6-alt1
- new version (closes: #23780).
- fix undo/redo after replace selected text from context menu.

* Fri Jan 15 2010 Alexey Rusakov <ktirf@altlinux.org> 3.7.4-alt1
- new version.
- patch for ru.po went upstream.
- desktop file installation went upstream.

* Mon Oct 26 2009 Alexey Rusakov <ktirf@altlinux.org> 3.7.3-alt1
- new version (3.7.3).
- patch for crashes after editing displayed headers went upstream.

* Tue Sep 01 2009 Alexey Rusakov <ktirf@altlinux.org> 3.7.2-alt1.1
- rebuild with libldap2.4.

* Wed Jul 08 2009 Alexey Rusakov <ktirf@altlinux.org> 3.7.2-alt1
- new version (3.7.2), with a fix for the Russian translation.
- the fix for building with Automake 1.11 went upstream.
- fixed a crash after editing displayed headers (closes ALT bug 10044).

* Tue May 26 2009 Alexey Rusakov <ktirf@altlinux.org> 3.7.1-alt1
- 3.7.1.
- removed obsolete post/postun macros.
- spec cleanup: use better macros in files list, don't use %%__ macros.
- fixed building with Automake 1.11.
- excluded *.a and *.la files from packaging explicitly.
- package .deps files for plugins that depend on other plugins.
- made plugin descriptions more telling, removed periods from Summaries.
- added %%_claws_plugins_path macro.
- packaged S/MIME plugin.
- added proper Libs: clause to the .pc file so that plugins don't have
  to install additional -devel packages just because there's no them in
  claws-mail-devel dependencies.

* Thu Oct 16 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.6.1.cvs5-alt1.2
-  build with fixed libetpan.

* Mon Oct 13 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.6.1.cvs5-alt1.1
-  build with new libgnutls (libgnutls-new).

* Mon Oct 13 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.6.1.cvs5-alt1
-  Remove OpenSSL code (upstream);
-  BuildReq actualization.

* Sat Oct 11 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.6.1.cvs3-alt1
-  some ssl fixes (upstream).

* Fri Oct 10 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.6.1-alt1
-  3.6.1;
-  use gnutls instead of openssl.

* Mon Oct 06 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.6.0.cvs7-alt1
-  3.6.0.

* Mon Aug 11 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.5.0.cvs57-alt1
-  3.5.0.

* Mon May 19 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.4.0.cvs51-alt1
-  3.4.0.cvs51; 
-  build with networkmanager support.

* Thu Apr 24 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.4.0.cvs10-alt1
-  3.4.0.

* Mon Mar 31 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.3.1.cvs47-alt1
-  fix segfault if /home is full (upstream);
-  add support for png themes (upstream);
-  learn bogofilter from whitelist (upstream).

* Tue Mar 18 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.3.1.cvs30-alt1
-  3.3.1.

* Mon Feb 11 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.3.0.cvs5-alt1
-  3.3.0;
-  remove clamav plugin (upstream, see ChangeLog);
-  remove "kostyli" for old autotools. 

* Thu Jan 10 2008 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.2.0.cvs34-alt1
-  3.2.0.

* Fri Nov 23 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.1.0.cvs26-alt1
-  3.1.0;
-  #13127 fix.

* Thu Oct 11 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.0.2.cvs57-alt1
-  lots of bugfixes (upstream).

* Fri Oct 05 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.0.2.cvs13-alt1
-  3.0.2.

* Thu Sep 27 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 3.0.1.cvs35-alt1
-  3.0.1;
-  remove russian translation mistakes patch.

* Fri Aug 24 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.10.0.cvs158-alt1
-  security fixes (POP3 Format String Vulnerability, CVE is unpublished now), 10x to ldv@.
-  #9685 fix. 10x to naf@ and ktirf@.

* Thu Aug 16 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.10.0.cvs125-alt1
-  bugfixes.

* Fri Aug 03 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.10.0.cvs81-alt2
-  dirty fix for load modules with invalid license.

* Tue Jul 31 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.10.0.cvs81-alt1
-  2.10.0.cvs81.

* Wed Jul 25 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.10.0.cvs62-alt1
-  2.10.0.

* Fri May 11 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.9.2.cvs5-alt1
-  2.9.2.

* Thu Apr 19 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.9.1.cvs1-alt1
-  2.9.1.

* Wed Mar 21 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.8.1.cvs27-alt1
-  2.8.1.

* Mon Feb 05 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.7.2.cvs22-alt1
-  build with libSM;
-  all patches for tools package has been removed (10x to upstream :)).

* Mon Jan 29 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.7.2.cvs4-alt1
-  2.7.2;
-  build with jPilot support;
-  trayicon plugin improvements.

* Thu Jan 25 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.7.1.cvs55-alt1
-  2.7.1.cvs55.

* Fri Jan 19 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.7.1.cvs32-alt1
-  2.7.1.cvs32.

* Wed Jan 17 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.7.1.cvs11-alt1
-  2.7.1.

* Thu Jan 11 2007 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.7.0.cvs6-alt1
-  2.7.0.

* Fri Dec 15 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.6.1.cvs37-alt1
-  2.6.1.cvs37. bugfixes.

* Mon Dec 04 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.6.1.cvs1-alt1
-  2.6.1.

* Wed Nov 29 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.6.0.cvs65-alt1
-  2.6.0cvs65.
-  name changed to claws-mail.
-  patch 117 added (locale support fix).

* Wed Oct 25 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.5.6.cvs6-alt1
-  2.5.6.

* Thu Sep 28 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.5.2.cvs12-alt1
-  2.5.2.

* Tue Sep 26 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.5.1.cvs1-alt1
-  2.5.1

* Tue Sep 19 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.4.0.cvs198-alt1
-  lots of bugfixes.

* Wed Sep 06 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.4.0.cvs152-alt1
-  2.4.0.cvs152.
-  new bogofilter plugin.

* Mon Aug 28 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.4.0.cvs102-alt1
- 2.4.0.cvs102.
- require autoconf 2.60.

* Fri Aug 11 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.4.0.cvs40-alt1
-  2.4.0. bugfix.

* Wed Aug 09 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.4.0.cvs34-alt1
-  2.4.0.

* Mon Jun 26 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.3.1.cvs20-alt1
-  2.3.1.

* Mon Jun 19 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.3.0.cvs22-alt1
-  2.3.0.

* Mon Jun 05 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.2.1.cvs1-alt1
-  2.2.1.

* Tue May 30 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.2.0.cvs66-alt1
-  much more speed-up :)

* Wed May 24 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.2.0.cvs52-alt1
-  more speed-up for folder operations.

* Tue May 23 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.2.0.cvs47-alt1
-  speed-up folder operations.

* Fri May 19 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.2.0.cvs35-alt1
-  2.2.0

* Wed Apr 12 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.1.0.cvs32-alt1
-  2.1.0.cvs32. bugfixes.

* Wed Apr 12 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.1.0.cvs24-alt1
- 2.1.0 

* Tue Mar 28 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.0.0.cvs178-alt1
-  2.0.0.cvs178. bugfixes. 

* Mon Mar 20 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.0.0.cvs158-alt1
-  2.0.0.cvs158;
-  build with libetpan 0.43.

* Fri Feb 10 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.0.0.cvs41-alt1
-  2.0.0.cvs41.
-  fixes in tools.

* Tue Feb 07 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.0.0.cvs26-alt1
-  improve perfomance.

* Thu Feb 02 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.0.0.cvs8-alt1
-  2.0.0.cvs8.

* Tue Jan 31 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 2.0.0.cvs2-alt1
-  2.0.0.

* Mon Jan 16 2006 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.100.cvs157-alt1
-  cvs157. HIG'ify.

* Fri Dec 16 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.100.cvs93-alt1
-  1.9.100.cvs93.
-  fixes for menu.

* Wed Dec 07 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.100.cvs71-alt1
-  1.9.100.cvs71.

* Thu Nov 17 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.100.cvs15-alt1
-  1.9.100.cvs15. bugfixes.

* Wed Nov 09 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.100.cvs4-alt1
-  1.9.1.

* Fri Oct 28 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.15.cvs124-alt1
-  cvs124.
-  temporary disabled tools patches (google, freshmeat and sf search).

* Tue Oct 18 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.15.cvs71-alt1
-  1.9.15.cvs71.

* Fri Oct 14 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.15.cvs44-alt1
-  1.9.15.cvs44.

* Wed Oct 12 2005 Alex Gorbachenko (agent_007) <algor@altlinux.ru> 1.9.15.cvs30-alt1
-  1.9.15.cvs30.
-  build for altlinux sisyphus.