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.1 |
%define libo_version 4.3.3 |
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}.2 |
Version: %{libo_version}.1 |
49 |
Release: %mkrel 4%{?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 |
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/ |
53 |
|
|
222 |
Patch19: 0001-Related-rhbz-1117853-nStartPara-of-EE_PARA_NOT_FOUND.patch |
Patch19: 0001-Related-rhbz-1117853-nStartPara-of-EE_PARA_NOT_FOUND.patch |
223 |
Patch20: 0001-Resolves-fdo-81487-pasting-into-outline-view-crashes.patch |
Patch20: 0001-Resolves-fdo-81487-pasting-into-outline-view-crashes.patch |
224 |
Patch21: 0001-Related-rhbz-1130264-plausible-fix-for-reported-cras.patch |
Patch21: 0001-Related-rhbz-1130264-plausible-fix-for-reported-cras.patch |
225 |
Patch22: 0001-Resolves-rhbz-1125588-port-LibreOffice-to-ppc64le.patch |
Patch22: 0001-if-_CALL_ELF-if-defined-_CALL_ELF-_CALL_ELF-2.patch |
226 |
Patch23: 0001-if-_CALL_ELF-if-defined-_CALL_ELF-_CALL_ELF-2.patch |
Patch23: 0002-Linux-AArch64-port.patch |
227 |
Patch24: 0001-fix-variable-name.patch |
Patch24: 0001-fix-KDE4-detection-on-aarch64.patch |
228 |
Patch25: 0001-cast-arg-to-the-right-type.patch |
Patch25: 0001-drop-useless-test-for-ant-apache-regexp.patch |
229 |
Patch26: 0001-sigh-simply-forgot-to-include-the-endian-header.patch |
Patch26: 0001-No-fstack-protect-strong-for-gcc3_linux_aarch64-cpp2.patch |
230 |
Patch27: 0002-Linux-AArch64-port.patch |
Patch27: 0001-fdo-82496-Change-picture-option-by-rightclicking.patch |
231 |
Patch28: 0001-fix-KDE4-detection-on-aarch64.patch |
Patch28: 0001-create-a-master-document-template-type.patch |
232 |
Patch29: 0001-drop-useless-test-for-ant-apache-regexp.patch |
Patch29: 0001-Resolves-fdo-80911-don-t-swap-notes-page-width-heigh.patch |
233 |
|
Patch30: 0001-default-n-up-printing-of-notes-to-sensible-2-x-1-not.patch |
234 |
|
Patch31: 0001-n-up-printing-done-by-vcl-brochures-by-draw-impress.patch |
235 |
|
Patch32: 0001-Resolves-fdo-68967-looping-layout.patch |
236 |
|
Patch33: 0001-Remove-smb-from-X-KDE-Protocols-lines.patch |
237 |
|
Patch34: 0001-libgcrypt-and-gnutls-are-only-used-by-our-internal-e.patch |
238 |
|
|
239 |
#Mageia Patch |
#Mageia Patch |
240 |
Patch1000: disable-tests.diff |
Patch1000: disable-tests.diff |
298 |
Provides: libreoffice-style-tango = %{version}-%{release} |
Provides: libreoffice-style-tango = %{version}-%{release} |
299 |
Provides: libreoffice-style-oxygen = %{version}-%{release} |
Provides: libreoffice-style-oxygen = %{version}-%{release} |
300 |
Conflicts: %name-ure < 3.3.2.2-7 |
Conflicts: %name-ure < 3.3.2.2-7 |
301 |
|
Obsoletes: libreoffice-appdata < 1:4.3.3.0 |
302 |
Obsoletes: libreoffice-binfilter < 4.0.0.0 |
Obsoletes: libreoffice-binfilter < 4.0.0.0 |
303 |
Obsoletes: libreoffice-javafilter < 4.1.0.0 |
Obsoletes: libreoffice-javafilter < 4.1.0.0 |
304 |
Obsoletes: autocorr-eu < 1:4.0.1.2 |
Obsoletes: autocorr-eu < 1:4.0.1.2 |
657 |
A plug-in for LibreOffice that enables integration into the KDE desktop environment. |
A plug-in for LibreOffice that enables integration into the KDE desktop environment. |
658 |
%endif |
%endif |
659 |
|
|
|
%package appdata |
|
|
Summary: AppData support for LibreOffice |
|
|
Group: Office/Utilities |
|
|
License: CC0 |
|
|
BuildArch: noarch |
|
|
|
|
|
%description appdata |
|
|
%{name}-appdata contains the AppData definition file for LibreOffice. |
|
|
|
|
|
|
|
660 |
%if 0%{?_enable_debug_packages} |
%if 0%{?_enable_debug_packages} |
661 |
|
|
662 |
%define debug_package %{nil} |
%define debug_package %{nil} |
918 |
%autocorr -l ca -n Catalan |
%autocorr -l ca -n Catalan |
919 |
%autocorr -l cs -n Czech |
%autocorr -l cs -n Czech |
920 |
%autocorr -l da -n Danish |
%autocorr -l da -n Danish |
921 |
%autocorr -l de -n German |
%autocorr -l de -n German -L |
922 |
%autocorr -l es -n Spanish |
%autocorr -l es -n Spanish -L |
923 |
%autocorr -l fa -n Farsi |
%autocorr -l fa -n Farsi |
924 |
%autocorr -l fi -n Finnish |
%autocorr -l fi -n Finnish |
925 |
%autocorr -l fr -n French -L |
%autocorr -l fr -n French -L |
927 |
%autocorr -l hr -n Croatian |
%autocorr -l hr -n Croatian |
928 |
%autocorr -l hu -n Hungarian |
%autocorr -l hu -n Hungarian |
929 |
%autocorr -l is -n Icelandic |
%autocorr -l is -n Icelandic |
930 |
%autocorr -l it -n Italian |
%autocorr -l it -n Italian -L |
931 |
%autocorr -l ja -n Japanese |
%autocorr -l ja -n Japanese |
932 |
%autocorr -l ko -n Korean |
%autocorr -l ko -n Korean |
933 |
%autocorr -l lb -n Luxembourgish |
%autocorr -l lb -n Luxembourgish |
971 |
#Customize Palette to add Red Hat colours |
#Customize Palette to add Red Hat colours |
972 |
#TODO: have and add mageia colours |
#TODO: have and add mageia colours |
973 |
(head -n -1 extras/source/palettes/standard.soc && \ |
(head -n -1 extras/source/palettes/standard.soc && \ |
974 |
echo -e ' <draw:color draw:name="Mageia 1" draw:color="#cc0000"/> |
echo -e ' <draw:color draw:name="Mageia 1" draw:color="#cc0000"/> |
975 |
<draw:color draw:name="Mageia 2" draw:color="#0093d9"/> |
<draw:color draw:name="Mageia 2" draw:color="#0093d9"/> |
976 |
<draw:color draw:name="Mageia 3" draw:color="#ff8d00"/> |
<draw:color draw:name="Mageia 3" draw:color="#ff8d00"/> |
977 |
<draw:color draw:name="Mageia 4" draw:color="#abb400"/> |
<draw:color draw:name="Mageia 4" draw:color="#abb400"/> |
978 |
<draw:color draw:name="Mageia 5" draw:color="#4e376b"/>' && \ |
<draw:color draw:name="Mageia 5" draw:color="#4e376b"/>' && \ |
979 |
tail -n 1 extras/source/palettes/standard.soc) > mageia.soc |
tail -n 1 extras/source/palettes/standard.soc) > mageia.soc |
980 |
mv -f mageia.soc extras/source/palettes/standard.soc |
mv -f mageia.soc extras/source/palettes/standard.soc |
981 |
|
|
1107 |
|
|
1108 |
# installation |
# installation |
1109 |
|
|
1110 |
mkdir -p %{buildroot}%{instdir} |
install -m 0755 -d %{buildroot}%{instdir} |
1111 |
if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then |
if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then |
1112 |
echo - ---dump log start--- |
echo - ---dump log start--- |
1113 |
cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log |
cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log |
1120 |
echo - ---dump log end -- languagepacks--- |
echo - ---dump log end -- languagepacks--- |
1121 |
exit 1 |
exit 1 |
1122 |
fi |
fi |
1123 |
mkdir -p %{buildroot}%{baseinstdir} |
install -m 0755 -d %{buildroot}%{baseinstdir} |
1124 |
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir} |
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir} |
1125 |
%if %{with langpacks} |
%if %{with langpacks} |
1126 |
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do |
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do |
1180 |
%make_autocorr_aliases -l en-ZA en-NA en-ZW |
%make_autocorr_aliases -l en-ZA en-NA en-ZW |
1181 |
%if %{with langpacks} |
%if %{with langpacks} |
1182 |
%make_autocorr_aliases -l af-ZA af-NA |
%make_autocorr_aliases -l af-ZA af-NA |
|
%make_autocorr_aliases -l de-DE de-AT de-BE de-CH de-LI de-LU |
|
|
%make_autocorr_aliases -l es-ES es-AR es-BO es-CL es-CO es-CR es-CU es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE |
|
|
%make_autocorr_aliases -l it-IT it-CH |
|
1183 |
%make_autocorr_aliases -l nl-NL nl-AW |
%make_autocorr_aliases -l nl-NL nl-AW |
1184 |
%make_autocorr_aliases -l sv-SE sv-FI |
%make_autocorr_aliases -l sv-SE sv-FI |
1185 |
%else |
%else |
1187 |
%endif |
%endif |
1188 |
popd |
popd |
1189 |
#rhbz#484055 make these shared across multiple applications |
#rhbz#484055 make these shared across multiple applications |
1190 |
mkdir -p %{buildroot}%{_datadir} |
install -m 0755 -d %{buildroot}%{_datadir} |
1191 |
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr |
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr |
1192 |
chmod 755 %{buildroot}%{_datadir}/autocorr |
chmod 755 %{buildroot}%{_datadir}/autocorr |
1193 |
|
|
1202 |
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \; |
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \; |
1203 |
|
|
1204 |
# move python bits into site-packages |
# move python bits into site-packages |
1205 |
mkdir -p %{buildroot}%{python3_sitearch} |
install -m 0755 -d %{buildroot}%{python3_sitearch} |
1206 |
pushd %{buildroot}%{python3_sitearch} |
pushd %{buildroot}%{python3_sitearch} |
1207 |
echo "import sys, os" > uno.py |
echo "import sys, os" > uno.py |
1208 |
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py |
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py |
1241 |
if [ $executable == 1 ]; then false; fi |
if [ $executable == 1 ]; then false; fi |
1242 |
|
|
1243 |
#make up some /usr/bin scripts |
#make up some /usr/bin scripts |
1244 |
mkdir -p %{buildroot}%{_bindir} |
install -m 0755 -d %{buildroot}%{_bindir} |
1245 |
|
|
1246 |
pushd %{buildroot}%{_bindir} |
pushd %{buildroot}%{_bindir} |
1247 |
echo \#\!/bin/sh > ooffice |
echo \#\!/bin/sh > ooffice |
1284 |
# rhbz#156677 / rhbz#186515 do not show math and startcenter |
# rhbz#156677 / rhbz#186515 do not show math and startcenter |
1285 |
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop |
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop |
1286 |
# relocate the .desktop and icon files |
# relocate the .desktop and icon files |
1287 |
mkdir -p %{buildroot}%{_datadir}/applications |
install -m 0755 -d %{buildroot}%{_datadir}/applications |
1288 |
for app in base calc draw impress math startcenter writer xsltfilter; do |
for app in base calc draw impress math startcenter writer xsltfilter; do |
1289 |
sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop |
sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop |
1290 |
desktop-file-validate $app.desktop |
desktop-file-validate $app.desktop |
1291 |
cp -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop |
install -m 0644 -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop |
1292 |
done |
done |
1293 |
popd |
popd |
1294 |
|
|
1337 |
#relocate the rest of them |
#relocate the rest of them |
1338 |
# rhbz#901346 512x512 icons are not used by anything |
# rhbz#901346 512x512 icons are not used by anything |
1339 |
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do |
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do |
1340 |
mkdir -p %{buildroot}%{_datadir}/`dirname $icon` |
install -m 0755 -d %{buildroot}%{_datadir}/`dirname $icon` |
1341 |
cp -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@` |
install -m 0644 -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@` |
1342 |
done |
done |
1343 |
mkdir -p %{buildroot}%{_datadir}/mime-info |
install -m 0755 -d %{buildroot}%{_datadir}/mime-info |
1344 |
cp -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}%{_datadir}/mime-info/libreoffice.keys |
install -m 0644 -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}%{_datadir}/mime-info/libreoffice.keys |
1345 |
cp -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}%{_datadir}/mime-info/libreoffice.mime |
install -m 0644 -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}%{_datadir}/mime-info/libreoffice.mime |
1346 |
#add our mime-types, e.g. for .oxt extensions |
#add our mime-types, e.g. for .oxt extensions |
1347 |
mkdir -p %{buildroot}%{_datadir}/mime/packages |
install -m 0755 -d %{buildroot}%{_datadir}/mime/packages |
1348 |
cp -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml |
install -m 0644 -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml |
1349 |
popd |
popd |
1350 |
|
|
1351 |
rm -rf %{buildroot}%{baseinstdir}/readmes |
rm -rf %{buildroot}%{baseinstdir}/readmes |
1352 |
rm -rf %{buildroot}%{baseinstdir}/licenses |
rm -rf %{buildroot}%{baseinstdir}/licenses |
1353 |
|
|
1354 |
mkdir -p %{buildroot}%{baseinstdir}/share/psprint/driver |
install -m 0755 -d %{buildroot}%{baseinstdir}/share/psprint/driver |
1355 |
cp -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS |
install -m 0644 -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS |
1356 |
|
|
1357 |
# rhbz#452385 to auto have postgres in classpath if subsequently installed |
# rhbz#452385 to auto have postgres in classpath if subsequently installed |
1358 |
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc |
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc |
1363 |
popd |
popd |
1364 |
|
|
1365 |
# move glade catalog to system glade dir |
# move glade catalog to system glade dir |
1366 |
mkdir -p %{buildroot}%{_datadir}/glade3/catalogs |
install -m 0755 -d %{buildroot}%{_datadir}/glade3/catalogs |
1367 |
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs |
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs |
1368 |
|
|
1369 |
# rhbz#1049543 install appdata |
# rhbz#1049543 install appdata |
1370 |
mkdir -p %{buildroot}%{_datadir}/appdata |
install -m 0755 -d %{buildroot}%{_datadir}/appdata |
1371 |
cp -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata |
install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata |
1372 |
|
|
1373 |
# install man pages |
# install man pages |
1374 |
install -m 0755 -d %{buildroot}%{_mandir}/man1 |
install -m 0755 -d %{buildroot}%{_mandir}/man1 |
1831 |
%{baseinstdir}/share/registry/base.xcd |
%{baseinstdir}/share/registry/base.xcd |
1832 |
%{baseinstdir}/share/registry/reportbuilder.xcd |
%{baseinstdir}/share/registry/reportbuilder.xcd |
1833 |
%{baseinstdir}/program/sbase |
%{baseinstdir}/program/sbase |
1834 |
|
%{_datadir}/appdata/libreoffice-base.appdata.xml |
1835 |
%{_datadir}/applications/libreoffice-base.desktop |
%{_datadir}/applications/libreoffice-base.desktop |
1836 |
%{_bindir}/oobase |
%{_bindir}/oobase |
1837 |
%{_mandir}/man1/oobase.1* |
%{_mandir}/man1/oobase.1* |
1901 |
%{baseinstdir}/share/registry/calc.xcd |
%{baseinstdir}/share/registry/calc.xcd |
1902 |
%{baseinstdir}/program/pagein-calc |
%{baseinstdir}/program/pagein-calc |
1903 |
%{baseinstdir}/program/scalc |
%{baseinstdir}/program/scalc |
1904 |
|
%{_datadir}/appdata/libreoffice-calc.appdata.xml |
1905 |
%{_datadir}/applications/libreoffice-calc.desktop |
%{_datadir}/applications/libreoffice-calc.desktop |
1906 |
%{_bindir}/oocalc |
%{_bindir}/oocalc |
1907 |
%{_mandir}/man1/oocalc.1* |
%{_mandir}/man1/oocalc.1* |
1911 |
%{baseinstdir}/share/registry/draw.xcd |
%{baseinstdir}/share/registry/draw.xcd |
1912 |
%{baseinstdir}/program/pagein-draw |
%{baseinstdir}/program/pagein-draw |
1913 |
%{baseinstdir}/program/sdraw |
%{baseinstdir}/program/sdraw |
1914 |
|
%{_datadir}/appdata/libreoffice-draw.appdata.xml |
1915 |
%{_datadir}/applications/libreoffice-draw.desktop |
%{_datadir}/applications/libreoffice-draw.desktop |
1916 |
%{_bindir}/oodraw |
%{_bindir}/oodraw |
1917 |
%{_mandir}/man1/oodraw.1* |
%{_mandir}/man1/oodraw.1* |
1935 |
%{baseinstdir}/share/registry/writer.xcd |
%{baseinstdir}/share/registry/writer.xcd |
1936 |
%{baseinstdir}/program/pagein-writer |
%{baseinstdir}/program/pagein-writer |
1937 |
%{baseinstdir}/program/swriter |
%{baseinstdir}/program/swriter |
1938 |
|
%{_datadir}/appdata/libreoffice-writer.appdata.xml |
1939 |
%{_datadir}/applications/libreoffice-writer.desktop |
%{_datadir}/applications/libreoffice-writer.desktop |
1940 |
%{_bindir}/oowriter |
%{_bindir}/oowriter |
1941 |
%{_mandir}/man1/oowriter.1* |
%{_mandir}/man1/oowriter.1* |
1955 |
%{baseinstdir}/share/registry/impress.xcd |
%{baseinstdir}/share/registry/impress.xcd |
1956 |
%{baseinstdir}/program/pagein-impress |
%{baseinstdir}/program/pagein-impress |
1957 |
%{baseinstdir}/program/simpress |
%{baseinstdir}/program/simpress |
1958 |
|
%{_datadir}/appdata/libreoffice-impress.appdata.xml |
1959 |
%{_datadir}/applications/libreoffice-impress.desktop |
%{_datadir}/applications/libreoffice-impress.desktop |
1960 |
%{_bindir}/ooimpress |
%{_bindir}/ooimpress |
1961 |
%{_mandir}/man1/ooimpress.1* |
%{_mandir}/man1/ooimpress.1* |
2044 |
%{baseinstdir}/program/kde-open-url |
%{baseinstdir}/program/kde-open-url |
2045 |
%endif |
%endif |
2046 |
|
|
|
%files appdata |
|
|
%doc instdir/LICENSE |
|
|
%dir %{_datadir}/appdata |
|
|
%{_datadir}/appdata/*.appdata.xml |
|
|
|
|
|
|
|
2047 |
%files java-common |
%files java-common |
2048 |
%dir %{baseinstdir}/program/classes |
%dir %{baseinstdir}/program/classes |
2049 |
%{baseinstdir}/program/classes/commonwizards.jar |
%{baseinstdir}/program/classes/commonwizards.jar |