allow to limit the space needed for build

f41
David Tardon 11 years ago
parent ce16e3ab22
commit f8574d3d9e

@ -30,6 +30,13 @@
# effect # effect
%bcond_without langpacks %bcond_without langpacks
# remove workdir at the end of %%build, to allow build on space-constrained machines
%ifarch s390 s390x
%bcond_without smallbuild
%else
%bcond_with smallbuild
%endif
# generated by %%langpack definitions # generated by %%langpack definitions
%global langpack_langs %{nil} %global langpack_langs %{nil}
@ -1266,8 +1273,17 @@ export GNOME_MIME_THEME=hicolor
# TODO use empty variables? Should make the renaming hacks in %%install # TODO use empty variables? Should make the renaming hacks in %%install
# unnecessary. # unnecessary.
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR . ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR
cd $WORKDIR/CustomTarget/sysui/share/libreoffice pushd $WORKDIR/CustomTarget/sysui/share/libreoffice
./create_tree.sh ./create_tree.sh
popd
mkdir $WORKDIR/os-integration
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration
%if %{with smallbuild}
# remove the biggest offenders
# NOTE: not removing complete LinkTarget, as some libs are needed for smoketest
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget/CppunitTest
%endif
echo build end time is `date`, diskspace: `df -h . | tail -n 1` echo build end time is `date`, diskspace: `df -h . | tail -n 1`
@ -1474,7 +1490,7 @@ for app in base calc draw impress math startcenter writer xsltfilter; do
done done
popd popd
pushd $WORKDIR/CustomTarget/sysui/share/output/usr/share pushd $WORKDIR/os-integration
#get rid of the gnome icons and other unneeded files #get rid of the gnome icons and other unneeded files
rm -rf icons/gnome applications application-registry rm -rf icons/gnome applications application-registry

Loading…
Cancel
Save