From 0a4a1200dabb1589fcc80395ac0bb02ae5adeee5 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Sun, 30 Oct 2011 21:36:22 +0100 Subject: [PATCH] Actually install-rpm.sh is still needed. --- .install-rpm.sh | 10 ++++++++++ setup.cfg | 1 + 2 files changed, 11 insertions(+) create mode 100755 .install-rpm.sh 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 -- 2.11.4.GIT