From 366b18fbd49beddb5ca7960e79aa9339e30ed824bc45702d4773d76dabf8bdc3 Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Fri, 26 Jul 2013 10:13:02 +0000 Subject: [PATCH] - add _constrains to force build on hosts with enough memory (4GB physical RAM, 6GB RAM including swap), and disk space (20GB) - print some information about the build environment: free, df, configure setting result OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=42 --- _constraints | 13 +++++++++++++ libreoffice.changes | 8 ++++++++ libreoffice.spec | 6 ++++++ 3 files changed, 27 insertions(+) create mode 100644 _constraints diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..f69361b --- /dev/null +++ b/_constraints @@ -0,0 +1,13 @@ + + + + 4000 + + + 6000 + + + 20 + + + diff --git a/libreoffice.changes b/libreoffice.changes index e5025e0..be65356 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jul 26 10:06:40 UTC 2013 - pmladek@suse.com + +- add _constrains to force build on hosts with enough memory (4GB physical RAM, + 6GB RAM including swap), and disk space (20GB) +- print some information about the build environment: free, df, configure + setting result + ------------------------------------------------------------------- Tue Jul 16 15:01:51 UTC 2013 - pmladek@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 4a933cd..022ac9d 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1369,6 +1369,8 @@ FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" solenv/src/version.c sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" solenv/src/version.c +# +# see how we stay with memory and %build %{expand:%(cat %_sourcedir/build_prepare.inc)} @@ -1498,6 +1500,10 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" solenv/src/version.c ) # hack to correctly bootstrap python stuff with system python, (deb#501028, i#90701) sed -i -e "s|@INSTALLDIR@|%lo_prefix/%lo_home|" pyuno/source/module/uno.py scripting/source/pyprov/officehelper.py +# see how we stay with memory and disk space +free +df +cat config_host.mk # hard link binaries in the build tree; it might save several GBs on the disk and is faster # touch does not have the --no-dereference option on SLED11-SP1, so this can't be used there %if %save_space == 1