X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=rpminstall_sh.txt;h=bb7bb3fc10c2eca112c603e00e7b03e5f070deed;hb=a73b932d4a82142529356420af093b91a7353cb5;hp=0d88cc1dcf1068dec8c823a5a3a675ef44441d9a;hpb=99c6070e3f2b10ab90e7142c739cf6b56f2edc91;p=odoo%2Fodoo.git diff --git a/rpminstall_sh.txt b/rpminstall_sh.txt index 0d88cc1..bb7bb3f 100644 --- a/rpminstall_sh.txt +++ b/rpminstall_sh.txt @@ -7,8 +7,9 @@ # Need to overwrite the install-part of the RPM to append the # compression-suffix onto the filenames for the man-pages. # -python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES +python -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)" +python -O -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)" +python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES SUFFIX=gz -mv INSTALLED_FILES INSTALLED_FILES.orig -sed "s!\(/share/man/.*\)!\1.$SUFFIX!" INSTALLED_FILES.orig > INSTALLED_FILES +sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES