Actually install-rpm.sh is still needed.iotop-0.4.4
authorGuillaume Chazarain <guichaz@gmail.com>
Sun, 30 Oct 2011 20:36:22 +0000 (30 21:36 +0100)
committerGuillaume Chazarain <guichaz@gmail.com>
Sun, 30 Oct 2011 20:36:22 +0000 (30 21:36 +0100)
.install-rpm.sh [new file with mode: 0755]
setup.cfg

diff --git a/.install-rpm.sh b/.install-rpm.sh
new file mode 100755 (executable)
index 0000000..ede1986
--- /dev/null
@@ -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 '{}' \;
index b0ff390..e617a4a 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,2 +1,3 @@
 [bdist_rpm]
 doc_files = ChangeLog COPYING NEWS README THANKS
+install_script = .install-rpm.sh