1519
by Stephane Wirtel
[FIX] Add the rpminstall_sh.txt script |
1 |
#
|
2 |
# This file is used by 'python setup.py bdist_rpm'
|
|
3 |
# You should not execute/call this file yourself.
|
|
4 |
#
|
|
5 |
# This script is used as the 'install' part of the RPM .spec file.
|
|
6 |
#
|
|
7 |
# Need to overwrite the install-part of the RPM to append the
|
|
8 |
# compression-suffix onto the filenames for the man-pages.
|
|
9 |
#
|
|
1680.1.2
by Stephane Wirtel
[FIX] generate the pyc for redhat |
10 |
python -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)"
|
1670
by Stephane Wirtel
[FIX] Compile the migrate script in doc/migrate |
11 |
python -O -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)"
|
1638.1.1
by Stephane Wirtel
[FIX] Redhat Package Manager |
12 |
python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES |
1519
by Stephane Wirtel
[FIX] Add the rpminstall_sh.txt script |
13 |
|
14 |
SUFFIX=gz |
|
1638.1.1
by Stephane Wirtel
[FIX] Redhat Package Manager |
15 |
sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES |