15 |
# http://dev-builds.libreoffice.org/pre-releases/src |
# http://dev-builds.libreoffice.org/pre-releases/src |
16 |
%define source_url http://download.documentfoundation.org/libreoffice/src/%libo_version |
%define source_url http://download.documentfoundation.org/libreoffice/src/%libo_version |
17 |
|
|
18 |
# undef to get english only and no-langpacks for a faster smoketest build |
# get english only and no-langpacks for a faster smoketest build |
19 |
%bcond_without langpacks |
%bcond_without langpacks |
20 |
# simplify building before libcmis-0.3 is available |
# simplify building before libcmis-0.3 is available |
21 |
%bcond_with libcmis |
%bcond_with libcmis |
22 |
|
|
23 |
%if %{with langpacks} |
%if %{with langpacks} |
24 |
%define langpack_langs en-US af ar as bg bn br ca cs cy da de dz el es et eu fi fr ga gl gu he hi hr hu it ja ko kn lt mai ml mr nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh-CN zh-TW zu |
%define langpack_langs en-US af ar as bg bn br ca cs cy da de dz el es et eu fa fi fr ga gl gu he hi hr hu it ja ko kn lt lv mai ml mr nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh-CN zh-TW zu |
25 |
%define with_lang --with-lang="%{langpack_langs}" |
%define with_lang --with-lang="%{langpack_langs}" |
26 |
%else |
%else |
27 |
%define langpack_langs en-US |
%define langpack_langs en-US |
1078 |
if ! make VERBOSE=true; then |
if ! make VERBOSE=true; then |
1079 |
# TODO Do we still need this? I think parallel build is reliable |
# TODO Do we still need this? I think parallel build is reliable |
1080 |
# enough these days... |
# enough these days... |
1081 |
# make GMAKE_OPTIONS=-rj1 |
make GMAKE_OPTIONS=-rj1 |
|
exit 1 |
|
1082 |
fi |
fi |
1083 |
|
|
1084 |
#generate the icons and mime type stuff |
#generate the icons and mime type stuff |
1086 |
export KDEMAINDIR=/usr |
export KDEMAINDIR=/usr |
1087 |
export GNOMEDIR=/usr |
export GNOMEDIR=/usr |
1088 |
export GNOME_MIME_THEME=hicolor |
export GNOME_MIME_THEME=hicolor |
|
cd sysui/unxlng*/misc/libreoffice |
|
1089 |
# TODO use empty variables? Should make the renaming hacks in %%install |
# TODO use empty variables? Should make the renaming hacks in %%install |
1090 |
# unnecessary. |
# unnecessary. |
1091 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION |
1092 |
|
cd sysui/unxlng*/misc/libreoffice |
1093 |
./create_tree.sh |
./create_tree.sh |
1094 |
|
|
1095 |
echo build end time is `date`, diskspace: `df -h . | tail -n 1` |
echo build end time is `date`, diskspace: `df -h . | tail -n 1` |
1136 |
rm -rf $langpack |
rm -rf $langpack |
1137 |
done |
done |
1138 |
%endif |
%endif |
|
rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/share/prereg |
|
|
#give a consistent javasettingsunopkginstall.xml |
|
|
$RPM_BUILD_ROOT/%{baseinstdir}/program/unopkg list --bundled || : |
|
1139 |
export WITH_LANG="en-US" |
export WITH_LANG="en-US" |
1140 |
dmake sdkoo |
dmake sdkoo |
1141 |
mv ../unxlng*.pro/LibreOffice_SDK/installed/install/en-US/sdk $RPM_BUILD_ROOT/%{sdkinstdir} |
mv ../unxlng*.pro/LibreOffice_SDK/installed/install/en-US/sdk $RPM_BUILD_ROOT/%{sdkinstdir} |
1323 |
sed -i -e "/NoDisplay=true/d" qstart.desktop |
sed -i -e "/NoDisplay=true/d" qstart.desktop |
1324 |
# relocate the .desktop and icon files |
# relocate the .desktop and icon files |
1325 |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications |
1326 |
for app in base calc draw impress javafilter math startcenter writer; do |
for app in base calc draw impress javafilter math startcenter writer xsltfilter; do |
1327 |
desktop-file-validate $app.desktop |
desktop-file-validate $app.desktop |
1328 |
cp -p $app.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/libreoffice-$app.desktop |
cp -p $app.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/libreoffice-$app.desktop |
1329 |
done |
done |