Package LibreOffice: 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
# 24.2.2.1
%def_without python
%def_with parallelism
%def_without fetch
%def_enable lto
%def_enable dconf

# enable kde5 UI
%def_enable kf5

%ifarch mipsel
%def_without java
%else
%def_with java
%endif
%if_enabled kf5
%def_enable qt5
%else
%def_disable qt5
%endif
%def_disable mergelibs

Name: LibreOffice
%define hversion 24.2
%define urelease 2.1
Version: %hversion.%urelease
%define uversion %version.%urelease
%define lodir %_libdir/%name
%define uname libreoffice
%define conffile %_sysconfdir/sysconfig/%uname
Release: alt1
Summary: LibreOffice Productivity Suite
License: MPL-2.0
Group: Office
URL: http://www.libreoffice.org

# LibreOffice-unmet-holder should provide it
ExcludeArch: armh

Requires: %name-integrated = %EVR
Requires: %name-langpack-en_US
Requires: %name-langpack-ru

Provides: libreoffice = %EVR
Obsoletes: libreoffice < 3.99
Obsoletes: %name-full < %EVR

%define with_lang en-US ru be de fr uk pt-BR es kk tt
Requires: gst-libav

Source:         libreoffice-%version.tar.xz
Source1:        libreoffice-dictionaries-%version.tar.xz
Source2:        libreoffice-help-%version.tar.xz
Source3:        libreoffice-translations-%version.tar.xz

Source10:       libreoffice-ext_sources.%version.tar
Source100:      forky.c
Source200:      key.gpg
Source300:      libreoffice.unused

## FC patches
Patch1: FC-0001-disable-libe-book-support.patch
Patch2: kahansum_test_fix_for_aarc64_s390x.patch

## Long-term FC patches

## ALT patches
Patch401: alt-001-MOZILLA_CERTIFICATE_FOLDER.patch
Patch402: alt-002-tmpdir.patch
#Patch403: alt-003-skia-freetype-2.11.patch
Patch404: alt-004-shortint.patch
Patch405: alt-005-svg-icons-1.patch
Patch406: alt-006-svg-icons-2.patch
Patch407: alt-007-svg-icons-3.patch

Patch500: alt-010-mips-fix-linking-with-libatomic.patch

# content of patch shared to Weblate-LibreOffice by @NeuroFreak
Patch600: LibreOffice-7.4.2.3-update-russian-translation.patch

# Stolen from %name-still
Patch700: alt-013-icu74.patch

# c++ missing headers
Patch900: alt-014-missing_headers.patch

# convert to unsigned int statfs.f_type
Patch1000: alt-015-unsigned_f_type.patch


%set_verify_elf_method unresolved=relaxed
%add_findreq_skiplist %lodir/share/config/webcast/*
%add_findreq_skiplist %lodir/sdk/examples/python/toolpanel/toolpanel.py 
%add_findreq_skiplist %lodir/sdk/classes
%add_findreq_skiplist %lodir/sdk/docs
%add_findreq_skiplist %lodir/sdk/idl
%add_findreq_skiplist %lodir/sdk/include
%filter_from_requires /com[.]sun[.]/d
%add_python3_req_skip pyuno strings

# There is no module ListDataListener in LO 7.5.4.2
%add_findreq_skiplist %lodir/program/wizards/ui/event/ListModelBinder.py

# Automatically added by buildreq on Wed Feb 13 2019
# optimized out: ant-lib apache-commons-logging at-spi2-atk bash4 boost-devel boost-devel-headers cppunit dconf fontconfig fontconfig-devel gcc-c++ glib-networking glib2-devel glibc-kernheaders-generic glibc-kernheaders-x86 gobject-introspection gobject-introspection-devel gstreamer1.0-devel hamcrest-core icu-utils java java-headless javapackages-tools javazi kf5-kconfig-devel kf5-kcoreaddons-devel libGL-devel libICE-devel libSM-devel libX11-devel libXext-devel libXinerama-devel libXrandr-devel libXrender-devel libXt-devel libat-spi2-core libatk-devel libatk-gir-devel libboost_numpy3-1.67.0 libboost_python3-1.67.0 libcairo-devel libcairo-gobject libcairo-gobject-devel libclucene-contribs-lib libclucene-core libclucene-shared libcrypt-devel libcurl-devel libe-book libfreetype-devel libgdk-pixbuf libgdk-pixbuf-devel libgdk-pixbuf-gir-devel libgio-devel libglvnd-devel libgpg-error libgpg-error-devel libgraphite2-devel libgst-plugins1.0 libgtk+3-devel libharfbuzz-devel libharfbuzz-icu libicu-devel libltdl7-devel libnspr-devel libnss-devel libpango-devel libpango-gir-devel libpng-devel libpoppler-devel libpq-devel libqt5-core libqt5-gui libqt5-network libqt5-widgets libqt5-x11extras librasqal-devel librevenge-devel libsasl2-3 libstdc++-devel libwayland-client libwayland-client-devel libwayland-cursor libwayland-egl libxcb-devel libxml2-devel libxmlsec1-devel libxmlsec1-nss libxslt-devel pentaho-libxml perl pkg-config python-base python-modules python-modules-compiler python-modules-distutils python3 python3-base python3-module-lxml qt5-base-devel raptor2-devel sac sh4 termutils wayland-devel xml-common xml-utils xorg-proto-devel xz zlib-devel
BuildRequires: boost-filesystem-devel boost-locale-devel boost-signals-devel cppunit-devel doxygen flex fontforge fonts-ttf-liberation git-core gperf graphviz gst-plugins1.0-devel imake libGConf libabw-devel libavahi-devel libbluez-devel libcdr-devel libclucene-core-devel libcmis-devel libcups-devel libdbus-devel libe-book-devel libepoxy-devel libepubgen-devel libetonyek-devel libexpat-devel libexttextcat-devel libfreehand-devel libglm-devel libgpgme-devel libgtk+2-devel libgtk+3-gir-devel libhunspell-devel libhyphen-devel libjpeg-devel liblangtag-devel liblcms2-devel libldap-devel liblpsolve-devel libmspub-devel libmwaw-devel libmysqlclient-devel libmythes-devel libneon-devel libnumbertext-devel libodfgen-devel liborcus-devel libpagemaker-devel libpoppler-cpp-devel libqxp-devel libredland-devel libsane-devel libssl-devel libstaroffice-devel libunixODBC-devel libvisio-devel libwpd10-devel libwpg-devel libwps-devel libxmlsec1-nss-devel libzmf-devel mdds-devel postgresql-devel unzip xorg-cf-files xsltproc zip

# 6.4
BuildRequires: libeot-devel libqrcodegen-cpp-devel

# 7.1
BuildRequires: libbox2d-devel

# 7.2
BuildRequires: libpixman-devel

# 7.3
BuildRequires: libcuckoo-devel libopenjpeg2.0-devel libabseil-cpp-devel

# 7.4
BuildRequires: libwebp-devel libtiff-devel

# 7.5
BuildRequires: libzxing-cpp-devel

# 7.6
BuildRequires: frozen-devel

# 24.2
BuildRequires: libargon2-devel

%if_with java
BuildRequires: java-devel >= 9.0.0 junit ant bsh pentaho-reporting-flow-engine 
%endif

%if_enabled qt5
BuildRequires: qt5-base-devel qt5-svg-devel qt5-x11extras-devel 
BuildRequires: libxcbutil-icccm-devel
BuildRequires: libpixman-devel
%endif

%if_enabled kf5
BuildRequires: kf5-ki18n-devel kf5-kio-devel kf5-kwindowsystem-devel
%endif

%if_without python
BuildRequires: python3-dev
%endif

%if_enabled dconf
BuildRequires: libdconf-devel
%endif

%description
LibreOffice is a productivity suite that is compatible with other major
office suites.

This package provides maximum possible installation of %name along winth
other office packages, except of language packs and GNOME/KDE bindings.

%package full
Summary: LibreOffice.org with extensions
Group: Office
Requires: %name
%if_with java
Requires: %name-extensions = %EVR
Requires: libreoffice-languagetool
%endif
%description full
%summary

%package common
Summary: Basic installation of %name
Group: Office
AutoReqProv: yes, noshell, nopython
%description common
Common part of %name that does not interfere with other packages

%package integrated
Summary: Binaries, icons and desktop files for %name
Group: Office
Provides: %uname = %EVR
Requires: %name-common = %EVR
%if_with java
Requires: pentaho-reporting-flow-engine
%endif
Provides: %name-mimetypes
%description integrated
Wrapper scripts, icons and desktop files for running %name

%package gtk3
Summary: GTK3 Extensions for %name
Group:  Office
Requires: %uname = %EVR
Requires: %name-common = %EVR
Provides: %name-gnome = %EVR
Obsoletes: %name-gnome %name-gtk %name-gtk2
%description gtk3
GTK3 extensions for %name

%if_enabled qt5
%package qt5
Summary: Qt5 Extensions for %name
Group:  Office
Requires: %uname = %EVR
Requires: %name-common = %EVR
%description qt5
qt5 extensions for %name
%endif

%if_enabled kf5
%package kde5
Summary: KDE5 Extensions for %name
Group:  Office
Requires: %uname = %EVR
Requires: %name-common = %EVR
Provides: %name-kde = %EVR
Provides: %name-kf5 = %EVR
%description kde5
KDE5 extensions for %name

%package gtk3-kde5
Summary: GTK3 Extensions for %name with KDE5 filepicker
Group:  Office
Requires: %uname = %EVR
Requires: %name-common = %EVR
%description gtk3-kde5
GTK3 Extensions for %name with KDE5 filepicker
%endif

%package -n libreofficekit
Summary: A library providing access to LibreOffice functionality
Group: Graphical desktop/GNOME
License: MPL-2.0
%description -n libreofficekit
LibreOfficeKit can be used to access LibreOffice functionality
through C/C++, without any need to use UNO.

%package -n libreofficekit-devel
Summary: Development files for libreofficekit
Group: Development/GNOME and GTK+
License: MPL-2.0
%description -n libreofficekit-devel
The libreofficekit-devel package contains libraries and header files for
developing applications that use libreofficekit.


%package extensions
Summary: Additional extensions for %name
Group:  Office
Requires: %uname = %EVR
AutoReqProv: yes, noshell, nopython
%description extensions
Additional extensions for %name.
One can choose either to install this package at once,
or to download and install (possibly newer) extensions manually.

%add_python3_self_prov_path %buildroot%_libdir/LibreOffice/program/uno.py
%add_python3_self_prov_path %buildroot%_libdir/LibreOffice/program/unohelper.py
%add_python3_self_prov_path %buildroot%_libdir/LibreOffice/program/officehelper.py

%package sdk
Group: Development/Other
Summary: Software Development Kit for LibreOffice

%description sdk
The SDK is a development kit for LibreOffice 5.3, which
eases the development of office components. It provides a set of
libraries, binaries, header, and IDL files which have final API's
and can only be extended with new functionality. This set of libraries
and binaries is the minimum set of functions needed to use system
abstraction for base functionality and for using UNO (Universal
Network Objects) component technology. The UNO component model is the
base of the whole Office API. The SDK provides everything necessary
to use the Office API from external programs (e.g. Java, C++) or to
extend the Office functionality with new components (e.g. new filter
components, CalcAddin functions). It is compatible over several
versions because the API remains unaffected and will only be extended
with new functions.

%package postgresql
Group:  Office
Summary: PostgrSQL connector for LibreOffice
%description postgresql
%summary

# TODO redefine %%lang adding corr langpack
# define macro for quick langpack description
%define langpack(l:n:mhH:s:o:v:) \
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
%define lng %{-s:%{-s*}}%{!-s:%{lang}} \
%define hunlng %{-H:%{-H*}}%{!-H:%{lng}} \
%define pkgname langpack-%{lang} \
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
\
%package %{pkgname} \
Summary: %{langname} language pack for %name \
Group:  Office \
Requires: %uname = %EVR \
Requires: hunspell-%hunlng \
%{-m:Requires: mythes-%lng} \
%{-h:Requires: hyphen-%lng} \
%{-o:Obsoletes: %{name}-langpack-%{-o*} < %{-v*}} \
%{-o:Conflicts: %{name}-langpack-%{-o*} < %{-v*}} \
%description %{pkgname} \
Provides additional %{langname} translations and resources for %name. \
\
%files %{pkgname} -f %{lang}.lang \
%{nil}

%prep
%setup -q -n libreoffice-%version -a10 -b1 -b2 -b3

## FC apply patches
%patch1 -p1
%patch2 -p1

## Long-term FC patches applying

## ALT apply patches
%patch401 -p0
%patch402 -p1
%patch404 -p1
##patch405 -p1
##patch406 -p1 # Doesn't compile
##patch407 -p1

%patch500 -p0
# Patch with russian translation update
#patch600 -p1

%patch700 -p1

%patch900 -p1

%ifarch i586
%patch1000 -p1
%endif

# TODO move officebean to SDK or separate package
# Hack in -Wl,-rpath=/usr/lib/jvm/jre-11-openjdk/lib
sed -i 's@JAVA_HOME/lib/ -ljawt@JAVA_HOME/lib/ -Wl,-rpath=/usr/lib/jvm/jre/lib -ljawt@' configure.ac

# Hack out lowercasing install_dirname
sed -i 's/\(^INSTALLDIRNAME=\).*/\1AC_PACKAGE_NAME/' configure.ac
sed -i 's/\(^add_wrapper.*"\)libreoffice-/\1%name-/
s/\(gid_Module_Optional_Xsltfiltersamples.*\)libreoffice-/\1%name-/' bin/distro-install-desktop-integration

%filter_from_requires /libjawt[.]so/d

# Choose right path to kcoreaddons_version.h
if [ -e "%_includedir/KF5/KCoreAddons/kcoreaddons_version.h" ]; then  
    sed -i -e 's|kf5_test_include="KF5/kcoreaddons_version.h"|kf5_test_include="KF5/KCoreAddons/kcoreaddons_version.h"|' configure.ac
fi

# Hack in ALT pixman path
sed -i 's@ -I@ -I /usr/include/pixman-1 -I@' canvas/Library_cairocanvas.mk

# Hack in python shebang
find . -name \*.py | while read F; do
    sed -i '1i#!/usr/bin/python3
/^#!.*python/d' "$F"
done

# Hack in proper LibreOffice PATH in libreofficekit
sed -i 's@/libreoffice/@/LibreOffice/@g' libreofficekit/Library_libreofficekitgtk.mk

# Hack hardcoded lsattr path
for f in `grep -rl '/usr/sbin/lsattr' *`; do sed -i 's@/usr/sbin/lsattr@/usr/bin/lsattr@g' $f; done

# Hack in MimeType=application/vnd.ms-visio.drawing.main+xml
grep -Fq "application/vnd.ms-visio.drawing.main+xml" sysui/desktop/menus/draw.desktop || sed -i 's@MimeType=@MimeType=application/vnd.ms-visio.drawing.main+xml;@' sysui/desktop/menus/draw.desktop

# hack hardcoded libodbc version
sed -i 's/libodbc.so.1/libodbc.so.2/g' connectivity/source/drivers/odbc/OFunctions.cxx

# Hack in relative ln -s

sed -i '/program.soffice/s/ln -sf \("*\$\)/ln --relative -sf $DESTDIR\1/' sysui/desktop/share/create_tree.sh
sed -i '/share.xdg/s/ln -sf \("*\$\)/cp -va $DESTDIR\1/' sysui/desktop/share/create_tree.sh
sed -i 's/ln -sf \("*\$\)/ln --relative -sf $DESTDIR\1/' bin/distro-install-sdk
sed -i 's/ln -sf \("*\$\)/ln --relative -sf $DESTDIR\1/' bin/distro-install-desktop-integration

rm -fr %name-tnslations/git-hooks

# Now create a config file
grep -r getenv * | sed -n 's/.*getenv *( *"\([^"]*\).*/\1/p' | sort -u | grep -E 'STAR_|SAL_|OOO_' > %name.config.ENV

sed -n '/# STAR_PROFILE_LOCKING_DISABLED/,/#.*JITC_PROCESSOR_TYPE_EXPORT/p' < desktop/scripts/soffice.sh > libreoffice.config
test -n "libreoffice.config"
sed -i '/# STAR_PROFILE_LOCKING_DISABLED/i\
test -r %conffile && . %conffile ||:
/# STAR_PROFILE_LOCKING_DISABLED/,/#.*JITC_PROCESSOR_TYPE_EXPORT/d' desktop/scripts/soffice.sh

# Avoid overlinking
sed -i "s@no-as-needed@as-needed@" solenv/gbuild/platform/unxgcc.mk

%build
grep -l GCC_VERSION configure* | while read F; do
        sed -i '/GCC_VERSION=.*AWK/s/.*/GCC_VERSION="${_gcc_version%%%%.*}"/' $F
done
%ifarch mipsel
export CFLAGS="-Os --param ggc-min-expand=20 --param ggc-min-heapsize=32768 -g1"
export CXXFLAGS="$CFLAGS"
%endif

# XXX no "thin" LTO option in GCC!
sed -i 's/-flto=thin/-flto=jobserver/g' solenv/gbuild/platform/com_GCC_defs.mk

PARALLEL=$(nproc)

%ifarch ppc64le
# reduce excessive resource use
if [ "$PARALLEL" -gt 24 ] ; then
        PARALLEL=24
fi
%endif

export ac_cv_prog_LO_CLANG_CXX=""
export ac_cv_prog_LO_CLANG_CC=""
./autogen.sh \
        --prefix=%_prefix \
        --libdir=%_libdir \
        --with-vendor="ALT Linux Team" \
        %{subst_enable lto} \
        %{subst_enable mergelibs} \
        --enable-odk \
        --disable-firebird-sdbc \
        --disable-coinmp \
        --enable-dbus \
        --enable-evolution2 \
        --enable-gio \
        --enable-build-opensymbol \
        --enable-avahi \
        %{subst_with java} \
        --without-fonts \
        --without-myspell-dicts \
        \
        --with-external-dict-dir=%_datadir/myspell \
        --with-external-hyph-dir=%_datadir/hyphen \
        --with-external-thes-dir=%_datadir/mythes \
        --with-lang="%with_lang" \
        --with-external-tar=`pwd`/ext_sources \
        \
        --enable-ext-nlpsolver \
        --enable-ext-numbertext \
        --enable-ext-wiki-publisher \
  \
        --enable-release-build \
        --with-help \
  \
        %{subst_enable kf5} \
        %{subst_enable qt5} \
        %{subst_enable dconf} \
        --enable-gtk3 \
        --without-system-zxcvbn \
%if_enabled kf5 \
        --enable-gtk3-kde5 \
%endif
        --enable-introspection \
        --enable-cipher-openssl-backend \
        --enable-eot \
        --enable-formula-logger \
        --enable-zxing \
  \
%if_with parallelism
        --with-parallelism="$PARALLEL" \
%else   
        --without-parallelism \
%endif
%if_with python
        --enable-python=internal \
%endif
%if_with fetch
        --enable-fetch-external
%else
        --with-system-libs \
        --without-system-poppler \
        --without-system-dragonbox \
        --without-system-libfixmath \
        --disable-fetch-external
%endif

        ## --without-system-libtiff \

# TODO  --enable-vlc --with-system-dragonbox

%make bootstrap

%if_with parallelism
export _JAVA_OPTIONS="-XX:ParallelGCThreads=4 $_JAVA_OPTIONS"
%endif

%make verbose=true build

export DESTDIR=../output
export KDEMAINDIR=/usr
export GNOMEDIR=/usr
export GNOME_MIME_THEME=hicolor
export PREFIXDIR=/usr
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR PKG_CONFIG INSTDIR
export PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR PKG_CONFIG INSTDIR
$WORKDIR/CustomTarget/sysui/share/libreoffice/create_tree.sh

%install
unset RPM_PYTHON

%make DESTDIR=%buildroot INSTALLDIR=%lodir distro-pack-install
rm -f %buildroot%lodir/sdk/config.*

# Drop compatibility symlinks
# https://bugzilla.altlinux.org/34619
rm -f %buildroot%lodir/sdk/classes
sed -i '/^\/usr\/%{_lib}\/LibreOffice\/sdk\/classes$/d' file-lists/sdk_list.txt
rm -f %buildroot%lodir/sdk/idl
sed -i '/^\/usr\/%{_lib}\/LibreOffice\/sdk\/idl$/d' file-lists/sdk_list.txt
rm -f %buildroot%lodir/sdk/docs
sed -i '/^\/usr\/%{_lib}\/LibreOffice\/sdk\/docs$/d' file-lists/sdk_doc_list.txt
rm -f %buildroot%lodir/sdk/include
sed -i '/^\/usr\/%{_lib}\/LibreOffice\/sdk\/include$/d' file-lists/sdk_list.txt

# XXX create versioned links (mentioned in desktop files)
ln -sr %buildroot%lodir/program/soffice %buildroot%_bindir/%uname%hversion
for F in `find %buildroot%_iconsdir/*/*/apps -type f -name "%name-*.*"`; do
        ll=`echo "$F" | sed "s@apps/%name-@apps/%uname%hversion-@"`
        ln -sr "$F" "$ll"
done

# Pick up LOO-generated file lists
for l in %with_lang; do
        ll="`echo "$l" | tr '-' '_'`"
        grep -v '^%%dir' file-lists/lang_${ll}_list.txt > $ll.lang
done

# Reuse upstream SDK plugin list
grep -vh '^%%dir' file-lists/sdk_doc_list.txt file-lists/sdk_list.txt | grep -vF '/sdk/config.' > files.sdk

# Reuse upstream "GNOME" plugin list
grep -vh '^%%dir' file-lists/gnome_list.txt > files.gtk3

# Create qt5 plugin list
find %buildroot%lodir -name "*qt5*"   | sed 's@^%buildroot@@' > files.qt5

# Create kde5 plugin list
find %buildroot%lodir -name "*kf5*" | sed 's@^%buildroot@@' > files.kde5

# Create gkt3-kde5 plugin list
find %buildroot%lodir -name "*kde5*" | sed 's@^%buildroot@@' > files.gtk3-kde5

grep %lodir file-lists/common_list.txt | \
        grep -Ev '/share/extensions/.|%lodir/sdk/.|so[.]debug$|libreofficekit' | \
        cat > files.common
# TODO lo5 or something for stand-alone

grep -v %lodir file-lists/common_list.txt | \
        sed -E 's@(/man/.*)[.]gz@\1.*@' | \
        cat > files.integrated

# Hack out "Education" category from Math
sed -i 's/Education;//' %buildroot%lodir/share/xdg/math.desktop

# TODO some other hack with sysui/desktop/ stuff ?
mkdir %buildroot%_datadir/mimelnk
install sysui/desktop/mimetypes/*.desktop %buildroot%_datadir/mimelnk/
find %buildroot%_iconsdir -type f -name LibreOffice-oasis-\* | while read File; do
        Name=`basename $File`
        Dir=`dirname $File`
        Ext=${File##*.}
        Target=""
        case $Name in
               LibreOffice-oasis-web.*) Target=text-html;;
               LibreOffice-oasis-drawing.*) Target=image-x-generic;;
               LibreOffice-oasis-document.*) Target=x-office-document;;
               LibreOffice-oasis-presentation.*) Target=x-office-presentation;;
               LibreOffice-oasis-spreadsheet.*) Target=x-office-spreadsheet;;
        esac
        test -z "$Target" || ln -sr "$Dir/$Name" "$Dir/$Target.$Ext"
done

# Config file
install -D libreoffice.config %buildroot%conffile

# Typelib/GIR stuff

install -D workdir/CustomTarget/sysui/share/libreofficedev/*.typelib %buildroot%_typelibdir/LOKDocView-0.1.typelib
install -D workdir/CustomTarget/sysui/share/libreofficedev/*.gir %buildroot%_girdir/LOKDocView-0.1.gir
ln -s --relative %buildroot%lodir/program/liblibreofficekitgtk.so %buildroot%_libdir/
mkdir -p %buildroot%_includedir/LibreOfficeKit
install -p include/LibreOfficeKit/* %{buildroot}%{_includedir}/LibreOfficeKit

%langpack -m -h -l en_US -s en  -n English
%langpack -m -h -l ru -H ru-aot -n Russian
%langpack    -h -l be           -n Belorussian
%langpack -m -h -l de           -n German
%langpack -m -h -l fr           -n French
%langpack -m -h -l uk           -n Ukrainian
%langpack -m -h -l pt_BR -s pt  -n Brazilian Portuguese -o pt-BR -v 7.4.2.1-alt1
%langpack -m -h -l es           -n Espanian
%langpack       -l kk           -n Kazakh
%langpack    -h -l tt           -n Tatar

%files

%files full

%files sdk -f files.sdk

%files postgresql -f file-lists/postgresql_list.txt

%files common -f files.common
%config %conffile
%_bindir/%uname%hversion
%_iconsdir/*/*/apps/%uname%hversion-*
%if_with java
%lodir/program/classes/ScriptProviderForBeanShell.jar
%lodir/program/services/scriptproviderforbeanshell.rdb
%endif

%files integrated -f files.integrated
%_datadir/metainfo/LibreOffice*
%_datadir/mimelnk/*
%_iconsdir/*/*/mimetypes/[^Ll]*.*
%_bindir/%name

%files gtk3 -f files.gtk3

%if_enabled qt5
%files qt5 -f files.qt5
%endif

%if_enabled kf5
%files kde5 -f files.kde5
%_datadir/metainfo/*kde*

%files gtk3-kde5 -f files.gtk3-kde5
%endif

%files extensions
%lodir/share/extensions/*

%files -n libreofficekit
%_typelibdir/LOKDocView-*.typelib
%lodir/program/liblibreofficekitgtk.so
%_libdir/liblibreofficekitgtk.so
%lodir/share/libreofficekit

%files -n libreofficekit-devel
%_girdir/LOKDocView-*.gir
%_includedir/LibreOfficeKit

%changelog
* Tue Mar 12 2024 Daniel Zagaynov <kotopesutility@altlinux.org> 24.2.2.1-alt1
- Update to 24.2.2.1

* Sun Feb 11 2024 Daniel Zagaynov <kotopesutility@altlinux.org> 24.2.0.3-alt1
- Update to 24.2.0.3

* Tue Dec 19 2023 Daniel Zagaynov <kotopesutility@altlinux.org> 7.6.4.1-alt2
- FTBFS: fixed build with libxml2 2.12 (ALT #48840).

* Thu Dec 14 2023 Daniel Zagaynov <kotopesutility@altlinux.org> 7.6.4.1-alt1
- Update to 7.6.4.1 (fix CVE-2023-6186 and CVE-2023-6185)

* Wed Nov 15 2023 Daniel Zagaynov <kotopesutility@altlinux.org> 7.6.3.1-alt1
- Update to 7.6.3.1

* Fri Sep 29 2023 Daniel Zagaynov <kotopesutility@altlinux.org> 7.6.2.1-alt1
- Update to 7.6.2.1

* Wed Aug 16 2023 Daniel Zagaynov <kotopesutility@altlinux.org> 7.5.4.2-alt1.1
- NMU: prevents detection of unmet dependency ListDataListener

* Thu Jun 08 2023 Fr. Br. George <george@altlinux.ru> 7.5.4.2-alt1
- Update to 7.5.4.2
- Separate -full package (with extensions and languagetool)

* Fri Feb 17 2023 Fr. Br. George <george@altlinux.ru> 7.5.1.1-alt1
- Update to 7.5.1.1

* Wed Feb 01 2023 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.4.2.3-alt4
- Fixed last fix of pt-BR langpack update conflict
- Solved conflict with old rpm-packet with sdk (drop compatibility symlinks)

* Mon Jan 16 2023 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.4.2.3-alt3
- Fixed pt-BR langpack update conflict

* Mon Nov 21 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.4.2.3-alt2
- NMU: Update russian translation for 7.4.2.3

* Wed Nov 02 2022 Fr. Br. George <george@altlinux.ru> 7.4.2.3-alt1
- Update to 7.4.2.3
- Fix desktop binary naming (Closes: #44176)

* Sun Oct 23 2022 Fr. Br. George <george@altlinux.ru> 7.4.2.1-alt1
- Update to 7.4.2.1
- Use install scheme provided by upstream

* Tue Jul 05 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.3.3.2-alt2
- NMU: Update russian translation for 7.3.3.2

* Fri May 20 2022 Fr. Br. George <george@altlinux.ru> 7.3.3.2-alt1
- Update to 7.3.3.2

* Wed Apr 13 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.3.2.1-alt3
- NMU: Update russian translation patch for 7.3.2.1

* Thu Mar 31 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.3.2.1-alt2
- NMU: Update russian translation for 7.3.2.1

* Mon Mar 21 2022 Andrey Cherepanov <cas@altlinux.org> 7.3.2.1-alt1
- NMU: Update to 7.3.2.1
- Fix insert symbols in Math (ALT #41969)

* Thu Mar 10 2022 Fr. Br. George <george@altlinux.ru> 7.3.1.3-alt1
- Update to 7.3.1.3

* Wed Feb 23 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.3.0.3-alt4
- NMU: - adapted spec for kf5-kcoreaddons-devel-5.91.0-alt1 and kf5-kcoreaddons-devel-5.90.0-alt1

* Mon Feb 22 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.3.0.3-alt3
- NMU:
  + Update russian translation for 7.3.0.3
  + FTBFS: Fix build

* Thu Feb 17 2022 Fr. Br. George <george@altlinux.ru> 7.3.0.3-alt2
- Fix build

* Thu Feb 03 2022 Fr. Br. George <george@altlinux.ru> 7.3.0.3-alt1
- Update to 7.3.0.3 (7.3.0 release)

* Sat Jan 15 2022 Fr. Br. George <george@altlinux.ru> 7.3.0.1-alt1
- Update to 7.3.0.1
- Update buildreq (Closes: #40915, #37391)
- Remove forky.c support

* Thu Jan 13 2022 Aleksei Nikiforov <darktemplar@altlinux.org> 7.2.0.1-alt3
- Enabled SVG icon themes by default for Qt5 and KF5 backends (Closes: #35436).

* Sat Jan 01 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 7.2.0.1-alt2
- Update russian translation for 7.2.0.1

* Tue Aug 03 2021 Andrey Cherepanov <cas@altlinux.org> 7.2.0.1-alt1.1
- FTBFS: patch bundled Skia for freetype 2.11 (ALT #40642)

* Thu Jul 15 2021 Fr. Br. George <george@altlinux.ru> 7.2.0.1-alt1
- Update to 7.2.0.1

* Sun May 16 2021 Fr. Br. George <george@altlinux.ru> 7.1.3.2-alt1
- Update to 7.1.3.2

* Thu May 13 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 7.0.1.2-alt4
- Switched python scripts to python-3.

* Tue Mar 16 2021 Fr. Br. George <george@altlinux.ru> 7.1.1.2-alt1
- Update to 7.1.1.2

* Sat Feb 13 2021 Fr. Br. George <george@altlinux.ru> 7.1.0.3-alt3
- Update to 7.1.0.3
- Remove antic LanguageTool from ext_source
- Bundle Python3.8

* Thu Jan 21 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 7.0.1.2-alt3
- Reduced build workers count for ppc64le.

* Wed Oct 14 2020 Ivan A. Melnikov <iv@altlinux.org> 7.0.1.2-alt2
- Drop LanguageTool dependency for java-less build

* Wed Sep 23 2020 Fr. Br. George <george@altlinux.ru> 7.0.1.2-alt1
- Update to 7.0.1.2

* Sun Aug 30 2020 Fr. Br. George <george@altlinux.ru> 7.0.0.3-alt2
- Avoid qt5 dependency build

* Wed Aug 26 2020 Fr. Br. George <george@altlinux.ru> 7.0.0.3-alt1
- Update to 7.0.0.3
- Drop GTK2 and KDE4 support

* Fri Aug 07 2020 Andrey Cherepanov <cas@altlinux.org> 6.3.0.3-alt6
- Use bundled liborcus-0.14.
- Install mime package bundle for LibreOffice MIME types.

* Fri Jul 24 2020 Andrey Bychkov <mrdrew@altlinux.org> 6.3.0.3-alt5
- Rebuild with dconf enabled (Closes: 38752).

* Mon Jun 01 2020 Ivan A. Melnikov <iv@altlinux.org> 6.3.0.3-alt4
- Fix build with poppler 0.86.0 (see
  https://bugs.documentfoundation.org/show_bug.cgi?id=131353).
- Get rid of java BRs in no-java build.
- Fix build on mipsel:
  + fix linking with libatomic;
  + adjust building options.

* Tue Feb 04 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 6.3.0.3-alt3
- Rebuilt with new poppler and boost.

* Wed Dec 04 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 6.3.0.3-alt2
- Rebuilt with mdds-1.5.0 and boost-1.71.0.

* Mon Aug 05 2019 Fr. Br. George <george@altlinux.ru> 6.3.0.3-alt1
- Version up to 6.3.0.3
- Require pentaho-reporting-flow-engine (Closes: #36900)

* Mon May 27 2019 Fr. Br. George <george@altlinux.ru> 6.2.4.2-alt1
- Verion up (Closes: #36635, #35896)

* Mon Apr 08 2019 Fr. Br. George <george@altlinux.ru> 6.2.2.2-alt1.1
- Build with internal python

* Mon Mar 25 2019 Fr. Br. George <george@altlinux.ru> 6.2.2.2-alt1
- Update to 6.2.2.2

* Sun Mar 03 2019 Nikolai Kostrigin <nickel@altlinux.org> 6.2.1.1-alt2
- Fix FTBFS against libmysqlclient21

* Mon Feb 18 2019 Fr. Br. George <george@altlinux.ru> 6.2.1.1-alt1
- Update to 6.2.1.1 (Closes: #36107, #35504, #35420, #35292)
- Move KDE-depended library to -kde5 package (Closes: #36100)

* Tue Feb 12 2019 Fr. Br. George <george@altlinux.ru> 6.2.0.3-alt1
- Update to 6.2.0.3
- Build with native kde5 SAL instead of gtk3/kde5

* Wed Nov 28 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 6.1.3.1-alt3
- NMU: fixed build with new poppler.

* Mon Oct 22 2018 Ivan Razzhivin <underwit@altlinux.org> 6.1.3.1-alt2
- build with gtk3/kde5 UI

* Wed Oct 17 2018 Fr. Br. George <george@altlinux.ru> 6.1.3.1-alt1
- Update to 6.1.3.1

* Tue Sep 25 2018 Fr. Br. George <george@altlinux.ru> 6.1.2.1-alt1
- Update to 6.1.2.1

* Mon Sep 17 2018 Fr. Br. George <george@altlinux.ru> 6.1.1.2-alt1
- Update to 6.1.1.2

* Mon Aug 20 2018 Fr. Br. George <george@altlinux.ru> 6.1.0.3-alt1
- Update to 6.1.0.3 (Closes: #35135)
- MIPS port, thanks to iv@ (Closes: #35171)

* Wed Jun 06 2018 Fr. Br. George <george@altlinux.ru> 6.0.5.1-alt1
- Update to 6.0.5.1 (Closes: #34765)
- Introduce Qt5 chooser (Closes: #33136)
- Provide libreoffice binary (Closes: #34825)
- Add application/vnd.ms-visio.drawing.main+xml to mimetypes (Closes: #32699)

* Wed May 23 2018 Fr. Br. George <george@altlinux.ru> 6.0.4.2-alt1
- Update to 6.0.4.2

* Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 6.0.1.1-alt1.1
- (NMU) Rebuilt with python-3.6.4.

* Wed Feb 14 2018 Fr. Br. George <george@altlinux.ru> 6.0.1.1-alt1
- Update to 6.0.1.1

* Thu Nov 30 2017 Fr. Br. George <george@altlinux.ru> 5.4.3.2-alt1
- Update to 5.4.3.2

* Mon Nov 20 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 5.4.2.2-alt2
- Rebuilt with libCoinMP-1.8.3.

* Thu Oct 05 2017 Fr. Br. George <george@altlinux.ru> 5.4.2.2-alt1
- Update to 5.4.2.2

* Tue Sep 12 2017 Fr. Br. George <george@altlinux.ru> 5.4.1.2-alt1
- Update to 5.4.1.2

* Mon Jul 31 2017 Fr. Br. George <george@altlinux.ru> 5.4.0.3-alt1
- Update to 5.4.0.3

* Wed Jun 07 2017 Fr. Br. George <george@altlinux.ru> 5.3.3.2-alt2
- Enable languagetool extension

* Wed May 17 2017 Fr. Br. George <george@altlinux.ru> 5.3.3.2-alt1
- Update to 5.3.3.2
- Build SDK

* Wed Apr 12 2017 Fr. Br. George <george@altlinux.ru> 5.3.2.2-alt1
- Update to 5.3.2.2

* Thu Feb 09 2017 Fr. Br. George <george@altlinux.ru> 5.3.0.3-alt1
- Update to 5.3.0.3
- Change versioning scheme

* Mon Oct 17 2016 Fr. Br. George <george@altlinux.ru> 5.2-alt4
- Update to 5.2.3.1

* Wed Aug 24 2016 Fr. Br. George <george@altlinux.ru> 5.2-alt3
- Update to 5.2.1.1

* Tue Jul 19 2016 Fr. Br. George <george@altlinux.ru> 5.2-alt2
- Update to 5.2.0.2
- (closes: #31953)

* Mon Jul 11 2016 Fr. Br. George <george@altlinux.ru> 5.2-alt1
- Update to 5.2.0.1

* Thu Jun 02 2016 Fr. Br. George <george@altlinux.ru> 5.1-alt4
- Update to 5.1.3.2
- Fix buildreqs

* Thu Mar 31 2016 Fr. Br. George <george@altlinux.ru> 5.1-alt3
- Update to 5.1.2.1
- Build with system python again

* Thu Mar 10 2016 Fr. Br. George <george@altlinux.ru> 5.1-alt2
- Update to 5.1.1.3
- Build without forky (turns out -XX:ParallelGCThreads=2 fixes OOM)

* Wed Feb 10 2016 Fr. Br. George <george@altlinux.ru> 5.1-alt1
- Update to 5.1.1.1
- Build with internal Python3

* Wed Nov 04 2015 Fr. Br. George <george@altlinux.ru> 5.0-alt2
- Update to 5.0.3.2

* Wed Sep 16 2015 Fr. Br. George <george@altlinux.ru> 5.0-alt1
- Update to 5.0.3.1
- Rename package
- Remove -standalone package

* Tue Feb 24 2015 Fr. Br. George <george@altlinux.ru> 4.4-alt2
- Update to 4.4.1.2

* Thu Feb 05 2015 Fr. Br. George <george@altlinux.ru> 4.4-alt1
- Update to 4.4.0.3
- Turn tt and be langpacks on

* Mon Dec 01 2014 Fr. Br. George <george@altlinux.ru> 4.3-alt3
- Update to 4.3.5.1

* Wed Nov 19 2014 Fr. Br. George <george@altlinux.ru> 4.3-alt2
- Update to 4.3.4.1

* Wed Nov 12 2014 Fr. Br. George <george@altlinux.ru> 4.3-alt1
- Update to 4.3.3.2
- Provide loffice binary (Closes: #30044)
- Reqiure gst-libav (Closes: #30015)

* Fri Jun 06 2014 Alexey Shabalin <shaba@altlinux.ru> 4.3-alt0.beta2.buildfix1
- 4.3.0.0.beta2-buildfix1
- update BR:
- switch to librevenge-based import libs

* Wed Apr 30 2014 Fr. Br. George <george@altlinux.ru> 4.2-alt3
- Version up to 4.2.4.1

* Wed Apr 16 2014 Fr. Br. George <george@altlinux.ru> 4.2-alt2
- Version up to 4.2.3.3

* Wed Mar 19 2014 Fr. Br. George <george@altlinux.ru> 4.2-alt1
- Version up

* Tue Feb 04 2014 Fr. Br. George <george@altlinux.ru> 4.1-alt9
- Merge -full package into general one
- Buld with help (closes: #29735)
- Require gst1.0 plugins to install (closes: #29782)

* Thu Dec 26 2013 Fr. Br. George <george@altlinux.ru> 4.1-alt8
- Build with --enable-release-build

* Thu Dec 19 2013 Fr. Br. George <george@altlinux.ru> 4.1-alt7
- Version up to officially corporative stable 4.1.4.2
- Disable applied patches

* Mon Nov 25 2013 Fr. Br. George <george@altlinux.ru> 4.1-alt6
- Version up to officially stable 4.1.3.2
- More accurate forky utilization

* Tue Oct 01 2013 Fr. Br. George <george@altlinux.ru> 4.1-alt5
- Version up to 4.1.2.3

* Fri Sep 27 2013 Yuri N. Sedunov <aris@altlinux.org> 4.1-alt4
- rebuild against libharfbuzz-icu

* Wed Sep 04 2013 Fr. Br. George <george@altlinux.ru> 4.1-alt3
- Version up to 4.1.1.2
- Refresh FC patchset
- Un-hardcode /tmp usage (Closes: 29267)

* Tue Aug 13 2013 Alexey Shabalin <shaba@altlinux.ru> 4.1-alt2
- fixed gnome file list
- fixed kde file list
- drop use gnome-open in gnome-open-url.sh
- build with gstreamer-1.0
- build with system libraries (libodfgen,libcdr,libmspub,libmwaw,libvisio,libcmis,libexttextcat)
- build with system jar files
- changed configure options --with-system-* to --with-system-libs

* Tue Jul 30 2013 Fr. Br. George <george@altlinux.ru> 4.1-alt1
- Version up to 4.1.0.4
- Renew FC patchset (previous ones are pushed to upstream)

*  Wed May 15 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt8
- Version up to 4.0.3.3
- Drop some RH patches accepted by upstream

* Wed Apr 24 2013 Sergey V Turchin <zerg@altlinux.org> 4.0-alt7.1
- NMU: rebuilt with new poppler

* Mon Apr 22 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt7
- Closes: 28883
- Drop some internal libraries build

* Thu Apr 18 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt6
- Version up to 4.0.2.2
- Incoprporate useful RH patches

* Thu Mar 21 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt5
- Introduce Kazakh locale
- Fix common binary displacement

* Tue Mar 19 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt4
- Fix conflicts with LO3
- Introduce "full" package (without langpacks and GNOME/KDE stuff)

* Wed Mar 06 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt3
- Update to 4.0.2.1
- Introduce extra extensions
- Separate %name-standalone and %name-integrated packages
- Introduce %name-mimetype

* Tue Mar 05 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt2
- Separate KDE4 plugins
- Apply Firefox certificates import patch

* Tue Feb 19 2013 Fr. Br. George <george@altlinux.ru> 4.0-alt1
Initial test build