1 |
# download path contains version without the last (fourth) digit |
# download path contains version without the last (fourth) digit |
2 |
%define libo_version 4.3.4 |
%define libo_version 4.4.0 |
3 |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
4 |
# pre-RC) version. The pre-release string is part of tarball file names, |
# pre-RC) version. The pre-release string is part of tarball file names, |
5 |
# so we need a way to define it easily at one place. |
# so we need a way to define it easily at one place. |
45 |
|
|
46 |
Summary: Free Software Productivity Suite |
Summary: Free Software Productivity Suite |
47 |
Name: libreoffice |
Name: libreoffice |
48 |
Version: %{libo_version}.1 |
Version: %{libo_version}.3 |
49 |
Release: %mkrel 3%{?libo_prerelease} |
Release: %mkrel 1%{?libo_prerelease} |
50 |
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 and CC0 |
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 and CC0 |
51 |
Group: Office/Suite |
Group: Office/Suite |
52 |
URL: http://www.libreoffice.org/ |
URL: http://www.libreoffice.org/ |
65 |
#backwards compatability. |
#backwards compatability. |
66 |
Source9: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip |
Source9: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip |
67 |
|
|
68 |
Source41: %{external_url}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 |
# Sources 10-41 are RHEL specific |
69 |
|
Source42: %{external_url}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 |
70 |
|
|
71 |
# build tools |
# build tools |
72 |
BuildRequires: autoconf |
BuildRequires: autoconf |
148 |
BuildRequires: pkgconfig(libmwaw-0.3) |
BuildRequires: pkgconfig(libmwaw-0.3) |
149 |
BuildRequires: pkgconfig(libodfgen-0.1) |
BuildRequires: pkgconfig(libodfgen-0.1) |
150 |
BuildRequires: pkgconfig(liborcus-0.8) |
BuildRequires: pkgconfig(liborcus-0.8) |
151 |
|
BuildRequires: pkgconfig(libpagemaker-0.0) |
152 |
BuildRequires: pkgconfig(librevenge-0.0) |
BuildRequires: pkgconfig(librevenge-0.0) |
153 |
BuildRequires: pkgconfig(libvisio-0.1) |
BuildRequires: pkgconfig(libvisio-0.1) |
154 |
BuildRequires: pkgconfig(libwpd-0.10) |
BuildRequires: pkgconfig(libwpd-0.10) |
222 |
Patch15: 0001-add-X-TryExec-entries-to-desktop-files.patch |
Patch15: 0001-add-X-TryExec-entries-to-desktop-files.patch |
223 |
# not upstreamed |
# not upstreamed |
224 |
Patch16: 0001-disable-PSD-import-test-which-deadlocks-on-ARM.patch |
Patch16: 0001-disable-PSD-import-test-which-deadlocks-on-ARM.patch |
225 |
Patch17: 0001-rhbz-1111216-allow-to-export-an-empty-sheet-to-PDF.patch |
Patch17: 0001-Resolves-fdo-37559-revert-adding-extra-dummy-polygon.patch |
|
Patch18: 0001-avoid-problems-detecting-HTML-files-with-.xls-ext.patch |
|
|
Patch19: 0001-scrolling-very-slow-in-calc.patch |
|
|
Patch20: 0001-Related-rhbz-1117853-nStartPara-of-EE_PARA_NOT_FOUND.patch |
|
|
Patch21: 0001-Resolves-fdo-81487-pasting-into-outline-view-crashes.patch |
|
|
Patch22: 0001-Related-rhbz-1130264-plausible-fix-for-reported-cras.patch |
|
|
Patch23: 0001-if-_CALL_ELF-if-defined-_CALL_ELF-_CALL_ELF-2.patch |
|
|
Patch24: 0002-Linux-AArch64-port.patch |
|
|
Patch25: 0001-fix-KDE4-detection-on-aarch64.patch |
|
|
Patch26: 0001-drop-useless-test-for-ant-apache-regexp.patch |
|
|
Patch27: 0001-No-fstack-protect-strong-for-gcc3_linux_aarch64-cpp2.patch |
|
|
Patch28: 0001-fdo-82496-Change-picture-option-by-rightclicking.patch |
|
|
Patch29: 0001-create-a-master-document-template-type.patch |
|
|
Patch30: 0001-Resolves-fdo-80911-don-t-swap-notes-page-width-heigh.patch |
|
|
Patch31: 0001-default-n-up-printing-of-notes-to-sensible-2-x-1-not.patch |
|
|
Patch32: 0001-n-up-printing-done-by-vcl-brochures-by-draw-impress.patch |
|
|
Patch33: 0001-Resolves-fdo-68967-looping-layout.patch |
|
|
Patch34: 0001-Remove-smb-from-X-KDE-Protocols-lines.patch |
|
|
Patch35: 0001-libgcrypt-and-gnutls-are-only-used-by-our-internal-e.patch |
|
|
Patch36: 0001-allow-to-build-with-system-opencollada.patch |
|
|
Patch37: 0001-Resolves-fdo-37559-revert-adding-extra-dummy-polygon.patch |
|
|
Patch38: 0001-Resolves-fdo-76581-copy-and-paste-slideshow-crash-in.patch |
|
|
Patch39: 0001-fdo-85247-copy-and-paste-of-a-slide-results-in-a-blu.patch |
|
|
Patch40: 0001-fdo-60712-Inherits-cell-styles-in-inserting-rows-col.patch |
|
|
Patch41: 0001-implement-toggling-off-removeable-master-elements-wi.patch |
|
|
Patch42: 0001-Resolves-fdo-78151-change-style-on-toggling-bullets-.patch |
|
|
Patch43: 0001-Resolves-rhbz-1161238-sync-PRESOBJ_OUTLINE-para-dept.patch |
|
|
Patch44: 0001-strip-off-hard-coded-numbering-from-outliner-preview.patch |
|
|
Patch45: 0001-have-a-stab-at-improving-impossible-question.patch |
|
|
Patch46: 0001-just-use-ANSI-C-declarations.patch |
|
|
Patch47: 0001-valgrind-check-return-of-convertDateTime-before-usin.patch |
|
|
Patch48: 0001-table-layout-cache-returns-wrong-rectangle.patch |
|
|
Patch49: 0001-impress-tables-are-not-interactively-growing.patch |
|
|
Patch50: 0001-officecfg-set-VCL.WM.ShouldSwitchWorkspace-to-false.patch |
|
|
Patch51: 0001-Resolves-fdo-86449-backport-rtf-fixes.patch |
|
|
Patch52: 0002-Resolves-fdo-86451-guard-all-the-tops-post-pop.patch |
|
|
Patch53: 0001-Resolves-fdo-86466-Wrong-background-color-shown-in-f.patch |
|
226 |
|
|
227 |
#Mageia Patch |
#Mageia Patch |
228 |
Patch1000: disable-tests.diff |
#Patch1000: disable-tests.diff |
229 |
|
|
230 |
|
|
231 |
%define instdir %{_libdir} |
%define instdir %{_libdir} |
288 |
Conflicts: %name-ure < 3.3.2.2-7 |
Conflicts: %name-ure < 3.3.2.2-7 |
289 |
Obsoletes: libreoffice-appdata < 1:4.3.3.0 |
Obsoletes: libreoffice-appdata < 1:4.3.3.0 |
290 |
Obsoletes: libreoffice-binfilter < 4.0.0.0 |
Obsoletes: libreoffice-binfilter < 4.0.0.0 |
291 |
|
Obsoletes: libreoffice-headless < 1:4.4.0.0 |
292 |
Obsoletes: libreoffice-javafilter < 4.1.0.0 |
Obsoletes: libreoffice-javafilter < 4.1.0.0 |
293 |
Obsoletes: autocorr-eu < 1:4.0.1.2 |
Obsoletes: autocorr-eu < 1:4.0.1.2 |
294 |
Obsoletes: libreoffice-testtools < 3.4.99.1 |
Obsoletes: libreoffice-testtools < 3.4.99.1 |
604 |
This provides documentation for programming using the LibreOffice APIs |
This provides documentation for programming using the LibreOffice APIs |
605 |
and examples of creating extensions (UNO components) for LibreOffice. |
and examples of creating extensions (UNO components) for LibreOffice. |
606 |
|
|
|
|
|
|
%package headless |
|
|
Summary: LibreOffice Headless plug-in |
|
|
Group: Development/Other |
|
|
Requires: %{name}-ure = %{version}-%{release} |
|
|
Requires: %{name}-core = %{version}-%{release} |
|
|
|
|
|
%description headless |
|
|
A plug-in for LibreOffice that enables it to function without an X server. |
|
|
It implements the -headless command line option and allows LibreOffice to be |
|
|
used as a backend server for e.g. document conversion. |
|
|
|
|
|
|
|
607 |
%package glade |
%package glade |
608 |
Summary: Support for creating LibreOffice dialogs in glade |
Summary: Support for creating LibreOffice dialogs in glade |
609 |
Group: Development/GNOME and GTK+ |
Group: Development/GNOME and GTK+ |
843 |
%langpack -l ja -n Japanese -F -A -s cjk -T -X -o ja_JP -V -w ja_JP |
%langpack -l ja -n Japanese -F -A -s cjk -T -X -o ja_JP -V -w ja_JP |
844 |
%langpack -l kk -n Kazakh -F -H |
%langpack -l kk -n Kazakh -F -H |
845 |
%langpack -l kn -n Kannada -F -H -Y -o kn_IN -w ka_IN |
%langpack -l kn -n Kannada -F -H -Y -o kn_IN -w ka_IN |
846 |
%langpack -l ko -n Korean -F -H -A -s cjk -T -c korea -X -o ko_KR -V -w ko_KR |
%langpack -l ko -n Korean -F -H -A -s cjk -T -X -o ko_KR -V -w ko_KR |
847 |
%langpack -l lt -n Lithuanian -F -H -Y -A -o lt_LT -V -w lt_LT -X |
%langpack -l lt -n Lithuanian -F -H -Y -A -o lt_LT -V -w lt_LT -X |
848 |
%langpack -l lv -n Latvian -F -H -Y -M |
%langpack -l lv -n Latvian -F -H -Y -M |
849 |
%langpack -l mai -n Maithili -F -o mai_IN |
%langpack -l mai -n Maithili -F -o mai_IN |
937 |
%{!?-l:%{error:-l must be present}} |
%{!?-l:%{error:-l must be present}} |
938 |
|
|
939 |
%prep |
%prep |
940 |
|
echo %patches |
941 |
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 1 -b 2 |
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 1 -b 2 |
942 |
rm -rf git-hooks */git-hooks |
rm -rf git-hooks */git-hooks |
943 |
|
|
965 |
# apply patches |
# apply patches |
966 |
git am %{patches} |
git am %{patches} |
967 |
|
|
968 |
|
# disable failing tests |
969 |
|
%if 0%{?rhel} |
970 |
|
sed -i -e /CppunitTest_sw_ooxmlsdrexport/d sw/Module_sw.mk |
971 |
|
git commit -am 'disable failing tests on rhel' |
972 |
|
%endif |
973 |
|
|
974 |
# Seeing .git dir makes some of the build tools change their behavior. |
# Seeing .git dir makes some of the build tools change their behavior. |
975 |
# We do not want that. Note: it is still possible to use |
# We do not want that. Note: it is still possible to use |
1067 |
export KDEMAINDIR=/usr |
export KDEMAINDIR=/usr |
1068 |
export GNOMEDIR=/usr |
export GNOMEDIR=/usr |
1069 |
export GNOME_MIME_THEME=hicolor |
export GNOME_MIME_THEME=hicolor |
1070 |
|
export PREFIXDIR=/usr |
1071 |
# TODO use empty variables? Should make the renaming hacks in %%install |
# TODO use empty variables? Should make the renaming hacks in %%install |
1072 |
# unnecessary. |
# unnecessary. |
1073 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR |
1433 |
%{baseinstdir}/program/gengal |
%{baseinstdir}/program/gengal |
1434 |
%{baseinstdir}/program/gengal.bin |
%{baseinstdir}/program/gengal.bin |
1435 |
%{baseinstdir}/program/gnome-open-url |
%{baseinstdir}/program/gnome-open-url |
|
%{baseinstdir}/program/gnome-open-url.bin |
|
1436 |
%{baseinstdir}/program/libi18nsearchlo.so |
%{baseinstdir}/program/libi18nsearchlo.so |
1437 |
%{baseinstdir}/program/libldapbe2lo.so |
%{baseinstdir}/program/libldapbe2lo.so |
1438 |
%{baseinstdir}/program/libacclo.so |
%{baseinstdir}/program/libacclo.so |
1439 |
%{baseinstdir}/program/libavmedia*.so |
%{baseinstdir}/program/libavmedia*.so |
1440 |
|
%{baseinstdir}/program/libbasebmplo.so |
1441 |
%{baseinstdir}/program/libbasctllo.so |
%{baseinstdir}/program/libbasctllo.so |
1442 |
%{baseinstdir}/program/libbiblo.so |
%{baseinstdir}/program/libbiblo.so |
1443 |
%{baseinstdir}/program/libcached1.so |
%{baseinstdir}/program/libcached1.so |
1496 |
%{baseinstdir}/program/libhelplinkerlo.so |
%{baseinstdir}/program/libhelplinkerlo.so |
1497 |
%{baseinstdir}/program/libhyphenlo.so |
%{baseinstdir}/program/libhyphenlo.so |
1498 |
%{baseinstdir}/program/libjdbclo.so |
%{baseinstdir}/program/libjdbclo.so |
1499 |
|
# TODO: move elsewhere? |
1500 |
|
%{baseinstdir}/program/liblibreofficekitgtk.so |
1501 |
%{baseinstdir}/program/liblnglo.so |
%{baseinstdir}/program/liblnglo.so |
1502 |
%{baseinstdir}/program/libloglo.so |
%{baseinstdir}/program/libloglo.so |
1503 |
%{baseinstdir}/program/liblocaledata_en.so |
%{baseinstdir}/program/liblocaledata_en.so |
1559 |
%if %{build_gtk3} |
%if %{build_gtk3} |
1560 |
%{baseinstdir}/program/libvclplug_gtk3lo.so |
%{baseinstdir}/program/libvclplug_gtk3lo.so |
1561 |
%endif |
%endif |
1562 |
|
%{baseinstdir}/program/libvclplug_svplo.so |
1563 |
%{baseinstdir}/program/libxmlfalo.so |
%{baseinstdir}/program/libxmlfalo.so |
1564 |
%{baseinstdir}/program/libxmlfdlo.so |
%{baseinstdir}/program/libxmlfdlo.so |
1565 |
%{baseinstdir}/program/libxoflo.so |
%{baseinstdir}/program/libxoflo.so |
1573 |
%{baseinstdir}/program/libmigrationoo2lo.so |
%{baseinstdir}/program/libmigrationoo2lo.so |
1574 |
%{baseinstdir}/program/libmigrationoo3lo.so |
%{baseinstdir}/program/libmigrationoo3lo.so |
1575 |
%{baseinstdir}/program/libmsformslo.so |
%{baseinstdir}/program/libmsformslo.so |
|
%{baseinstdir}/program/nsplugin |
|
1576 |
%{baseinstdir}/program/open-url |
%{baseinstdir}/program/open-url |
1577 |
%{baseinstdir}/program/types/offapi.rdb |
%{baseinstdir}/program/types/offapi.rdb |
1578 |
%{baseinstdir}/program/libpasswordcontainerlo.so |
%{baseinstdir}/program/libpasswordcontainerlo.so |
1631 |
%{baseinstdir}/program/libucpexpand1lo.so |
%{baseinstdir}/program/libucpexpand1lo.so |
1632 |
%{baseinstdir}/program/libucpextlo.so |
%{baseinstdir}/program/libucpextlo.so |
1633 |
%{baseinstdir}/program/libucptdoc1lo.so |
%{baseinstdir}/program/libucptdoc1lo.so |
1634 |
%{baseinstdir}/program/unorc |
%{baseinstdir}/program/lounorc |
1635 |
%{baseinstdir}/program/libupdatefeedlo.so |
%{baseinstdir}/program/libupdatefeedlo.so |
1636 |
%{baseinstdir}/ure-link |
%{baseinstdir}/ure-link |
1637 |
%{baseinstdir}/program/uri-encode |
%{baseinstdir}/program/uri-encode |
1646 |
%{baseinstdir}/share/autotext/en-US |
%{baseinstdir}/share/autotext/en-US |
1647 |
%{baseinstdir}/share/basic |
%{baseinstdir}/share/basic |
1648 |
%dir %{baseinstdir}/share/config |
%dir %{baseinstdir}/share/config |
|
%{baseinstdir}/share/config/images.zip |
|
1649 |
%{baseinstdir}/share/config/images_crystal.zip |
%{baseinstdir}/share/config/images_crystal.zip |
1650 |
%{baseinstdir}/share/config/images_galaxy.zip |
%{baseinstdir}/share/config/images_galaxy.zip |
1651 |
%{baseinstdir}/share/config/images_hicontrast.zip |
%{baseinstdir}/share/config/images_hicontrast.zip |
1730 |
%{baseinstdir}/program/libucpfile1.so |
%{baseinstdir}/program/libucpfile1.so |
1731 |
%{baseinstdir}/program/libutllo.so |
%{baseinstdir}/program/libutllo.so |
1732 |
%{baseinstdir}/program/libvcllo.so |
%{baseinstdir}/program/libvcllo.so |
|
%{baseinstdir}/program/libvclopengllo.so |
|
1733 |
%{baseinstdir}/program/libwriterperfectlo.so |
%{baseinstdir}/program/libwriterperfectlo.so |
1734 |
%{baseinstdir}/program/libxmlscriptlo.so |
%{baseinstdir}/program/libxmlscriptlo.so |
1735 |
%{baseinstdir}/program/libxolo.so |
%{baseinstdir}/program/libxolo.so |
1757 |
%{baseinstdir}/program/soffice.bin |
%{baseinstdir}/program/soffice.bin |
1758 |
%{baseinstdir}/program/sofficerc |
%{baseinstdir}/program/sofficerc |
1759 |
%{baseinstdir}/program/unoinfo |
%{baseinstdir}/program/unoinfo |
|
%{baseinstdir}/program/libnpsoplugin.so |
|
1760 |
%{baseinstdir}/program/oosplash |
%{baseinstdir}/program/oosplash |
1761 |
%{baseinstdir}/program/shell/ |
%{baseinstdir}/program/shell/ |
1762 |
%dir %{baseinstdir}/share/filter |
%dir %{baseinstdir}/share/filter |
1872 |
%{baseinstdir}/program/libsclo.so |
%{baseinstdir}/program/libsclo.so |
1873 |
%{baseinstdir}/program/libscdlo.so |
%{baseinstdir}/program/libscdlo.so |
1874 |
%{baseinstdir}/program/libscfiltlo.so |
%{baseinstdir}/program/libscfiltlo.so |
|
%{baseinstdir}/program/libscopencllo.so |
|
1875 |
%{baseinstdir}/program/libscuilo.so |
%{baseinstdir}/program/libscuilo.so |
1876 |
%{baseinstdir}/program/libsolverlo.so |
%{baseinstdir}/program/libsolverlo.so |
1877 |
%{baseinstdir}/program/libwpftcalclo.so |
%{baseinstdir}/program/libwpftcalclo.so |
1989 |
%{sdkinstdir}/docs/ |
%{sdkinstdir}/docs/ |
1990 |
%{sdkinstdir}/examples/ |
%{sdkinstdir}/examples/ |
1991 |
|
|
|
%files headless |
|
|
%{baseinstdir}/program/libbasebmplo.so |
|
|
%{baseinstdir}/program/libvclplug_svplo.so |
|
|
|
|
1992 |
%files pyuno |
%files pyuno |
1993 |
%{baseinstdir}/program/libpyuno.so |
%{baseinstdir}/program/libpyuno.so |
1994 |
%{baseinstdir}/program/pythonloader.py* |
%{baseinstdir}/program/pythonloader.py* |