data.py get_cmdline: use errors=replace for unicode errors
[iotop.git] / .install-rpm.sh
blob1ad62f841a9bbf0cf93961113b08e92ea33a86b6
1 #!/bin/sh
3 # https://bugs.python.org/issue644744
5 python3 setup.py install -O1 --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES
6 # 'brp-compress' gzips the man pages without distutils knowing... fix this
7 sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES
8 # actually, it doesn't on all distributions so just compress unconditionally
9 # before brp-compress is run
10 find "$RPM_BUILD_ROOT" -type f -name iotop.8 -exec gzip '{}' \;