diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2008-12-29 11:28:59 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2008-12-29 11:28:59 +0100 |
| commit | 99c6070e3f2b10ab90e7142c739cf6b56f2edc91 (patch) | |
| tree | 93590b20cbb5eaf9a728b5455d241a0cccbfe164 | |
| parent | 907bbe31c98566b9fbacc8251da6d839dcd12563 (diff) | |
[FIX] Add the rpminstall_sh.txt script
lp bug: https://launchpad.net/bugs/311981 fixed
bzr revid: stephane@tinyerp.com-20081229102859-bgxe0btq1d315a6m
| -rw-r--r-- | MANIFEST.in | 1 | ||||
| -rw-r--r-- | rpminstall_sh.txt | 14 | ||||
| -rw-r--r-- | setup.cfg | 17 |
3 files changed, 32 insertions, 0 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 86edb9c56ac..9f3f31af1f1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ +include rpminstall_sh.txt include README include bin/import_xml.rng include bin/server.cert diff --git a/rpminstall_sh.txt b/rpminstall_sh.txt new file mode 100644 index 00000000000..0d88cc1dcf1 --- /dev/null +++ b/rpminstall_sh.txt @@ -0,0 +1,14 @@ +# +# 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 setup.py install --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 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000000..caf187e4c33 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,17 @@ +[sdist] +formats=gztar + +[bdist] +formats=rpm + +[bdist_rpm] +release=1 + +requires=python >= 2.3 +#build-requires=python-devel >= 2.3 + +#doc_files = doc/* + +# Need to overwrite the install-part of the RPM to patch +# the filenames of the man pages. +install_script=rpminstall_sh.txt |
