File: rpminstall_sh.txt

package info (click to toggle)
openerp-server 5.0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 93,320 kB
  • ctags: 8,723
  • sloc: xml: 178,056; python: 82,295; sql: 285; sh: 114; php: 42; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# This file is used by 'python setup.py bdist_rpm'
# You should not execute/call this file yourself.
#
# This script is used as the 'install' part of the RPM .spec file.
#
# Need to overwrite the install-part of the RPM to append the
# compression-suffix onto the filenames for the man-pages.
#
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
sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES