2008-12-29 10:28:59 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2009-01-30 15:19:03 +00:00
|
|
|
python -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)"
|
2009-01-29 00:42:50 +00:00
|
|
|
python -O -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)"
|
2009-01-23 12:14:04 +00:00
|
|
|
python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
2008-12-29 10:28:59 +00:00
|
|
|
|
|
|
|
SUFFIX=gz
|
2009-01-23 12:14:04 +00:00
|
|
|
sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES
|
2014-01-14 16:13:04 +00:00
|
|
|
|
|
|
|
# quote files with a space
|
|
|
|
sed 's/\(.* .*\)/"\1"/' -i INSTALLED_FILES
|