From: Guillaume Chazarain Date: Sun, 30 Oct 2011 20:36:22 +0000 (+0100) Subject: Actually install-rpm.sh is still needed. X-Git-Tag: iotop-0.6~37 X-Git-Url: https://repo.or.cz/w/iotop.git/commitdiff_plain/0a4a1200dabb1589fcc80395ac0bb02ae5adeee5 Actually install-rpm.sh is still needed. --- diff --git a/.install-rpm.sh b/.install-rpm.sh new file mode 100755 index 0000000..ede1986 --- /dev/null +++ b/.install-rpm.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# http://bugs.python.org/issue644744 + +python setup.py install -O1 --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES +# 'brp-compress' gzips the man pages without distutils knowing... fix this +sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES +# actually, it doesn't on all distributions so just compress unconditionally +# before brp-compress is run +find "$RPM_BUILD_ROOT" -type f -name iotop.1 -exec gzip '{}' \; diff --git a/setup.cfg b/setup.cfg index b0ff390..e617a4a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,3 @@ [bdist_rpm] doc_files = ChangeLog COPYING NEWS README THANKS +install_script = .install-rpm.sh